Change-Id: Idec6238188f29f51f3738d2e40f95d6c562cfe39 Former-commit-id:4675bed4c2
[formerlyb10b1150be
] [formerlyaf05feb5a7
[formerly 534777d96a45b275abd9cc26818b7df200974595]] Former-commit-id:af05feb5a7
Former-commit-id:4d1a8805ab
133 lines
5.3 KiB
XML
133 lines
5.3 KiB
XML
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tx="http://www.springframework.org/schema/tx"
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
|
|
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
|
|
http://www.springframework.org/schema/tx
|
|
http://www.springframework.org/schema/tx/spring-tx.xsd">
|
|
|
|
<bean id="ServiceUrlFactory"
|
|
class="com.raytheon.uf.edex.registry.ebxml.util.ServiceUrlFactory" />
|
|
<bean id="DbInit" class="com.raytheon.uf.edex.registry.ebxml.dao.DbInit">
|
|
<property name="lcm" ref="lcmServiceImpl" />
|
|
<property name="sessionFactory" ref="metadataSessionFactory" />
|
|
<property name="xacmlAdmin" ref="XACMLPolicyAdministrator"/>
|
|
</bean>
|
|
|
|
<bean id="auditTrailManager"
|
|
class="com.raytheon.uf.edex.registry.ebxml.audittrail.AuditTrailManager">
|
|
<property name="dao" ref="registryObjectDao" />
|
|
</bean>
|
|
|
|
<bean id="pwCallback"
|
|
class="com.raytheon.uf.edex.registry.ebxml.acp.PasswordCallback" />
|
|
|
|
<bean id="WsSecurity" class="org.apache.cxf.ws.security.wss4j.WSS4JInInterceptor">
|
|
<constructor-arg>
|
|
<map>
|
|
<entry key="action" value="UsernameToken" />
|
|
<entry key="passwordType" value="PasswordText" />
|
|
<entry key="passwordCallbackRef">
|
|
<ref bean="pwCallback" />
|
|
</entry>
|
|
</map>
|
|
</constructor-arg>
|
|
</bean>
|
|
|
|
<bean id="XACMLPolicyEnforcementPoint"
|
|
class="com.raytheon.uf.edex.registry.acp.xacml.XACMLPolicyEnforcementPoint">
|
|
<property name="xacmlContextHandler" ref="XACMLContextHandler" />
|
|
</bean>
|
|
|
|
<bean id="XACMLContextHandler"
|
|
class="com.raytheon.uf.edex.registry.acp.xacml.XACMLContextHandler">
|
|
<property name="queryManager" ref="queryServiceImpl" />
|
|
<property name="registryObjectDao" ref="registryObjectDao" />
|
|
<property name="xacmlPolicyAdmin" ref="XACMLPolicyAdministrator" />
|
|
</bean>
|
|
|
|
<bean id="XACMLPolicyAdministrator"
|
|
class="com.raytheon.uf.edex.registry.acp.xacml.XACMLPolicyAdministrator">
|
|
<property name="extrinsicObjectDao" ref="extrinsicObjectDao" />
|
|
<property name="lcm" ref="lcmServiceImpl" />
|
|
</bean>
|
|
|
|
<bean id="queryServiceUrl" factory-bean="ServiceUrlFactory"
|
|
factory-method="getServiceAddress">
|
|
<constructor-arg type="java.lang.String">
|
|
<value>query</value>
|
|
</constructor-arg>
|
|
<constructor-arg type="java.lang.String">
|
|
<value>${EBXML_QUERY_SERVICE_SOAP_PORT}</value>
|
|
</constructor-arg>
|
|
</bean>
|
|
|
|
<!-- start service -->
|
|
<bean id="queryServiceFactory" class="org.apache.cxf.jaxws.JaxWsServerFactoryBean"
|
|
init-method="create">
|
|
<property name="serviceClass"
|
|
value="oasis.names.tc.ebxml.regrep.wsdl.registry.services.v4.QueryManager" /> <!-- Interface... -->
|
|
<property name="address"
|
|
value="http://0.0.0.0:${EBXML_QUERY_SERVICE_SOAP_PORT}/query" />
|
|
<property name="serviceBean" ref="queryServiceSoapImpl" /> <!-- Reference concrete implementation -->
|
|
<property name="inInterceptors">
|
|
<list>
|
|
<ref bean="XACMLPolicyEnforcementPoint" />
|
|
</list>
|
|
</property>
|
|
</bean>
|
|
|
|
<!-- start service -->
|
|
<bean id="notificationServiceFactory" class="org.apache.cxf.jaxws.JaxWsServerFactoryBean"
|
|
init-method="create">
|
|
<property name="serviceClass"
|
|
value="oasis.names.tc.ebxml.regrep.wsdl.registry.services.v4.NotificationListener" /> <!-- Interface... -->
|
|
<property name="address"
|
|
value="http://0.0.0.0:${EBXML_QUERY_SERVICE_SOAP_PORT}/notificationListener" />
|
|
<property name="serviceBean" ref="notificationServiceImpl" /> <!-- Reference concrete implementation -->
|
|
</bean>
|
|
|
|
<!-- start service -->
|
|
<bean id="lcmServiceFactory" class="org.apache.cxf.jaxws.JaxWsServerFactoryBean"
|
|
init-method="create">
|
|
<property name="serviceClass"
|
|
value="oasis.names.tc.ebxml.regrep.wsdl.registry.services.v4.LifecycleManager" /> <!-- Interface... -->
|
|
<property name="address"
|
|
value="http://0.0.0.0:${EBXML_QUERY_SERVICE_SOAP_PORT}/lcm" />
|
|
<property name="serviceBean" ref="lcmServiceImpl" /> <!-- Reference concrete implementation -->
|
|
<property name="inInterceptors">
|
|
<list>
|
|
<ref bean="XACMLPolicyEnforcementPoint" />
|
|
</list>
|
|
</property>
|
|
</bean>
|
|
|
|
<!-- start service -->
|
|
<bean id="validatorServiceFactory" class="org.apache.cxf.jaxws.JaxWsServerFactoryBean"
|
|
init-method="create">
|
|
<property name="serviceClass"
|
|
value="oasis.names.tc.ebxml.regrep.wsdl.registry.services.v4.Validator" /> <!-- Interface... -->
|
|
<property name="address"
|
|
value="http://0.0.0.0:${EBXML_QUERY_SERVICE_SOAP_PORT}/validator" />
|
|
<property name="serviceBean" ref="validatorServiceImpl" /> <!-- Reference concrete implementation -->
|
|
</bean>
|
|
|
|
<!-- start service -->
|
|
<bean id="catalogerServiceFactory" class="org.apache.cxf.jaxws.JaxWsServerFactoryBean"
|
|
init-method="create">
|
|
<property name="serviceClass"
|
|
value="oasis.names.tc.ebxml.regrep.wsdl.registry.services.v4.Cataloger" /> <!-- Interface... -->
|
|
<property name="address"
|
|
value="http://0.0.0.0:${EBXML_QUERY_SERVICE_SOAP_PORT}/getServiceAddress" />
|
|
<property name="serviceBean" ref="catalogerServiceImpl" /> <!-- Reference concrete implementation -->
|
|
</bean>
|
|
|
|
<camelContext id="regRep" xmlns="http://camel.apache.org/schema/spring">
|
|
<route id="internalSubmit">
|
|
<from uri="vm:submitRegistryObjects?concurrentConsumers=2" />
|
|
<bean ref="lcmServiceImpl" method="submitObjectsInternal" />
|
|
</route>
|
|
</camelContext>
|
|
|
|
|
|
|
|
</beans>
|