awips2/edexOsgi/com.raytheon.uf.edex.plugin.qc/res/spring/qc-ingest.xml
ucar-tmeyer 4e7b1f7721 Added back in the ldad/mesonet plugins so that we can decode the RAWS mesonet data.
-Also updated the Surface Obs menu to have a few menu options to load the RAWS data
2023-09-27 13:04:01 +00:00

61 lines
No EOL
2.1 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.xsd
http://camel.apache.org/schema/spring
http://camel.apache.org/schema/spring/camel-spring.xsd">
<bean id="qcScanner" class="com.raytheon.uf.edex.plugin.qc.QCScanner" depends-on="qcProperties">
<property name="maxRecordsInChunk" value="1000" />
</bean>
<camelContext id="qcScan-camel"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler">
<endpoint id="scheduledQCCron" uri="quartz://qc/scanQC/?cron=${qc.cron}"/>
<route id="scheduledQCScan">
<from uri="scheduledQCCron" />
<setHeader name="pluginName">
<constant>qc</constant>
</setHeader>
<split streaming="true">
<method ref="qcScanner" method="split" />
<doTry>
<to uri="jms-generic:queue:qcDecodeQueue" />
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:qc?level=ERROR" />
</doCatch>
</doTry>
</split>
</route>
</camelContext>
<bean factory-bean="contextManager" factory-method="registerClusteredContext">
<constructor-arg ref="qcScan-camel"/>
</bean>
<camelContext id="qcDecode-camel"
xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler">
<route id="qcDecodeRoute">
<from uri="jms-generic:queue:qcDecodeQueue" />
<doTry>
<pipeline>
<bean ref="qcScanner" method="scanFile" />
<to uri="direct-vm:persistIndexAlert" />
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:qc?level=ERROR" />
</doCatch>
</doTry>
</route>
</camelContext>
</beans>