37 lines
1.5 KiB
XML
37 lines
1.5 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">
|
|
<!-- Register with distribution serv -->
|
|
<bean id="glmDistRegistry" factory-bean="distributionSrv"
|
|
factory-method="register">
|
|
<constructor-arg value="glm" />
|
|
<constructor-arg value="jms-durable:queue:Ingest.Glm" />
|
|
</bean>
|
|
|
|
<bean id="glmDecoder"
|
|
class="gov.nasa.msfc.sport.edex.glmdecoder.decoder.GLMDecoder" />
|
|
|
|
<camelContext id="glm-camel"
|
|
xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">
|
|
|
|
<!-- Begin GOES-R GLM routes -->
|
|
<route id="glmIngestRoute">
|
|
<from uri="jms-durable:queue:Ingest.Glm" />
|
|
<setHeader headerName="pluginName">
|
|
<constant>glm</constant>
|
|
</setHeader>
|
|
<doTry>
|
|
<pipeline>
|
|
<bean ref="stringToFile" />
|
|
<bean ref="glmDecoder" method="decode" />
|
|
<to uri="direct-vm:persistIndexAlert" />
|
|
</pipeline>
|
|
<doCatch>
|
|
<exception>java.lang.Throwable</exception>
|
|
<to uri="log:glm?level=ERROR" />
|
|
</doCatch>
|
|
</doTry>
|
|
</route>
|
|
</camelContext>
|
|
</beans>
|