Former-commit-id:a02aeb236c
[formerly9f19e3f712
] [formerly06a8b51d6d
[formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]] Former-commit-id:06a8b51d6d
Former-commit-id:3360eb6c5f
69 lines
No EOL
2.6 KiB
XML
69 lines
No EOL
2.6 KiB
XML
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
xmlns:amq="http://activemq.apache.org/schema/core" 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-2.0.xsd
|
|
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd
|
|
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
|
|
|
|
<bean id="sfcobsDecoder" class="com.raytheon.edex.plugin.sfcobs.SfcObsDecoder" />
|
|
<bean id="sfcobsSeparator" class="com.raytheon.edex.plugin.sfcobs.SfcObsSeparator" />
|
|
|
|
<bean id="sfcobsPointData" class="com.raytheon.uf.common.dataplugin.sfcobs.dao.SfcObsPointDataTransform">
|
|
<constructor-arg ref="sfcobsPluginName" />
|
|
</bean>
|
|
|
|
<bean id="sfcobsDistRegistry" factory-bean="distributionSrv"
|
|
factory-method="register">
|
|
<constructor-arg value="sfcobs" />
|
|
<constructor-arg value="jms-dist:queue:Ingest.sfcobs?destinationResolver=#qpidDurableResolver" />
|
|
</bean>
|
|
|
|
<bean id="sfcobsCamelRegistered" factory-bean="contextManager"
|
|
factory-method="register"
|
|
depends-on="persistCamelRegistered,
|
|
shefCamelRegistered">
|
|
<constructor-arg ref="sfcobs-camel"/>
|
|
</bean>
|
|
|
|
<camelContext id="sfcobs-camel"
|
|
xmlns="http://camel.apache.org/schema/spring"
|
|
errorHandlerRef="errorHandler"
|
|
autoStartup="false">
|
|
<!--
|
|
<endpoint id="sfcobsFileEndpoint"
|
|
uri="file:${edex.home}/data/sbn/sfcobs?noop=true&idempotent=false" />
|
|
|
|
<route id="sfcobsFileConsumerRoute">
|
|
<from ref="sfcobsFileEndpoint" />
|
|
<bean ref="fileToString" />
|
|
<setHeader headerName="pluginName">
|
|
<constant>sfcobs</constant>
|
|
</setHeader>
|
|
<to uri="jms-generic:queue:Ingest.sfcobs" />
|
|
</route>
|
|
-->
|
|
|
|
<!-- Begin sfcobs routes -->
|
|
<route id="sfcobsIngestRoute">
|
|
<from uri="jms-generic:queue:Ingest.sfcobs?destinationResolver=#qpidDurableResolver" />
|
|
<setHeader headerName="pluginName">
|
|
<constant>sfcobs</constant>
|
|
</setHeader>
|
|
<bean ref="stringToFile" />
|
|
<doTry>
|
|
<pipeline>
|
|
<bean ref="sfcobsDecoder" method="decode" />
|
|
<bean ref="sfcobsPointData" method="toPointData" />
|
|
<multicast>
|
|
<to uri="directvm:persistIndexAlert" />
|
|
<to uri="directvm:synopticToShef"/>
|
|
</multicast>
|
|
</pipeline>
|
|
<doCatch>
|
|
<exception>java.lang.Throwable</exception>
|
|
<to uri="log:sfcobs?level=ERROR&showBody=false&showCaughtException=true&showStackTrace=true"/>
|
|
</doCatch>
|
|
</doTry>
|
|
</route>
|
|
|
|
</camelContext>
|
|
</beans> |