awips2/ost/gov.noaa.nws.ost.edex.plugin.regionalsat/res/spring/regionalsat-ingest.xml
James Korman a8041fc934 Issue #1210 - Correct to use IDataRecord
Amend: Code review cleanup

Change-Id: I7d255531ba051c2ede2169af31b08f2c7a9cfcdd

Former-commit-id: 43432e2a26 [formerly 48848844a7] [formerly e3ac09d24a [formerly 107506fb635030f91d1d79e4e755864e28a04fed]]
Former-commit-id: e3ac09d24a
Former-commit-id: 442860a731
2012-09-25 10:06:21 -05:00

65 lines
2.8 KiB
XML

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:amq="http://activemq.apache.org/schema/core" 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-2.0.xsd
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
<bean id="jms-regionalsat" class="org.apache.camel.component.jms.JmsComponent">
<constructor-arg ref="jmsIngestRegionalSatConfig" />
<property name="taskExecutor" ref="regionalSatThreadPool" />
</bean>
<bean id="jmsIngestRegionalSatConfig" class="org.apache.camel.component.jms.JmsConfiguration"
factory-bean="jmsConfig" factory-method="copy" />
<bean id="regionalSatThreadPool"
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
<property name="corePoolSize" value="1" />
<property name="maxPoolSize" value="1" />
</bean>
<bean id="regionalSatDecoder" class="gov.noaa.nws.ost.edex.plugin.regionalsat.decoder.RegionalSatDecoder">
<property name="source" value="Source" />
<property name="filename" value="regional_satellite_netcdf3" />
</bean>
<bean id="regionalSatDistRegistry" factory-bean="distributionSrv"
factory-method="register">
<constructor-arg value="regionalsat" />
<constructor-arg value="jms-dist:queue:Ingest.regionalsat?destinationResolver=#qpidDurableResolver" />
</bean>
<!-- <constructor-arg value="jms-dist:queue:Ingest.Satellite" /> -->
<bean id="regionalSatCamelRegistered" factory-bean="contextManager"
factory-method="register" depends-on="persistCamelRegistered">
<constructor-arg ref="regionalSat-camel"/>
</bean>
<camelContext id="regionalSat-camel"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler"
autoStartup="false">
<!-- Begin regionalsat routes -->
<route id="regionalSatIngestRoute">
<from uri="jms-generic:queue:Ingest.regionalsat?destinationResolver=#qpidDurableResolver" />
<setHeader headerName="pluginName">
<constant>regionalsat</constant>
</setHeader>
<doTry>
<pipeline>
<bean ref="stringToFile" />
<bean ref="regionalSatDecoder" method="decode"/>
<to uri="directvm:persistIndexAlert" />
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:regionalsat?level=ERROR&amp;showBody=false&amp;showCaughtException=true&amp;showStackTrace=true"/>
</doCatch>
</doTry>
</route>
</camelContext>
</beans>