40 lines
No EOL
1.7 KiB
XML
40 lines
No EOL
1.7 KiB
XML
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
|
http://www.springframework.org/schema/beans/spring-beans.xsd
|
|
http://camel.apache.org/schema/spring
|
|
http://camel.apache.org/schema/spring/camel-spring.xsd">
|
|
|
|
<bean id="hpeFilenameProcessor" class="com.raytheon.uf.edex.plugin.hpe.process.HpeGribFileNameProcessor" />
|
|
|
|
<bean id="hpeFileChangedStrategy"
|
|
class="com.raytheon.uf.edex.esb.camel.FileChangedExclusiveReadLockStrategy" />
|
|
|
|
<camelContext id="hpegrib-file-endpoint" xmlns="http://camel.apache.org/schema/spring"
|
|
errorHandlerRef="errorHandler">
|
|
|
|
<endpoint id="hpeGribFileEndpoint" uri="file:${edex.home}/data/local/hpegrib?delete=true&delay=5000&maxMessagesPerPoll=1000&exclusiveReadLockStrategy=#hpeFileChangedStrategy&recursive=false" />
|
|
|
|
<route id="hpeGribFileConsumerRoute">
|
|
<from ref="hpeGribFileEndpoint" />
|
|
<doTry>
|
|
<bean ref="fileToString" />
|
|
<bean ref="hpeFilenameProcessor" />
|
|
<!--
|
|
<bean ref="manualProc" method="copyFileToArchive"/>
|
|
-->
|
|
<to uri="jms-durable:queue:Ingest.GribSplit" />
|
|
<doCatch>
|
|
<exception>java.lang.Throwable</exception>
|
|
<to uri="log:hpeGribFileEndpoint?level=ERROR"/>
|
|
</doCatch>
|
|
</doTry>
|
|
</route>
|
|
|
|
</camelContext>
|
|
|
|
<bean factory-bean="contextManager" factory-method="registerClusteredContext">
|
|
<constructor-arg ref="hpegrib-file-endpoint" />
|
|
</bean>
|
|
|
|
</beans> |