awips2/edexOsgi/com.raytheon.uf.edex.plugin.scan/res/spring/scan-ingest.xml
Brian Clements 095f84e71f Omaha #3503 Composite product generators init after spring beans are loaded
Change-Id: I894adbc14e1bfe183a3f7717d95dba85291a2a09

Former-commit-id: f6109e74ff5e26547c8fc03d7bb5ecde1046f689
2014-08-26 17:12:34 -05:00

50 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-3.1.xsd
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
<bean id="scanMenuCreator" class="com.raytheon.uf.edex.dat.utils.DatMenuUtil" depends-on="pointDataRegistered, vilGenerator, qpfGenerator, preciprateGenerator, fogGenerator, cwatGenerator, ffmpGenerator"/>
<bean id="scanCpgSrvDispatcher" class="com.raytheon.uf.edex.cpgsrv.CPGDispatcher"/>
<bean id="scanThreadPool"
class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor">
<property name="corePoolSize" value="2" />
<property name="maxPoolSize" value="6" />
<property name="keepAliveSeconds" value="60000" />
</bean>
<bean id="scanGenerator" class="com.raytheon.uf.edex.plugin.scan.ScanGenerator" >
<property name="executor" ref="scanThreadPool"/>
</bean>
<bean factory-bean="contextManager" factory-method="registerContextStateProcessor">
<constructor-arg ref="clusteredScanRoutes" />
<constructor-arg ref="scanGenerator" />
</bean>
<bean factory-bean="scanCpgSrvDispatcher" factory-method="register">
<constructor-arg ref="scanGenerator"/>
</bean>
<camelContext id="clusteredScanRoutes" xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">
<route id="scanCpgSrvListenerRoute">
<from uri="jms-durable:queue:scanCpgsrvFiltering"/>
<doTry>
<pipeline>
<bean ref="serializationUtil" method="transformFromThrift" />
<bean ref="scanCpgSrvDispatcher" method="matchURIs"/>
</pipeline>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:scanCpgSrv?level=ERROR"/>
</doCatch>
</doTry>
</route>
</camelContext>
<bean factory-bean="contextManager" factory-method="registerClusteredContext">
<constructor-arg ref="clusteredScanRoutes" />
</bean>
</beans>