61 lines
No EOL
2 KiB
XML
61 lines
No EOL
2 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 id="ccfpDecoder" class="com.raytheon.uf.edex.plugin.ccfp.CcfpDecoder" />
|
|
<bean id="ccfpSeparator" class="com.raytheon.uf.edex.plugin.ccfp.CcfpSeparator" />
|
|
|
|
<bean id="ccfpDistRegistry" factory-bean="distributionSrv"
|
|
factory-method="register">
|
|
<constructor-arg value="ccfp" />
|
|
<constructor-arg value="jms-durable:queue:Ingest.ccfp" />
|
|
</bean>
|
|
|
|
<camelContext id="ccfp-camel"
|
|
xmlns="http://camel.apache.org/schema/spring"
|
|
errorHandlerRef="errorHandler">
|
|
<!--
|
|
<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>
|
|
<to uri="jms-durable:queue:Ingest.ccfp" />
|
|
</route>
|
|
-->
|
|
|
|
<!-- Begin ccfp routes -->
|
|
<route id="ccfpIngestRoute">
|
|
<from uri="jms-durable:queue:Ingest.ccfp"/>
|
|
<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" />
|
|
<to uri="direct-vm:indexAlert" />
|
|
</pipeline>
|
|
<doCatch>
|
|
<exception>java.lang.Throwable</exception>
|
|
<to uri="log:ccfp?level=ERROR"/>
|
|
</doCatch>
|
|
</doTry>
|
|
</split>
|
|
</pipeline>
|
|
<doCatch>
|
|
<exception>java.lang.Throwable</exception>
|
|
<to uri="log:ccfp?level=ERROR"/>
|
|
</doCatch>
|
|
</doTry>
|
|
</route>
|
|
</camelContext>
|
|
</beans> |