awips2/edexOsgi/com.raytheon.uf.edex.ohd/res/spring/q2FileProcessor-spring.xml
2022-05-05 12:34:50 -05:00

36 lines
No EOL
1.3 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="q2Proc" class="com.raytheon.uf.edex.ohd.pproc.Q2FileUnzip"/>
<bean id="q2DistRegistry" factory-bean="distributionSrv"
factory-method="register">
<constructor-arg value="q2" />
<constructor-arg value="jms-durable:queue:Ingest.q2"/>
</bean>
<camelContext id="q2Proc-context"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler">
<!-- Run the Q2 File Processor on new files -->
<route id="q2File">
<from uri="jms-durable:queue:Ingest.q2"/>
<doTry>
<pipeline>
<bean ref="q2Proc" method="unzip" />
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:q2File?level=INFO"/>
</doCatch>
</doTry>
</route>
</camelContext>
</beans>