tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r750538 - /openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/WsDeployer.java
Date Thu, 05 Mar 2009 18:27:31 GMT
Author: dblevins
Date: Thu Mar  5 18:27:31 2009
New Revision: 750538

URL: http://svn.apache.org/viewvc?rev=750538&view=rev
Log:
Patch from Jean-Louis MONTEIRO, OPENEJB-972: MTOM not working
Thanks, Jean-Louis!

Modified:
    openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/WsDeployer.java

Modified: openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/WsDeployer.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/WsDeployer.java?rev=750538&r1=750537&r2=750538&view=diff
==============================================================================
--- openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/WsDeployer.java
(original)
+++ openejb/trunk/openejb3/container/openejb-core/src/main/java/org/apache/openejb/config/WsDeployer.java
Thu Mar  5 18:27:31 2009
@@ -41,6 +41,7 @@
 import javax.wsdl.extensions.http.HTTPAddress;
 import javax.wsdl.extensions.soap.SOAPAddress;
 import javax.xml.namespace.QName;
+import javax.xml.ws.BindingType;
 import javax.xml.ws.WebServiceProvider;
 import javax.xml.ws.soap.SOAPBinding;
 import javax.jws.HandlerChain;
@@ -292,6 +293,13 @@
                 ServiceImplBean serviceImplBean = new ServiceImplBean();
                 serviceImplBean.setEjbLink(sessionBean.getEjbName());
                 portComponent.setServiceImplBean(serviceImplBean);
+
+                // Checking if MTOM must be enabled
+                if (SOAPBinding.SOAP12HTTP_MTOM_BINDING.equals(portComponent.getProtocolBinding())
||
+                        SOAPBinding.SOAP11HTTP_MTOM_BINDING.equals(portComponent.getProtocolBinding()))
{
+                    portComponent.setEnableMtom(true);
+                }
+                
             }
 
             // default portId == deploymentId



Mime
View raw message