60 lines
No EOL
2.3 KiB
XML
60 lines
No EOL
2.3 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="binlightningDecoder"
|
|
class="com.raytheon.edex.plugin.binlightning.BinLightningDecoder" />
|
|
|
|
<bean id="binlightningDistRegistry" factory-bean="distributionSrv"
|
|
factory-method="register">
|
|
<constructor-arg value="binlightning" />
|
|
<constructor-arg value="jms-dist:queue:Ingest.binlightning?destinationResolver=#qpidDurableResolver" />
|
|
</bean>
|
|
|
|
<bean id="binlightningCamelRegistered" factory-bean="contextManager"
|
|
factory-method="register" depends-on="persistCamelRegistered">
|
|
<constructor-arg ref="binlightning-camel"/>
|
|
</bean>
|
|
|
|
<camelContext id="binlightning-camel"
|
|
xmlns="http://camel.apache.org/schema/spring"
|
|
errorHandlerRef="errorHandler"
|
|
autoStartup="false">
|
|
<!--
|
|
<endpoint id="binlightningFileEndpoint"
|
|
uri="file:${edex.home}/data/sbn/binlightning?noop=true&idempotent=false" />
|
|
|
|
<route id="binlightningFileConsumerRoute">
|
|
<from ref="binlightningFileEndpoint" />
|
|
<bean ref="fileToString" />
|
|
<setHeader headerName="pluginName">
|
|
<constant>binlightning</constant>
|
|
</setHeader>
|
|
<to uri="jms-generic:queue:Ingest.binlightning" />
|
|
</route>
|
|
-->
|
|
|
|
<!-- Begin binlightning routes -->
|
|
<route id="binlightningIngestRoute">
|
|
<from uri="jms-generic:queue:Ingest.binlightning?destinationResolver=#qpidDurableResolver" />
|
|
<setHeader headerName="pluginName">
|
|
<constant>binlightning</constant>
|
|
</setHeader>
|
|
<doTry>
|
|
<pipeline>
|
|
<bean ref="stringToFile" />
|
|
<bean ref="binlightningDecoder" method="decode" />
|
|
<to uri="directvm:persistIndexAlert" />
|
|
|
|
</pipeline>
|
|
<doCatch>
|
|
<exception>java.lang.Throwable</exception>
|
|
<to uri="log:binlightning?level=ERROR&showBody=false&showCaughtException=true&showStackTrace=true"/>
|
|
</doCatch>
|
|
</doTry>
|
|
<!-- bean ref="processUtil" method="delete" / -->
|
|
</route>
|
|
</camelContext>
|
|
</beans> |