You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2006/10/01 17:33:41 UTC
svn commit: r451761 - in /webservices/axis2/trunk/java/modules:
jaxws/src/org/apache/axis2/jaxws/description/EndpointDescription.java
kernel/src/org/apache/axis2/client/ServiceClient.java
Author: dims
Date: Sun Oct 1 08:33:40 2006
New Revision: 451761
URL: http://svn.apache.org/viewvc?view=rev&rev=451761
Log:
Fix for AXIS2-1182 - service name clash for callback operation
Make it a bit more difficult for the name clash to happen by adding the timestamp to the name.
Modified:
webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/description/EndpointDescription.java
webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/ServiceClient.java
Modified: webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/description/EndpointDescription.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/description/EndpointDescription.java?view=diff&rev=451761&r1=451760&r2=451761
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/description/EndpointDescription.java (original)
+++ webservices/axis2/trunk/java/modules/jaxws/src/org/apache/axis2/jaxws/description/EndpointDescription.java Sun Oct 1 08:33:40 2006
@@ -538,7 +538,7 @@
else {
// REVIEW: Can the portQName ever be null?
// Make this service name unique. The Axis2 engine assumes that a service it can not find is a client-side service.
- serviceName = ServiceClient.ANON_SERVICE + this.hashCode();
+ serviceName = ServiceClient.ANON_SERVICE + this.hashCode() + System.currentTimeMillis();
}
axisService = new AxisService(serviceName);
}
Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/ServiceClient.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/ServiceClient.java?view=diff&rev=451761&r1=451760&r2=451761
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/ServiceClient.java (original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/ServiceClient.java Sun Oct 1 08:33:40 2006
@@ -216,7 +216,7 @@
// shortcut client API. NOTE: We only add the ones we know we'll use
// later in the convenience API; if you use
// this constructor then you can't expect any magic!
- AxisService axisService = new AxisService(ANON_SERVICE + this.hashCode());
+ AxisService axisService = new AxisService(ANON_SERVICE + this.hashCode() + System.currentTimeMillis());
RobustOutOnlyAxisOperation robustoutoonlyOperation = new RobustOutOnlyAxisOperation(
ANON_ROBUST_OUT_ONLY_OP);
axisService.addOperation(robustoutoonlyOperation);
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org