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 de...@apache.org on 2007/03/20 09:22:03 UTC
svn commit: r520314 -
/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/ServiceClient.java
Author: deepal
Date: Tue Mar 20 01:22:02 2007
New Revision: 520314
URL: http://svn.apache.org/viewvc?view=rev&rev=520314
Log:
applying AXIS2-1182 patch
Modified:
webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/client/ServiceClient.java
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=520314&r1=520313&r2=520314
==============================================================================
--- 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 Tue Mar 20 01:22:02 2007
@@ -44,6 +44,8 @@
import org.apache.axis2.engine.ListenerManager;
import org.apache.axis2.i18n.Messages;
import org.apache.axis2.wsdl.WSDLConstants;
+import edu.emory.mathcs.backport.java.util.concurrent.atomic.AtomicLong;
+
import javax.wsdl.Definition;
import javax.xml.namespace.QName;
@@ -63,6 +65,10 @@
*/
public static final String ANON_SERVICE = "anonService";
+ /** Counter used to generate the anonymous service name. */
+ private static AtomicLong anonServiceCounter = new AtomicLong(0);
+
+
/**
* Operation name used for an anonymous out-only operation (meaning we send
* a message with no response allowed from the service, equivalent to a WSDL
@@ -235,7 +241,7 @@
// 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() + System.currentTimeMillis());
+ new AxisService(ANON_SERVICE + anonServiceCounter.incrementAndGet());
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