Refactored to use inheritance and separate logic where possible. Addressed comments. Change-Id: I9e62414cd83121575bdf99a3b47466a7585bedb6 Former-commit-id: 6e015b3f61c20635077d6e8271e9b763e5a32fe1
65 lines
No EOL
2.5 KiB
XML
65 lines
No EOL
2.5 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="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" />
|
|
<constructor-arg value="jms-durable:queue:Ingest.goessounding"/>
|
|
</bean>
|
|
|
|
<camelContext id="goessounding-camel"
|
|
xmlns="http://camel.apache.org/schema/spring"
|
|
errorHandlerRef="errorHandler">
|
|
<!--
|
|
<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>
|
|
<to uri="jms-durable:queue:Ingest.goessounding" />
|
|
</route>
|
|
-->
|
|
|
|
<!-- Begin GOES Sounding routes -->
|
|
<route id="goessndgIngestRoute">
|
|
<from uri="jms-durable:queue:Ingest.goessounding"/>
|
|
<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" />
|
|
<to uri="direct-vm:persistIndexAlert" />
|
|
</pipeline>
|
|
<doCatch>
|
|
<exception>java.lang.Throwable</exception>
|
|
<to uri="log:goessounding?level=ERROR"/>
|
|
</doCatch>
|
|
</doTry>
|
|
</split>
|
|
</pipeline>
|
|
<doCatch>
|
|
<exception>java.lang.Throwable</exception>
|
|
<to uri="log:goessounding?level=ERROR"/>
|
|
</doCatch>
|
|
</doTry>
|
|
</route>
|
|
</camelContext>
|
|
</beans> |