awips2/edexOsgi/com.raytheon.uf.edex.plugin.satellite.mcidas/res/spring/satellite-mcidas-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

55 lines
2.1 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="jms-satellite-mcidas" class="org.apache.camel.component.jms.JmsComponent">
<constructor-arg ref="jmsSatelliteMcidasConfig" />
<property name="taskExecutor" ref="satelliteMcidasThreadPool" />
</bean>
<bean id="satelliteMcidasThreadPool"
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
<property name="corePoolSize" value="1" />
<property name="maxPoolSize" value="1" />
</bean>
<bean id="jmsSatelliteMcidasConfig" class="org.apache.camel.component.jms.JmsConfiguration"
factory-bean="jmsDurableConfig" factory-method="copy"/>
<bean id="satelliteMcidasDecoder" class="com.raytheon.uf.edex.plugin.satellite.mcidas.McidasSatelliteDecoder">
</bean>
<bean id="satMcidasDistRegistry" factory-bean="distributionSrv"
factory-method="register">
<constructor-arg value="satellite.mcidas" />
<constructor-arg value="jms-dist:queue:Ingest.Satellite.Mcidas" />
</bean>
<bean id="satMcidasCamelRegistered" factory-bean="contextManager"
factory-method="register" depends-on="persistCamelRegistered">
<constructor-arg ref="sat-mcidas-camel"/>
</bean>
<camelContext id="sat-mcidas-camel"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler"
autoStartup="false">
<!-- Begin McIDAS Sat routes -->
<route id="satMcidasIngestRoute">
<from uri="jms-satellite-mcidas:queue:Ingest.Satellite.Mcidas" />
<setHeader headerName="pluginName">
<constant>satellite-mcidas</constant>
</setHeader>
<doTry>
<pipeline>
<bean ref="stringToFile" />
<bean ref="satelliteMcidasDecoder" method="decode" />
<to uri="direct-vm:persistIndexAlert" />
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:sat?level=ERROR"/>
</doCatch>
</doTry>
</route>
</camelContext>
</beans>