Author: gnodet
Date: Sun Oct 15 14:08:18 2006
New Revision: 464293

URL: http://svn.apache.org/viewvc?view=rev&rev=464293
Log:
SM-536: defaultMep is mandatory for non-soap consumer endpoints

Removed:
    
incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/HttpXBeanDeployer.java
Modified:
    
incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/HttpEndpoint.java

Modified: 
incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/HttpEndpoint.java
URL: 
http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/HttpEndpoint.java?view=diff&rev=464293&r1=464292&r2=464293
==============================================================================
--- 
incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/HttpEndpoint.java
 (original)
+++ 
incubator/servicemix/trunk/servicemix-http/src/main/java/org/apache/servicemix/http/HttpEndpoint.java
 Sun Oct 15 14:08:18 2006
@@ -19,6 +19,7 @@
 import java.net.URI;
 
 import javax.jbi.management.DeploymentException;
+import javax.jbi.messaging.MessageExchange.Role;
 import javax.jbi.servicedesc.ServiceEndpoint;
 import javax.wsdl.Binding;
 import javax.wsdl.Definition;
@@ -281,6 +282,9 @@
         }
         if (getLocationURI() == null) {
             throw failure("deploy", "Endpoint must have a defined 
locationURI", null);
+        }
+        if (!isSoap() && getRole() == Role.CONSUMER && getDefaultMep() == 
null) {
+            throw failure("deploy", "Non soap endpoints must have a defined 
defaultMep", null);
         }
     }
 


Reply via email to