awips2/cave/com.raytheon.uf.viz.datadelivery/res/spring/datadelivery.xml
Bryan Kowal 904678e8f4 Issue - Merge 5-Data_Delivery into AWIPS2_baseline
Former-commit-id: 199e202979 [formerly ab8b346489] [formerly c8a43edd9e] [formerly 199e202979 [formerly ab8b346489] [formerly c8a43edd9e] [formerly d6b4cb65f4 [formerly c8a43edd9e [formerly b535a90fb25287945485c10b3c85749c11285171]]]]
Former-commit-id: d6b4cb65f4
Former-commit-id: 0e985cf0f3 [formerly 6d7f57c62a] [formerly acd3a92b4c1f1e4b7e0fc18eb618a5d77643ccb8 [formerly 146c43a606]]
Former-commit-id: caceba3a84e843b279eb8a807b33e26d81487e49 [formerly 0136f9d5a3]
Former-commit-id: 1996f92f7e
2013-01-07 12:16:01 -06:00

86 lines
No EOL
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"
xmlns:util="http://www.springframework.org/schema/util"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-2.5.xsd">
<bean id="registryHandler"
class="com.raytheon.uf.common.registry.ebxml.ThriftRegistryHandler" />
<!-- Comment out the ThriftRegistryHandler and uncomment this block to test the SOAP handler from CAVE -->
<!--
<bean id="soapRegistryManager" class="com.raytheon.uf.viz.datadelivery.utils.VizSoapRegistryHandler"/>
<bean id="registryHandler"
class="com.raytheon.uf.common.registry.ebxml.FactoryRegistryHandler">
<property name="txManager" ref="soapRegistryManager"/>
<property name="lcmFactory" ref="soapRegistryManager"/>
<property name="queryFactory" ref="soapRegistryManager"/>
</bean>
<bean id="registryEncoderType"
class="com.raytheon.uf.common.registry.ebxml.encoder.RegistryEncoders$Type"
factory-method="valueOf">
<constructor-arg
value="JAXB" />
</bean>
<bean id="registryEncoder"
class="com.raytheon.uf.common.registry.ebxml.encoder.RegistryEncoders"
factory-method="ofType">
<constructor-arg ref="registryEncoderType" />
</bean>
<bean name="registryUtilInitializer"
class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="staticMethod"
value="com.raytheon.uf.common.registry.ebxml.RegistryUtil.setEncoderStrategy" />
<property name="arguments">
<list>
<ref bean="registryEncoder" />
</list>
</property>
</bean>
-->
<bean name="registryManagerInstanceInitializer" class="com.raytheon.uf.common.registry.RegistryManager">
<constructor-arg ref="registryHandler" />
</bean>
<!-- These util:constant beans should not be required, they overwrite the ones in *-common.xml files for CAVE since
CAVE just gets a ClassNotFoundException on boot...
someday the reason should be figured out and these beans removed -->
<util:constant id="dataDeliveryServerKey"
static-field="com.raytheon.uf.common.datadelivery.request.DataDeliveryConstants.DATA_DELIVERY_SERVER" />
<util:constant id="ebxmlRegistryServiceKey"
static-field="com.raytheon.uf.common.registry.RegistryConstants.EBXML_REGISTRY_SERVICE" />
<util:constant id="ebxmlLcmServiceKey"
static-field="com.raytheon.uf.common.registry.RegistryConstants.EBXML_LCM_SERVICE" />
<util:constant id="ebxmlQueryServiceKey"
static-field="com.raytheon.uf.common.registry.RegistryConstants.EBXML_QUERY_SERVICE" />
<!-- Routers for services -->
<bean id="dataDeliveryRouter" class="com.raytheon.uf.viz.core.requests.ServerRequestRouter">
<constructor-arg ref="dataDeliveryServerKey" />
</bean>
<bean id="registryRouter" class="com.raytheon.uf.viz.core.requests.ServerRequestRouter">
<constructor-arg ref="ebxmlRegistryServiceKey" />
</bean>
<!-- Registers the IRequestRouter for services -->
<bean id="registerDataDeliveryRouter" factory-bean="requestRouterRegistry" factory-method="register">
<constructor-arg ref="dataDeliveryServerKey" />
<constructor-arg ref="dataDeliveryRouter" />
</bean>
<bean id="registerRegistryRouter" factory-bean="requestRouterRegistry" factory-method="register">
<constructor-arg ref="ebxmlRegistryServiceKey" />
<constructor-arg ref="registryRouter" />
</bean>
</beans>