awips2/edexOsgi/com.raytheon.uf.edex.ohd/res/spring/DPADecoder-spring.xml
2022-05-05 12:34:50 -05:00

68 lines
No EOL
2.7 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="radarDecompressor" class="com.raytheon.edex.plugin.radar.RadarDecompressor"/>
<bean id="dpaDecodeSrv" class="com.raytheon.uf.edex.ohd.pproc.DecodeDpaSrv" />
<bean id="dpaDistRegistry" factory-bean="distributionSrv"
factory-method="register">
<constructor-arg value="dpa" />
<constructor-arg value="jms-durable:queue:Ingest.dpa"/>
</bean>
<bean id="dpaRadarServerDistRegistry" factory-bean="radarserverDistributionSrv"
factory-method="register">
<constructor-arg value="dpa" />
<constructor-arg value="jms-durable:queue:Ingest.dpa"/>
</bean>
<camelContext id="nonClusteredDPAroutes"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler">
<!-- Begin non-clustered dpa Routes -->
<route id="dpaIngestFilter">
<from uri="jms-durable:queue:Ingest.dpa"/>
<setHeader name="pluginName">
<constant>dpa</constant>
</setHeader>
<doTry>
<pipeline>
<bean ref="stringToFile" />
<bean ref="radarDecompressor" method="decompressWithHeader" />
<bean ref="dpaDecodeSrv" method="process"/>
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:dpa?level=INFO"/>
</doCatch>
</doTry>
</route>
</camelContext>
<camelContext id="clusteredDPAroutes"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler">
<!-- Begin dpa Routes -->
<route id="dpaIngestRoute">
<from uri="jms-durable:queue:dpaProcess"/>
<doTry>
<pipeline>
<bean ref="stringToFile" />
<bean ref="radarDecompressor" method="decompressWithHeader" />
<bean ref="dpaDecodeSrv" method="process"/>
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:dpa?level=INFO"/>
</doCatch>
</doTry>
</route>
</camelContext>
<bean factory-bean="contextManager" factory-method="registerClusteredContext">
<constructor-arg ref="clusteredDPAroutes" />
</bean>
</beans>