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">
|
|
|
|
|
2014-04-17 08:28:40 -05:00
|
|
|
<bean id="ccfpDecoder" class="com.raytheon.uf.edex.plugin.ccfp.CcfpDecoder" />
|
|
|
|
<bean id="ccfpSeparator" class="com.raytheon.uf.edex.plugin.ccfp.CcfpSeparator" />
|
2012-01-06 08:55:05 -06:00
|
|
|
|
|
|
|
<bean id="ccfpDistRegistry" factory-bean="distributionSrv"
|
|
|
|
factory-method="register">
|
|
|
|
<constructor-arg value="ccfp" />
|
2014-02-21 06:50:59 -05:00
|
|
|
<constructor-arg value="jms-durable:queue:Ingest.ccfp" />
|
2012-01-06 08:55:05 -06:00
|
|
|
</bean>
|
|
|
|
|
|
|
|
<camelContext id="ccfp-camel"
|
|
|
|
xmlns="http://camel.apache.org/schema/spring"
|
2014-03-19 14:23:52 -05:00
|
|
|
errorHandlerRef="errorHandler">
|
2012-01-06 08:55:05 -06:00
|
|
|
<!--
|
|
|
|
<endpoint id="ccfpFileEndpoint" uri="file:${edex.home}/data/sbn/ccfp?noop=true&idempotent=false" />
|
|
|
|
|
|
|
|
<route id="ccfpFileConsumerRoute">
|
|
|
|
<from ref="ccfpFileEndpoint" />
|
|
|
|
<bean ref="fileToString" />
|
|
|
|
<setHeader headerName="pluginName">
|
|
|
|
<constant>ccfp</constant>
|
|
|
|
</setHeader>
|
2013-10-28 10:55:16 -04:00
|
|
|
<to uri="jms-durable:queue:Ingest.ccfp" />
|
2012-01-06 08:55:05 -06:00
|
|
|
</route>
|
|
|
|
-->
|
|
|
|
|
|
|
|
<!-- Begin ccfp routes -->
|
|
|
|
<route id="ccfpIngestRoute">
|
2013-10-28 10:55:16 -04:00
|
|
|
<from uri="jms-durable:queue:Ingest.ccfp"/>
|
2012-01-06 08:55:05 -06:00
|
|
|
<setHeader headerName="pluginName">
|
|
|
|
<constant>ccfp</constant>
|
|
|
|
</setHeader>
|
|
|
|
<doTry>
|
|
|
|
<pipeline>
|
|
|
|
<bean ref="stringToFile" />
|
|
|
|
<split streaming="true">
|
|
|
|
<method bean="ccfpSeparator" method="separate" />
|
|
|
|
<doTry>
|
|
|
|
<pipeline>
|
|
|
|
<bean ref="ccfpDecoder" method="decode" />
|
2013-06-10 15:17:17 -04:00
|
|
|
<to uri="direct-vm:indexAlert" />
|
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:ccfp?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:ccfp?level=ERROR"/>
|
2012-01-06 08:55:05 -06:00
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
|
|
|
</route>
|
|
|
|
</camelContext>
|
|
|
|
</beans>
|