awips2/edexOsgi/com.raytheon.edex.textdb/res/spring/textdb-request.xml
root 8e80217e59 Initial revision of AWIPS2 11.9.0-7p5
Former-commit-id: a02aeb236c [formerly 9f19e3f712] [formerly 06a8b51d6d [formerly 64fa9254b946eae7e61bbc3f513b7c3696c4f54f]]
Former-commit-id: 06a8b51d6d
Former-commit-id: 3360eb6c5f
2012-01-06 08:55:05 -06:00

73 lines
No EOL
3.8 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="executeAfosCmdHandler" class="com.raytheon.edex.textdb.handler.ExecuteAfosCmdHandler" />
<bean factory-bean="handlerRegistry" factory-method="register">
<constructor-arg value="com.raytheon.uf.common.dataplugin.text.request.ExecuteAfosCmdRequest"/>
<constructor-arg ref="executeAfosCmdHandler"/>
</bean>
<bean id="executeAwipsCmdHandler" class="com.raytheon.edex.textdb.handler.ExecuteAwipsCmdHandler" />
<bean factory-bean="handlerRegistry" factory-method="register">
<constructor-arg value="com.raytheon.uf.common.dataplugin.text.request.ExecuteAwipsCmdRequest"/>
<constructor-arg ref="executeAwipsCmdHandler"/>
</bean>
<bean id="executeWmoCmdHandler" class="com.raytheon.edex.textdb.handler.ExecuteWmoCmdHandler" />
<bean factory-bean="handlerRegistry" factory-method="register">
<constructor-arg value="com.raytheon.uf.common.dataplugin.text.request.ExecuteWmoCmdRequest"/>
<constructor-arg ref="executeWmoCmdHandler"/>
</bean>
<bean id="writeProductHandler" class="com.raytheon.edex.textdb.handler.WriteProductHandler" />
<bean factory-bean="handlerRegistry" factory-method="register">
<constructor-arg value="com.raytheon.uf.common.dataplugin.text.request.WriteProductRequest"/>
<constructor-arg ref="writeProductHandler"/>
</bean>
<bean id="remoteRetrievalHandler" class="com.raytheon.edex.textdb.handler.RemoteRetrievalHandler">
<property name="rrManager" ref="remoteRetrievalManager" />
</bean>
<bean factory-bean="handlerRegistry" factory-method="register">
<constructor-arg value="com.raytheon.uf.common.dataplugin.text.request.RemoteRetrievalRequest"/>
<constructor-arg ref="remoteRetrievalHandler"/>
</bean>
<bean id="remoteRetrievalManager" class="com.raytheon.edex.textdb.handler.RemoteRetrievalManager">
<!-- <property name="remoteRetrievalExternalURI" value="directvm:remoteRetrievalExternalRoute" /> -->
<property name="rrDelegate" ref="textdbRemoteRetrievalTarget" />
</bean>
<!-- JmsPooled* do not work... -->
<bean id="jms-alt" class="org.apache.camel.component.jms.JmsComponent">
<constructor-arg ref="jmsAltConfig" />
<property name="taskExecutor" ref="genericThreadPool" />
</bean>
<bean id="jmsAltConfig" class="org.apache.camel.component.jms.JmsConfiguration">
<property name="recoveryInterval" value="1000"/>
<property name="connectionFactory" ref="amqConnectionFactory" />
<property name="destinationResolver" ref="qpidNoDurableResolver"/>
</bean>
<camelContext id="textdb-remote-retrieval" xmlns="http://camel.apache.org/schema/spring"
errorHandlerRef="errorHandler">
<proxy id="textdbRemoteRetrievalTarget"
serviceInterface="com.raytheon.edex.textdb.handler.RemoteRetrievalManager$IRRDelegate"
serviceUrl="directvm:remoteRetrievalExternalRoute" />
<route id="remoteRetrievalExternal">
<from uri="directvm:remoteRetrievalExternalRoute" />
<!-- Convert from BeanInvocation if needed. -->
<convertBodyTo type="com.raytheon.uf.common.dataplugin.text.request.RemoteRetrievalRequest" />
<bean ref="serializationUtil" method="transformToThrift" />
<to uri="jms-alt:queue:fxa.mhs.request?requestTimeout=122000" pattern="InOut" />
<bean ref="serializationUtil" method="transformFromThrift" />
</route>
</camelContext>
</beans>