this change depends on changes from #3151 required plugins will prevent edex from starting if there are no valid dist patterns removed distribution registration from geomag since it did not contain any valid patterns Former-commit-id:4d2d5f81df
[formerly243ba8476a
] [formerly8b07016f25
] [formerly316bfe3b6f
[formerly8b07016f25
[formerly e917569da8e837a1c340b0e992a0c59f0a3507f3]]] Former-commit-id:316bfe3b6f
Former-commit-id: fbf8cffad16b3edb70ad15a4742dcdc5c87e748c [formerly9cc5ee88b5
] Former-commit-id:546cf300df
62 lines
2.2 KiB
XML
62 lines
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 class="com.raytheon.uf.common.status.logback.ThreadBasedAppender" factory-method="registerThreadPattern">
|
|
<constructor-arg value="satellite" />
|
|
<constructor-arg value="Ingest.Satellite.*" />
|
|
</bean>
|
|
|
|
<bean id="satelliteDecoder" class="com.raytheon.edex.plugin.satellite.SatelliteDecoder">
|
|
<property name="dao" ref="satelliteDao" />
|
|
</bean>
|
|
|
|
<bean id="satelliteDao" class="com.raytheon.edex.plugin.satellite.dao.SatelliteDao" depends-on="satelliteProperties">
|
|
<constructor-arg ref="satellitePluginName" />
|
|
</bean>
|
|
|
|
<bean id="satDistRegistry" factory-bean="distributionSrv"
|
|
factory-method="register">
|
|
<constructor-arg value="satellite" />
|
|
<constructor-arg value="jms-durable:queue:Ingest.Satellite" />
|
|
<constructor-arg value="true" /> <!-- require valid distribution file for startup -->
|
|
</bean>
|
|
|
|
<camelContext id="sat-camel"
|
|
xmlns="http://camel.apache.org/schema/spring"
|
|
errorHandlerRef="errorHandler">
|
|
<!--
|
|
<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>
|
|
<to uri="jms-durable:queue:Ingest.Satellite" />
|
|
</route>
|
|
-->
|
|
|
|
<!-- Begin Sat routes -->
|
|
<route id="satIngestRoute">
|
|
<from uri="jms-durable:queue:Ingest.Satellite"/>
|
|
<setHeader headerName="pluginName">
|
|
<constant>satellite</constant>
|
|
</setHeader>
|
|
<doTry>
|
|
<pipeline>
|
|
<bean ref="stringToFile" />
|
|
<bean ref="satelliteDecoder" method="decode" />
|
|
<to uri="direct-vm:persistIndexAlert" />
|
|
</pipeline>
|
|
<doCatch>
|
|
<exception>java.lang.Throwable</exception>
|
|
<to uri="log:sat?level=ERROR"/>
|
|
</doCatch>
|
|
</doTry>
|
|
</route>
|
|
|
|
</camelContext>
|
|
</beans>
|