awips2/ost/gov.noaa.nws.ost.edex.plugin.regionalsat/res/spring/regionalsat-ingest.xml
Nate Jensen ef596144a0 Omaha #4473 update references to moved logback classes
Change-Id: I68ac77c7f6f74dacac0d70a6155a93cf37a1873a

Former-commit-id: 339bea8a304cec0afad5b363709689e55fe744c5
2015-06-09 10:41:23 -05:00

49 lines
1.9 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 class="com.raytheon.uf.common.logback.appender.ThreadBasedAppender" factory-method="registerThreadPattern">
<constructor-arg value="satellite" />
<constructor-arg value="Ingest.regionalsat.*" />
</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-durable:queue:Ingest.regionalsat"/>
</bean>
<!-- <constructor-arg value="jms-durable:queue:Ingest.Satellite" /> -->
<camelContext id="regionalSat-camel"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler">
<!-- Begin regionalsat routes -->
<route id="regionalSatIngestRoute">
<from uri="jms-durable:queue:Ingest.regionalsat"/>
<setHeader headerName="pluginName">
<constant>regionalsat</constant>
</setHeader>
<doTry>
<pipeline>
<bean ref="stringToFile" />
<bean ref="regionalSatDecoder" method="decode"/>
<to uri="direct-vm:persistIndexAlert" />
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:regionalsat?level=ERROR"/>
</doCatch>
</doTry>
</route>
</camelContext>
</beans>