2012-01-06 08:55:05 -06:00
|
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
2013-06-10 15:17:17 -04:00
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2013-06-28 09:46:25 -04:00
|
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
|
2012-01-06 08:55:05 -06:00
|
|
|
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
|
|
|
|
|
2014-05-02 16:28:09 -05:00
|
|
|
<bean class="com.raytheon.uf.common.status.logback.ThreadBasedAppender" factory-method="registerThreadPattern">
|
|
|
|
<constructor-arg value="satellite" />
|
|
|
|
<constructor-arg value="Ingest.Satellite.*" />
|
|
|
|
</bean>
|
|
|
|
|
2012-01-06 08:55:05 -06:00
|
|
|
<bean id="satelliteDecoder" class="com.raytheon.edex.plugin.satellite.SatelliteDecoder">
|
|
|
|
<property name="dao" ref="satelliteDao" />
|
|
|
|
</bean>
|
|
|
|
|
2014-03-19 14:23:52 -05:00
|
|
|
<bean id="satelliteDao" class="com.raytheon.edex.plugin.satellite.dao.SatelliteDao" depends-on="satelliteProperties">
|
2012-01-06 08:55:05 -06:00
|
|
|
<constructor-arg ref="satellitePluginName" />
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="satDistRegistry" factory-bean="distributionSrv"
|
|
|
|
factory-method="register">
|
|
|
|
<constructor-arg value="satellite" />
|
2014-02-21 06:50:59 -05:00
|
|
|
<constructor-arg value="jms-durable:queue:Ingest.Satellite" />
|
2014-05-09 14:23:12 -05:00
|
|
|
<constructor-arg value="true" /> <!-- require valid distribution file for startup -->
|
2012-01-06 08:55:05 -06:00
|
|
|
</bean>
|
|
|
|
|
|
|
|
<camelContext id="sat-camel"
|
|
|
|
xmlns="http://camel.apache.org/schema/spring"
|
2014-03-19 14:23:52 -05:00
|
|
|
errorHandlerRef="errorHandler">
|
2012-01-06 08:55:05 -06:00
|
|
|
<!--
|
|
|
|
<endpoint id="satFileEndpoint" uri="file:${edex.home}/data/sbn/sat?noop=true&idempotent=false" />
|
|
|
|
|
|
|
|
<route id="satFileConsumerRoute">
|
|
|
|
<from ref="satFileEndpoint" />
|
|
|
|
<bean ref="fileToString" />
|
|
|
|
<setHeader headerName="pluginName">
|
|
|
|
<constant>satellite</constant>
|
|
|
|
</setHeader>
|
2013-10-28 10:55:16 -04:00
|
|
|
<to uri="jms-durable:queue:Ingest.Satellite" />
|
2012-01-06 08:55:05 -06:00
|
|
|
</route>
|
|
|
|
-->
|
|
|
|
|
|
|
|
<!-- Begin Sat routes -->
|
|
|
|
<route id="satIngestRoute">
|
2014-02-21 06:50:59 -05:00
|
|
|
<from uri="jms-durable:queue:Ingest.Satellite"/>
|
2012-01-06 08:55:05 -06:00
|
|
|
<setHeader headerName="pluginName">
|
|
|
|
<constant>satellite</constant>
|
|
|
|
</setHeader>
|
|
|
|
<doTry>
|
|
|
|
<pipeline>
|
|
|
|
<bean ref="stringToFile" />
|
|
|
|
<bean ref="satelliteDecoder" method="decode" />
|
2013-06-10 15:17:17 -04:00
|
|
|
<to uri="direct-vm:persistIndexAlert" />
|
2012-01-06 08:55:05 -06:00
|
|
|
</pipeline>
|
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
2013-06-28 09:46:25 -04:00
|
|
|
<to uri="log:sat?level=ERROR"/>
|
2012-01-06 08:55:05 -06:00
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
|
|
|
</route>
|
|
|
|
|
|
|
|
</camelContext>
|
|
|
|
</beans>
|