awips2/edexOsgi/com.raytheon.uf.edex.plugin.npp.viirs/res/spring/viirs-ingest.xml
Richard Peter 7b59c2ead2 Issue #2368: Fix durable jms configurations
Change-Id: I0167e5f0dd5caea72c5f4220979fd9b55375b3c4

Former-commit-id: 9fe5b9f098 [formerly ed7a62911e] [formerly b6fd367b68] [formerly 152d8654ef [formerly b6fd367b68 [formerly f611b9afdf541b5fa632fe27755a69f16b871f68]]]
Former-commit-id: 152d8654ef
Former-commit-id: bc5c9470456798683fb01d457c8ee304e9038020 [formerly d634b6fcc5]
Former-commit-id: e2a2d0c7cb
2013-09-18 21:20:54 -05:00

60 lines
2.2 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-3.1.xsd
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
<bean id="viirsThreadPool"
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
<property name="corePoolSize" value="1" />
<property name="maxPoolSize" value="1" />
</bean>
<bean id="jms-viirs" class="org.apache.camel.component.jms.JmsComponent">
<constructor-arg ref="jmsViirsConfig" />
<property name="taskExecutor" ref="viirsThreadPool" />
</bean>
<bean id="jmsViirsConfig" class="org.apache.camel.component.jms.JmsConfiguration"
factory-bean="jmsDurableConfig" factory-method="copy"/>
<bean id="viirsDistRegistry" factory-bean="distributionSrv"
factory-method="register">
<constructor-arg ref="viirsPluginName" />
<constructor-arg value="jms-dist:queue:Ingest.VIIRS" />
</bean>
<bean id="viirsCamelRegistered" factory-bean="contextManager"
factory-method="register" depends-on="persistCamelRegistered">
<constructor-arg ref="viirs-camel"/>
</bean>
<bean id="viirsDao" class="com.raytheon.uf.edex.plugin.npp.viirs.dao.VIIRSDao">
<constructor-arg value="viirs"/>
</bean>
<bean id="viirsDecoder" class="com.raytheon.uf.edex.plugin.npp.viirs.VIIRSDecoder">
<property name="dao" ref="viirsDao"/>
</bean>
<camelContext id="viirs-camel"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler"
autoStartup="false">
<!-- Begin VIIRS routes -->
<route id="viirsIngestRoute">
<from uri="jms-viirs:queue:Ingest.VIIRS"/>
<doTry>
<pipeline>
<bean ref="stringToFile" />
<bean ref="extractWMOHeader" method="remove"/>
<bean ref="dataUnzipper" method="gunzip"/>
<bean ref="viirsDecoder" method="decode" />
<to uri="direct-vm:persistIndexAlert" />
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:viirs?level=ERROR"/>
</doCatch>
</doTry>
</route>
</camelContext>
</beans>