You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by di...@apache.org on 2008/02/15 02:17:34 UTC
svn commit: r627925 -
/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl
Author: dims
Date: Thu Feb 14 17:17:33 2008
New Revision: 627925
URL: http://svn.apache.org/viewvc?rev=627925&view=rev
Log:
Fix for AXIS2-3400 - AxisService name not unique enough
Modified:
webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl
Modified: webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl?rev=627925&r1=627924&r2=627925&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl (original)
+++ webservices/axis2/trunk/java/modules/codegen/src/org/apache/axis2/wsdl/template/java/InterfaceImplementationTemplate.xsl Thu Feb 14 17:17:33 2008
@@ -64,12 +64,13 @@
private static int counter = 0;
- private synchronized int getUniqueSuffix(){
- // reset the counter if it is greater than 10000
- if (counter > 10000){
+ private static synchronized String getUniqueSuffix(){
+ // reset the counter if it is greater than 99999
+ if (counter > 99999){
counter = 0;
}
- return counter++;
+ counter = counter + 1;
+ return Long.toString(System.currentTimeMillis()) + "_" + counter;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org