awips2/ncep/gov.noaa.nws.ncep.edex.plugin.sgwhv/res/spring/sgwhv-ingest.xml
Brian.Dyke f86f9f8918 OB_14.1.1-19 baseline
Former-commit-id: 779553142c [formerly cfa4997978] [formerly 779553142c [formerly cfa4997978] [formerly 10b723647b [formerly db2a591456383d8f980d33757e8c161bdcc01d3a]]]
Former-commit-id: 10b723647b
Former-commit-id: c41dd22ff2 [formerly 64044e7ce5]
Former-commit-id: 1b359c2564
2014-02-21 06:50:59 -05:00

65 lines
No EOL
2.2 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-3.1.xsd
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
<bean id="sgwhvDecoder"
class="gov.noaa.nws.ncep.edex.plugin.sgwhv.decoder.SgwhvDecoder">
<constructor-arg ref="sgwhvPluginName" />
</bean>
<bean id="sgwhvSeparator"
class="gov.noaa.nws.ncep.edex.plugin.sgwhv.decoder.SgwhvSeparator" />
<bean id="swghvToPointData" class="gov.noaa.nws.ncep.common.dataplugin.sgwhv.dao.SgwhvPointDataTransform" />
<bean id="sgwhvDistRegistry" factory-bean="distributionSrv"
factory-method="register">
<constructor-arg ref="sgwhvPluginName" />
<constructor-arg value="jms-durable:queue:Ingest.sgwhv" />
</bean>
<bean id="sgwhvCamelRegistered" factory-bean="contextManager"
factory-method="register" depends-on="persistCamelRegistered">
<constructor-arg ref="sgwhv-camel"/>
</bean>
<camelContext id="sgwhv-camel"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler"
autoStartup="false">
<endpoint id="sgwhvFileEndpoint" uri="file:${edex.home}/data/sbn/sgwhv?noop=true&amp;idempotent=false" />
<!-- Begin sgwhv routes -->
<route id="sgwhvFileConsumerRoute">
<from ref="sgwhvFileEndpoint" />
<bean ref="fileToString" />
<setHeader headerName="pluginName">
<constant>sgwhv</constant>
</setHeader>
<to uri="jms-durable:queue:Ingest.sgwhv"/>
</route>
<route id="sgwhvIngestRoute">
<from uri="jms-durable:queue:Ingest.sgwhv"/>
<setHeader headerName="pluginName">
<constant>sgwhv</constant>
</setHeader>
<doTry>
<pipeline>
<bean ref="stringToFile" />
<bean ref="sgwhvDecoder" method="decode" />
<bean ref="swghvToPointData" method="toPointData" />
<to uri="direct-vm:persistIndexAlert" />
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:sgwhv?level=ERROR"/>
</doCatch>
</doTry>
</route>
</camelContext>
</beans>