Author: karthick
Date: Mon May  4 20:39:41 2009
New Revision: 771431

URL: http://svn.apache.org/viewvc?rev=771431&view=rev
Log:
Compare URIs as strings instead of URLs, to address the JMS case.

Modified:
    
ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/SoapExternalService.java

Modified: 
ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/SoapExternalService.java
URL: 
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/SoapExternalService.java?rev=771431&r1=771430&r2=771431&view=diff
==============================================================================
--- 
ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/SoapExternalService.java
 (original)
+++ 
ode/branches/APACHE_ODE_1.X/axis2/src/main/java/org/apache/ode/axis2/SoapExternalService.java
 Mon May  4 20:39:41 2009
@@ -101,7 +101,7 @@
     private Scheduler _sched;
     private BpelServer _server;
     private ProcessConf _pconf;
-    private URL endpointUrl;
+    private String endpointUrl;
 
     public SoapExternalService(ProcessConf pconf, QName serviceName, String 
portName, ExecutorService executorService,
                                AxisConfiguration axisConfig, Scheduler sched, 
BpelServer server, MultiThreadedHttpConnectionManager connManager) throws 
AxisFault {
@@ -128,11 +128,7 @@
         if (eprElmt == null)
             throw new 
IllegalArgumentException(msgs.msgPortDefinitionNotFound(serviceName, portName));
         endpointReference = 
EndpointFactory.convertToWSA(ODEService.createServiceRef(eprElmt));
-        try {
-            endpointUrl = new URL(endpointReference.getUrl());
-        } catch (MalformedURLException e) {
-            throw new OdeFault(e);
-        }
+        endpointUrl = endpointReference.getUrl();
     }
 
 
@@ -159,7 +155,7 @@
             EndpointReference axisEPR = new EndpointReference(mexEndpointUrl);
             // The endpoint URL might be overridden from the properties file(s)
             // The order of precedence is (in descending order): process, 
property, wsdl.
-            if(endpointUrl.equals(new URL(mexEndpointUrl))){
+            if(endpointUrl.equals(mexEndpointUrl)) {
                 String address = (String) 
client.getOptions().getProperty(Properties.PROP_ADDRESS);
                 if(address!=null) {
                     if (__log.isDebugEnabled()) __log.debug("Endpoint URL 
overridden by property files. "+mexEndpointUrl+" => "+address);


Reply via email to