awips2/ncep/gov.noaa.nws.ncep.edex.plugin.geomag/res/spring/geomag-request
Steve Harris 1900cef156 13.5.2-1 baseline
Former-commit-id: 894d2425b2 [formerly 73dd0f166c] [formerly 894d2425b2 [formerly 73dd0f166c] [formerly 542b2c3d18 [formerly a362ca91ee5972a1501a2842191fbe2e23feac9c]]]
Former-commit-id: 542b2c3d18
Former-commit-id: 43af1b227a [formerly 4ecb349ed8]
Former-commit-id: 4a9a91ce2e
2013-08-28 09:43:48 -04:00

41 lines
No EOL
1.6 KiB
Text

<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-3.1.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="trig1minCalc" class="gov.noaa.nws.ncep.edex.plugin.geomag.TrigKCalculation" />
<camelContext id="geomag-camel"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler"
autoStartup="false">
<endpoint id="geomagFileEndpoint" uri="file:${edex.home}/data/sbn/geomag?noop=true&amp;idempotent=false" />
<route id="geomagFileConsumerRoute">
<from ref="geomagFileEndpoint" />
<bean ref="fileToString" />
<setHeader headerName="pluginName">
<constant>geomag</constant>
</setHeader>
<to uri="jms-generic:queue:Ingest.GeoMag" />
</route>
<route id="geomagCalcRoute">
<from uri="jms-generic:topic:edex.alerts"/>
<doTry>
<pipeline>
<bean ref="serializationUtil" method="transformFromThrift" />
<bean ref="trig1minCalc" method="trig1min"/>
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:geomag?level=ERROR"/>
</doCatch>
</doTry>
</route>
</camelContext>
</beans>