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 -->
@ -32,19 +42,53 @@
implementor="net.brutex.xservices.ws.impl.FileServiceImpl" address="/FileServiceMTOM"> implementor="net.brutex.xservices.ws.impl.FileServiceImpl" address="/FileServiceMTOM">
<jaxws:properties> <jaxws:properties>
<entry key="mtom-enabled" value="true" /> <entry key="mtom-enabled" value="true" />
<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,49 +4,44 @@
<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> </context-param>
</context-param> <context-param>
<context-param> <param-name>quartz:shutdown-on-unload</param-name>
<param-name>quartz:shutdown-on-unload</param-name> <param-value>true</param-value>
<param-value>true</param-value> </context-param>
</context-param> <context-param>
<context-param> <param-name>quartz:wait-on-shutdown</param-name>
<param-name>quartz:wait-on-shutdown</param-name> <param-value>false</param-value>
<param-value>false</param-value> </context-param>
</context-param> <context-param>
<context-param> <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>
<listener> <listener>
<listener-class> <listener-class>
org.quartz.ee.servlet.QuartzInitializerListener org.quartz.ee.servlet.QuartzInitializerListener
</listener-class> </listener-class>
</listener> </listener>
<servlet> <servlet>
<servlet-name>XServices</servlet-name> <servlet-name>XServices</servlet-name>
<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>
<url-pattern>/*</url-pattern> <url-pattern>/*</url-pattern>
@ -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>