awips2/ost/gov.noaa.nws.ost.edex.plugin.regionalsat/res/spring/regionalsat-ingest.xml
Richard Peter adff7b5684 Omaha #2782: Update thread based logging
Change-Id: Ifec2b15741c0fb4fa97e3c17659ddb80b69c47a8

Former-commit-id: fe464020d287bbf21b7bc04402d31c97114c195b
2014-05-08 09:06:31 -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.status.logback.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>