awips2/edexOsgi/com.raytheon.edex.plugin.goessounding/res/spring/goessounding-ingest.xml
2022-05-05 12:34:50 -05:00

54 lines
No EOL
2.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.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">
<!-- Begin GOES Sounding routes -->
<route id="goessndgIngestRoute">
<from uri="jms-durable:queue:Ingest.goessounding"/>
<setHeader name="pluginName">
<constant>goessounding</constant>
</setHeader>
<doTry>
<pipeline>
<bean ref="stringToFile" />
<split streaming="true">
<method ref="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>