awips2/edexOsgi/com.raytheon.uf.edex.plugin.text.dbsrv/res/spring/text-dbsrv-request.xml
2018-06-20 17:39:08 -06:00

51 lines
No EOL
2.5 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="getAfosIdHandler" class="com.raytheon.uf.edex.plugin.text.dbsrv.handler.GetAfosIdHandler" />
<bean id="getPartialAfosIdHandler" class="com.raytheon.uf.edex.plugin.text.dbsrv.handler.GetPartialAfosIdHandler" />
<bean id="getWmoIdHandler" class="com.raytheon.uf.edex.plugin.text.dbsrv.handler.GetWmoIdHandler" />
<!-- textdb -->
<bean id="executeAfosCmdHandler" class="com.raytheon.uf.edex.plugin.text.dbsrv.handler.ExecuteAfosCmdHandler" />
<bean id="executeAwipsCmdHandler" class="com.raytheon.uf.edex.plugin.text.dbsrv.handler.ExecuteAwipsCmdHandler" />
<bean id="executeWmoCmdHandler" class="com.raytheon.uf.edex.plugin.text.dbsrv.handler.ExecuteWmoCmdHandler" />
<bean id="remoteRetrievalHandler" class="com.raytheon.uf.edex.plugin.text.dbsrv.handler.RemoteRetrievalHandler">
<property name="rrManager" ref="remoteRetrievalManager" />
</bean>
<bean id="textdbRequestHandler" class="com.raytheon.uf.edex.plugin.text.dbsrv.TextDBRequestHandler">
<constructor-arg ref="textdbsrv" />
</bean>
<bean id="remoteRetrievalManager" class="com.raytheon.uf.edex.plugin.text.dbsrv.handler.RemoteRetrievalManager">
<property name="rrDelegate" ref="textdbRemoteRetrievalTarget" />
</bean>
<camelContext id="textdbsrv-request-camel" xmlns="http://camel.apache.org/schema/spring" errorHandlerRef="errorHandler">
<proxy id="textdbRemoteRetrievalTarget"
serviceInterface="com.raytheon.uf.edex.plugin.text.dbsrv.handler.RemoteRetrievalManager$IRRDelegate"
serviceUrl="direct-vm:remoteRetrievalExternalRoute" />
<route id="remoteRetrievalExternal">
<from uri="direct-vm:remoteRetrievalExternalRoute" />
<!-- Convert from BeanInvocation if needed. -->
<convertBodyTo type="com.raytheon.uf.common.dataplugin.text.request.RemoteRetrievalRequest" />
<bean ref="serializationUtil" method="transformToThrift" />
<to uri="jms-mhs:queue:fxa.mhs.request?requestTimeout=122000" pattern="InOut" />
<bean ref="serializationUtil" method="transformFromThrift" />
</route>
</camelContext>
</beans>