awips2/edexOsgi/com.raytheon.edex.plugin.gfe/res/spring/gfe-common.xml
Steve Harris 4b1a9ad438 13.4.1-8 baseline
Former-commit-id: 02dba50c00 [formerly 576a74fe0b] [formerly 19866e7032] [formerly 02dba50c00 [formerly 576a74fe0b] [formerly 19866e7032] [formerly c59b52a266 [formerly 19866e7032 [formerly d130c847d4f9d0b491f9326c8b5140fb59174927]]]]
Former-commit-id: c59b52a266
Former-commit-id: fddef92bf3 [formerly 5465764527] [formerly c60ffcebecebf9d637d3276980b24255a17f4079 [formerly a1c4cd2a39]]
Former-commit-id: 39606e2ce74e5380d44e132dd22716b3b06b5051 [formerly 395d21565f]
Former-commit-id: 5bdcf5c0a1
2013-05-14 09:21:41 -04:00

98 lines
4 KiB
XML

<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="gfeProperties" class="com.raytheon.uf.common.dataplugin.PluginProperties">
<property name="pluginName" value="gfe" />
<property name="pluginFQN" value="com.raytheon.uf.common.dataplugin.gfe" />
<property name="dao" value="com.raytheon.edex.plugin.gfe.db.dao.GFEDao" />
<property name="record"
value="com.raytheon.uf.common.dataplugin.gfe.db.objects.GFERecord" />
<property name="initializer"
value="com.raytheon.edex.plugin.gfe.GfePluginInitializer" />
<property name="compression" value="LZF"/>
</bean>
<bean id="gfeDbPluginProperties" class="com.raytheon.uf.edex.database.DatabasePluginProperties">
<property name="pluginFQN" value="com.raytheon.edex.plugin.gfe" />
<property name="database" value="metadata" />
</bean>
<bean id="gfeRegistered" factory-bean="pluginRegistry" factory-method="register"
depends-on="gridRegistered, textRegistered">
<constructor-arg value="gfe" />
<constructor-arg ref="gfeProperties" />
</bean>
<bean id="gfeDbRegistered" factory-bean="dbPluginRegistry" factory-method="register"
depends-on="gfeRegistered">
<constructor-arg value="com.raytheon.edex.plugin.gfe"/>
<constructor-arg ref="gfeDbPluginProperties"/>
</bean>
<bean id="gfeSiteActivation" class="com.raytheon.edex.plugin.gfe.config.GFESiteActivation"
factory-method="getInstance" depends-on="commonTimeRegistered">
</bean>
<bean id="gfeSitesActive" factory-bean="siteAwareRegistry" factory-method="register">
<constructor-arg ref="gfeSiteActivation" />
</bean>
<bean id="parmIdFilter"
class="com.raytheon.edex.plugin.gfe.cache.d2dparms.D2DParmIdFilter" />
<bean id="gfeNotifyFilter"
class="com.raytheon.edex.plugin.gfe.server.notify.GfeNotificationFilter" />
<bean id="d2dParmIdCache"
class="com.raytheon.edex.plugin.gfe.cache.d2dparms.D2DParmIdCache"
factory-method="getInstance" />
<camelContext id="gfe-common-camel" xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler">
<route id="gfeParmIdCacheListenerEndpoint">
<from uri="jms-generic:topic:gfeGribNotification?concurrentConsumers=1" />
<doTry>
<bean ref="serializationUtil" method="transformFromThrift" />
<bean ref="parmIdFilter" method="updateParmIdCache" />
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:paramIdCache?level=ERROR&amp;showBody=false&amp;showCaughtException=true&amp;showStackTrace=true"/>
</doCatch>
</doTry>
</route>
<route id="gfeNotify">
<from uri="vm:edex.gfeNotification?size=5000" />
<doTry>
<filter>
<method bean="gfeNotifyFilter" method="isGfeNotification" />
<bean ref="serializationUtil" method="transformToThrift" />
<to uri="jms-generic:topic:edex.alerts.gfe?timeToLive=60000" />
</filter>
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:gfeNotify?level=ERROR&amp;showBody=false&amp;showCaughtException=true&amp;showStackTrace=true"/>
</doCatch>
</doTry>
</route>
<route id="rebuildD2DCache">
<from uri="jms-generic:topic:rebuildD2DCache" />
<bean ref="d2dParmIdCache" method="buildCache" />
</route>
<route id="rebuildD2DCacheAfterPurge">
<from uri="jms-generic:topic:pluginPurged" />
<doTry>
<bean ref="d2dParmIdCache" method="pluginPurged" />
<doCatch>
<exception>java.lang.Throwable</exception>
<to uri="log:paramIdCache?level=ERROR&amp;showBody=false&amp;showCaughtException=true&amp;showStackTrace=true"/>
</doCatch>
</doTry>
</route>
</camelContext>
</beans>