|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xmlns:jaxws="http://cxf.apache.org/jaxws"
|
|
xmlns:cxf="http://cxf.apache.org/core"
|
|
xsi:schemaLocation="
|
|
http://www.springframework.org/schema/beans
|
|
http://www.springframework.org/schema/beans/spring-beans.xsd
|
|
http://cxf.apache.org/core
|
|
http://cxf.apache.org/schemas/core.xsd
|
|
http://cxf.apache.org/jaxws
|
|
http://cxf.apache.org/schemas/jaxws.xsd">
|
|
|
|
<import resource="classpath:META-INF/cxf/cxf.xml" />
|
|
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml"/>
|
|
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
|
|
|
|
<bean id="dataPropertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
|
|
<property name="locations">
|
|
<list>
|
|
<value>classpath:application.properties</value>
|
|
</list>
|
|
</property>
|
|
</bean>
|
|
|
|
<bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean" scope="singleton">
|
|
<property name="jndiName" value="java:comp/env/jdbc/DSDB" />
|
|
</bean>
|
|
|
|
<bean id="dsService" class="fr.unicaen.iota.ds.service.DSService">
|
|
<property name="dataSource" ref="dataSource" />
|
|
<property name="backend">
|
|
<bean class="fr.unicaen.iota.ds.commons.OperationsBackendSQL" />
|
|
</property>
|
|
</bean>
|
|
|
|
<jaxws:endpoint id="DSEndpoint"
|
|
serviceName="ds:DSService"
|
|
implementor="#dsService"
|
|
address="/"
|
|
xmlns:ds="urn:unicaen:iota:ds:wsdl" />
|
|
|
|
</beans>
|