Move to AEGIS databinding

git-svn-id: https://brutex.net/svn/xservices/trunk@75 e7e49efb-446e-492e-b9ec-fcafc1997a86
tag-20130205r
Brian Rosenberger 2011-12-31 13:10:52 +00:00
parent 42ec4fb39d
commit 1388f54c70
2 changed files with 105 additions and 51 deletions

View File

@ -1,6 +1,6 @@
<beans xmlns="http://www.springframework.org/schema/beans" <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:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:jaxrs="http://cxf.apache.org/jaxrs" xmlns:jaxrs="http://cxf.apache.org/jaxrs" xmlns:simple="http://cxf.apache.org/simple"
xsi:schemaLocation=" xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
@ -8,23 +8,33 @@
<import resource="classpath:META-INF/cxf/cxf.xml" /> <import resource="classpath:META-INF/cxf/cxf.xml" />
<!-- deprecated since CXF 2.4.0 --> <!-- deprecated since CXF 2.4.0 -->
<!-- <!-- <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /> <import resource="classpath:META-INF/cxf/cxf-extension-jaxrs-binding.xml"
<import resource="classpath:META-INF/cxf/cxf-extension-jaxrs-binding.xml" /> /> -->
-->
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" /> <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
<jaxws:endpoint id="archiveservice" <jaxws:endpoint id="archiveservice"
implementor="net.brutex.xservices.ws.impl.ArchiveServiceImpl" address="/ArchiveService" /> implementor="net.brutex.xservices.ws.impl.ArchiveServiceImpl" address="/ArchiveService">
<jaxws:dataBinding>
<bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
</jaxws:dataBinding>
</jaxws:endpoint>
<jaxws:endpoint id="dateservice" <jaxws:endpoint id="dateservice"
implementor="net.brutex.xservices.ws.impl.DateServiceImpl" address="/DateService" /> implementor="net.brutex.xservices.ws.impl.DateServiceImpl" address="/DateService">
<jaxws:dataBinding>
<bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
</jaxws:dataBinding>
</jaxws:endpoint>
<jaxws:endpoint id="fileservice" <jaxws:endpoint id="fileservice"
implementor="net.brutex.xservices.ws.impl.FileServiceImpl" address="/FileService"> implementor="net.brutex.xservices.ws.impl.FileServiceImpl" address="/FileService">
<jaxws:properties> <jaxws:properties>
<entry key="mtom-enabled" value="false" /> <entry key="mtom-enabled" value="false" />
</jaxws:properties> </jaxws:properties>
<jaxws:dataBinding>
<bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
</jaxws:dataBinding>
</jaxws:endpoint> </jaxws:endpoint>
<!-- This is the MTOM enabled FileServices endpoint --> <!-- This is the MTOM enabled FileServices endpoint -->
@ -35,16 +45,50 @@
<entry key="attachment-directory" value="c:\temp" /> <entry key="attachment-directory" value="c:\temp" />
<entry key="attachment-memory-threshold" value="2000" /> <entry key="attachment-memory-threshold" value="2000" />
</jaxws:properties> </jaxws:properties>
<jaxws:dataBinding>
<bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
</jaxws:dataBinding>
</jaxws:endpoint> </jaxws:endpoint>
<jaxws:endpoint id="executeservice" <jaxws:endpoint id="executeservice"
implementor="net.brutex.xservices.ws.impl.ExecuteServiceImpl" address="/ExecuteService" /> implementor="net.brutex.xservices.ws.impl.ExecuteServiceImpl" address="/ExecuteService">
<jaxws:dataBinding>
<bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
</jaxws:dataBinding>
</jaxws:endpoint>
<jaxws:endpoint id="jobservice" <jaxws:endpoint id="jobservice"
implementor="net.brutex.xservices.ws.impl.JobServiceImpl" address="/JobService" /> implementor="net.brutex.xservices.ws.impl.JobServiceImpl" address="/JobService">
<jaxws:dataBinding>
<bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
</jaxws:dataBinding>
</jaxws:endpoint>
<jaxws:endpoint id="miscservice" <jaxws:endpoint id="miscservice"
implementor="net.brutex.xservices.ws.impl.MiscServiceImpl" address="/MiscService" /> implementor="net.brutex.xservices.ws.impl.MiscServiceImpl" address="/MiscService">
<jaxws:dataBinding>
<bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
</jaxws:dataBinding>
</jaxws:endpoint>
<jaxws:endpoint id="storageservice"
implementor="net.brutex.xservices.ws.impl.StorageServiceImpl" address="/StorageService">
<jaxws:dataBinding>
<bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
</jaxws:dataBinding>
</jaxws:endpoint>
<jaxws:endpoint id="storageservice2"
implementor="net.brutex.xservices.ws.impl.StorageServiceImpl" address="/StorageServiceMTOM">
<jaxws:properties>
<entry key="mtom-enabled" value="true" />
<entry key="attachment-directory" value="c:\temp" />
<entry key="attachment-memory-threshold" value="2000" />
</jaxws:properties>
<jaxws:dataBinding>
<bean class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
</jaxws:dataBinding>
</jaxws:endpoint>
</beans> </beans>

View File

@ -4,7 +4,6 @@
<param-name>contextConfigLocation</param-name> <param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/cxf-beans.xml</param-value> <param-value>/WEB-INF/cxf-beans.xml</param-value>
</context-param> </context-param>
<context-param> <context-param>
<param-name>quartz:config-file</param-name> <param-name>quartz:config-file</param-name>
<param-value>quartz.properties</param-value> <param-value>quartz.properties</param-value>
@ -21,7 +20,6 @@
<param-name>quartz:start-scheduler-on-load</param-name> <param-name>quartz:start-scheduler-on-load</param-name>
<param-value>true</param-value> <param-value>true</param-value>
</context-param> </context-param>
<listener> <listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener> </listener>
@ -35,17 +33,14 @@
<servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class> <servlet-class>org.apache.cxf.transport.servlet.CXFServlet</servlet-class>
<load-on-startup>1</load-on-startup> <load-on-startup>1</load-on-startup>
</servlet> </servlet>
<servlet> <servlet>
<servlet-name>QuartzInitializer</servlet-name> <servlet-name>QuartzInitializer</servlet-name>
<servlet-class>org.quartz.ee.servlet.QuartzInitializerServlet</servlet-class> <servlet-class>org.quartz.ee.servlet.QuartzInitializerServlet</servlet-class>
<init-param> <init-param>
<param-name>shutdown-on-unload</param-name> <param-name>shutdown-on-unload</param-name>
<param-value>true</param-value> <param-value>true</param-value>
</init-param> </init-param>
<load-on-startup>2</load-on-startup> <load-on-startup>2</load-on-startup>
</servlet> </servlet>
<servlet-mapping> <servlet-mapping>
<servlet-name>XServices</servlet-name> <servlet-name>XServices</servlet-name>
@ -57,4 +52,19 @@
<welcome-file-list> <welcome-file-list>
<welcome-file>index.html</welcome-file> <welcome-file>index.html</welcome-file>
</welcome-file-list> </welcome-file-list>
<servlet>
<description></description>
<display-name>AgentServlet</display-name>
<servlet-name>AgentServlet</servlet-name>
<servlet-class>net.brutex.xservices.agent.AgentServlet</servlet-class>
<init-param>
<description>Port to listen on</description>
<param-name>port</param-name>
<param-value>1313</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>AgentServlet</servlet-name>
<url-pattern>/AgentServlet</url-pattern>
</servlet-mapping>
</web-app> </web-app>