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

47 lines
No EOL
1.9 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="bufrssmiDecoder" class="com.raytheon.uf.edex.plugin.bufrssmi.SSMIDecoder">
<constructor-arg ref="bufrssmiPluginName" />
</bean>
<!-- Filter out all southern hemisphere data -->
<bean id="ssmiSHFilter" class="com.raytheon.uf.edex.decodertools.core.filterimpl.PluginDataObjectFilter">
<constructor-arg type="java.lang.String" value="pointssmi_filters.xml" />
</bean>
<bean id="bufrssmiDistRegistry" factory-bean="distributionSrv"
factory-method="register">
<constructor-arg ref="bufrssmiPluginName" />
<constructor-arg value="jms-durable:queue:Ingest.bufrssmi"/>
</bean>
<camelContext id="bufrssmi-camel"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler">
<!-- Begin bufrssmi routes -->
<route id="bufrssmiIngestRoute">
<from uri="jms-durable:queue:Ingest.bufrssmi" />
<setHeader name="pluginName">
<constant>bufrssmi</constant>
</setHeader>
<doTry>
<pipeline>
<bean ref="stringToFile" />
<bean ref="bufrssmiDecoder" method="decode" />
<bean ref="ssmiSHFilter" method="filter" />
<to uri="direct-vm:persistIndexAlert" />
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:bufrssmi?level=ERROR"/>
</doCatch>
</doTry>
</route>
</camelContext>
</beans>