2012-01-06 08:55:05 -06:00
|
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
|
|
xmlns:amq="http://activemq.apache.org/schema/core" 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-2.0.xsd
|
|
|
|
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd
|
|
|
|
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
|
|
|
|
|
|
|
|
<bean id="smartInitQueue" class="com.raytheon.edex.plugin.gfe.smartinit.SmartInitQueue"/>
|
|
|
|
<bean id="jms-smartinit" class="org.apache.camel.component.jms.JmsComponent">
|
|
|
|
<constructor-arg ref="jmsSmartInitConfig" />
|
|
|
|
<property name="taskExecutor" ref="smartInitThreadPool" />
|
|
|
|
</bean>
|
|
|
|
<bean id="jmsSmartInitConfig" class="org.apache.camel.component.jms.JmsConfiguration"
|
|
|
|
factory-bean="jmsConfig" factory-method="copy" />
|
|
|
|
<bean id="smartInitThreadPool"
|
|
|
|
class="com.raytheon.uf.edex.esb.camel.spring.JmsThreadPoolTaskExecutor">
|
2012-07-10 16:57:16 -05:00
|
|
|
<property name="corePoolSize" value="${smartinit.threadpoolsize}" />
|
|
|
|
<property name="maxPoolSize" value="${smartinit.threadpoolsize}" />
|
2012-01-06 08:55:05 -06:00
|
|
|
</bean>
|
|
|
|
<bean id="smartInitSrvCfg" class="com.raytheon.edex.plugin.gfe.smartinit.SmartInitSrvConfig">
|
|
|
|
<property name="executor" ref="smartInitThreadPool"/>
|
2012-07-10 16:57:16 -05:00
|
|
|
<property name="threads" value="${smartinit.threads}"/>
|
2012-01-06 08:55:05 -06:00
|
|
|
<property name="pendingInitMinTimeMillis" value="180000"/>
|
|
|
|
<property name="runningInitTimeOutMillis" value="300000"/>
|
|
|
|
<property name="threadSleepInterval" value="60000"/>
|
|
|
|
<property name="initialDelay" value="320000"/>
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean depends-on="gfeDbRegistered" id="smartInitSrv" class="com.raytheon.edex.plugin.gfe.smartinit.SmartInitSrv">
|
|
|
|
<constructor-arg ref="smartInitSrvCfg" />
|
|
|
|
</bean>
|
|
|
|
|
|
|
|
<bean id="spcWatch" class="com.raytheon.edex.plugin.gfe.spc.SPCWatchSrv" />
|
|
|
|
<bean id="tpcWatch" class="com.raytheon.edex.plugin.gfe.tpc.TPCWatchSrv" />
|
|
|
|
<bean id="wclWatch" class="com.raytheon.edex.plugin.gfe.wcl.WCLWatchSrv" />
|
|
|
|
|
|
|
|
<bean id="gfeIngestFilter" class="com.raytheon.edex.plugin.gfe.server.notify.GfeIngestNotificationFilter">
|
|
|
|
<property name="smartInitQueue" ref="smartInitQueue"/>
|
|
|
|
</bean>
|
2012-06-05 15:09:50 -05:00
|
|
|
<bean id="vtecChangeListener" class="com.raytheon.edex.plugin.gfe.server.notify.VTECTableChangeListener"/>
|
2012-01-06 08:55:05 -06:00
|
|
|
|
|
|
|
<camelContext id="gfe-camel-spring"
|
|
|
|
xmlns="http://camel.apache.org/schema/spring"
|
|
|
|
errorHandlerRef="errorHandler">
|
|
|
|
<route id="SPCWatch">
|
|
|
|
<from uri="jms-generic:queue:edex.spcWatch?destinationResolver=#qpidDurableResolver" />
|
|
|
|
<doTry>
|
|
|
|
<bean ref="spcWatch" method="handleSpcWatch" />
|
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
|
|
|
<to uri="log:gfeWatch?level=ERROR&showBody=false&showCaughtException=true&showStackTrace=true"/>
|
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
|
|
|
</route>
|
|
|
|
|
|
|
|
<route id="TPCWatch">
|
|
|
|
<from uri="jms-generic:queue:edex.tpcWatch?destinationResolver=#qpidDurableResolver" />
|
|
|
|
<doTry>
|
|
|
|
<bean ref="tpcWatch" method="handleTpcWatch" />
|
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
|
|
|
<to uri="log:gfeWatch?level=ERROR&showBody=false&showCaughtException=true&showStackTrace=true"/>
|
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
|
|
|
</route>
|
|
|
|
|
|
|
|
<route id="WCLWatch">
|
|
|
|
<from uri="directvm:wclWatch" />
|
|
|
|
<bean ref="wclWatch" method="handleWclWatch" />
|
2012-06-08 13:20:42 -05:00
|
|
|
</route>
|
|
|
|
|
|
|
|
<route id="smartInitTrigger">
|
|
|
|
<from uri="timer://smartInitTimer?fixedRate=true&period=30000" />
|
|
|
|
<bean ref="smartInitQueue" method="fireSmartInit" />
|
|
|
|
</route>
|
|
|
|
|
|
|
|
<!-- gribNotification not clustered and has two threads to read due to throughput of messages during model run times -->
|
|
|
|
<route id="gfeGribIngestNotification">
|
|
|
|
<from uri="jms-generic:queue:gribNotification?destinationResolver=#qpidDurableResolver&concurrentConsumers=2" />
|
|
|
|
<doTry>
|
|
|
|
<bean ref="serializationUtil" method="transformFromThrift" />
|
|
|
|
<bean ref="gfeIngestFilter" method="filterGribNotifications" />
|
|
|
|
|
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
|
|
|
<to uri="log:gfeIngestFilter?level=ERROR&showBody=false&showCaughtException=true&showStackTrace=true"/>
|
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
|
|
|
</route>
|
2012-01-06 08:55:05 -06:00
|
|
|
</camelContext>
|
|
|
|
|
|
|
|
<camelContext id="clusteredGfeIngestRoutes"
|
|
|
|
xmlns="http://camel.apache.org/schema/spring"
|
|
|
|
errorHandlerRef="errorHandler" autoStartup="false">
|
|
|
|
|
|
|
|
<!-- Smart Init Routes -->
|
|
|
|
<!-- main route now handled through the gfeIngestNotification -->
|
|
|
|
<route id="manualSmartInit">
|
|
|
|
<from uri="jms-smartinit:queue:manualSmartInit" />
|
|
|
|
<doTry>
|
|
|
|
<bean ref="smartInitQueue" method="addManualInit" />
|
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
|
|
|
<to uri="log:smartinit?level=ERROR&showBody=false&showCaughtException=true&showStackTrace=true"/>
|
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
|
|
|
</route>
|
|
|
|
|
|
|
|
<route id="gfeSatIngestNotification">
|
|
|
|
<from uri="jms-generic:queue:satNotification?destinationResolver=#qpidDurableResolver" />
|
|
|
|
<doTry>
|
|
|
|
<bean ref="serializationUtil" method="transformFromThrift" />
|
|
|
|
<bean ref="gfeIngestFilter" method="filterSatelliteNotifications" />
|
|
|
|
|
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
|
|
|
<to uri="log:gfeIngestFilter?level=ERROR&showBody=false&showCaughtException=true&showStackTrace=true"/>
|
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
|
|
|
</route>
|
2012-06-05 15:09:50 -05:00
|
|
|
<route id="gfeVtecChangeNotification">
|
|
|
|
<from uri="jms-generic:topic:edex.alerts.vtec"/>
|
|
|
|
<doTry>
|
2012-06-29 10:23:05 -05:00
|
|
|
<bean ref="serializationUtil" method="transformFromThrift" />
|
|
|
|
<bean ref="vtecChangeListener" method="handleNotification" />
|
2012-06-05 15:09:50 -05:00
|
|
|
<doCatch>
|
|
|
|
<exception>java.lang.Throwable</exception>
|
|
|
|
<to uri="log:vtecChangeListener?level=ERROR&showBody=false&showCaughtException=true&showStackTrace=true"/>
|
|
|
|
</doCatch>
|
|
|
|
</doTry>
|
|
|
|
</route>
|
2012-01-06 08:55:05 -06:00
|
|
|
</camelContext>
|
|
|
|
|
|
|
|
<bean factory-bean="clusteredCamelContextMgr"
|
|
|
|
factory-method="register">
|
|
|
|
<constructor-arg ref="clusteredGfeIngestRoutes" />
|
|
|
|
</bean>
|
|
|
|
</beans>
|