2012-01-06 08:55:05 -06:00
|
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
2013-06-10 15:17:17 -04:00
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2013-06-28 09:46:25 -04:00
|
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
|
2012-01-06 08:55:05 -06:00
|
|
|
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
|
|
|
|
|
|
|
|
<bean id="goessoundingDecoder"
|
|
|
|
class="com.raytheon.edex.plugin.goessounding.GOESSoundingDecoder" />
|
|
|
|
|
|
|
|
<bean id="goesSeparatorFactory"
|
|
|
|
class="com.raytheon.edex.plugin.goessounding.GOESSndgSeparatorFactory" />
|
|
|
|
|
|
|
|
<bean id="goessoundingDistRegistry" factory-bean="distributionSrv"
|
|
|
|
factory-method="register">
|
|
|
|
<constructor-arg ref="goessoundingPluginName" />
|
2014-02-21 06:50:59 -05:00
|
|
|
<constructor-arg value="jms-durable:queue:Ingest.goessounding"/>
|
2012-01-06 08:55:05 -06:00
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="goessoundingCamelRegistered" factory-bean="contextManager"
|
|
|
|
factory-method="register"
|
|
|
|
depends-on="persistCamelRegistered">
|
|
|
|
<constructor-arg ref="goessounding-camel"/>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<camelContext id="goessounding-camel"
|
|
|
|
xmlns="http://camel.apache.org/schema/spring"
|
|
|
|
errorHandlerRef="errorHandler"
|
|
|
|
autoStartup="false">
|
|
|
|
<!--
|
|
|
|
<endpoint id="goessndgFileEndpoint"
|
|
|
|
uri="file:${edex.home}/data/sbn/goessndg?noop=true&idempotent=false" />
|
|
|
|
|
|
|
|
<route id="goessndgFileConsumerRoute">
|
|
|
|
<from ref="goessndgFileEndpoint" />
|
|
|
|
<bean ref="fileToString" />
|
|
|
|
<setHeader headerName="pluginName">
|
|
|
|
<constant>goessounding</constant>
|
|
|
|
</setHeader>
|
2013-10-28 10:55:16 -04:00
|
|
|
<to uri="jms-durable:queue:Ingest.goessounding" />
|
2012-01-06 08:55:05 -06:00
|
|
|
</route>
|
|
|
|
-->
|
|
|
|
|
|
|
|
<!-- Begin GOES Sounding routes -->
|
|
|
|
<route id="goessndgIngestRoute">
|
2013-10-28 10:55:16 -04:00
|
|
|
<from uri="jms-durable:queue:Ingest.goessounding"/>
|
2012-01-06 08:55:05 -06:00
|
|
|
<setHeader headerName="pluginName">
|
|
|
|
<constant>goessounding</constant>
|
|
|
|
</setHeader>
|
|
|
|
<doTry>
|
|
|
|
<pipeline>
|
|
|
|
<bean ref="stringToFile" />
|
|
|
|
<split streaming="true">
|
|
|
|
<method bean="goesSeparatorFactory" method="getSeparator"/>
|
|
|
|
<doTry>
|
|
|
|
<pipeline>
|
|
|
|
<bean ref="goessoundingDecoder" method="decode" />
|
2013-06-10 15:17:17 -04:00
|
|
|
<to uri="direct-vm:persistIndexAlert" />
|
2012-01-06 08:55:05 -06:00
|
|
|
</pipeline>
|
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
2013-06-28 09:46:25 -04:00
|
|
|
<to uri="log:goessounding?level=ERROR"/>
|
2012-01-06 08:55:05 -06:00
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
|
|
|
</split>
|
|
|
|
</pipeline>
|
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
2013-06-28 09:46:25 -04:00
|
|
|
<to uri="log:goessounding?level=ERROR"/>
|
2012-01-06 08:55:05 -06:00
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
|
|
|
</route>
|
|
|
|
</camelContext>
|
|
|
|
</beans>
|