[
https://issues.apache.org/jira/browse/AXIS2-4381?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Amila Chinthaka Suriarachchi resolved AXIS2-4381.
-------------------------------------------------
Resolution: Fixed
this is a static synchronize method so it should not have the problem you have
mentioned.
> Service names in generated Service stubs (from wsdl) are not application
> unique
> -------------------------------------------------------------------------------
>
> Key: AXIS2-4381
> URL: https://issues.apache.org/jira/browse/AXIS2-4381
> Project: Axis2
> Issue Type: Bug
> Components: codegen
> Affects Versions: 1.5, 1.4.1
> Environment: Windows XP, JDK 1.6.0_10, Maven 2.0.10
> Reporter: Henrik Larne
>
> The service name used in the generated Service stubs are not unique when
> using wsdl2java Maven plugin. The names are built from the unqualified
> service name concatenated with a suffix from the following method:
> private static synchronized String getUniqueSuffix() {
> // reset the counter if it is greater than 99999
> if (counter > 99999){
> counter = 0;
> }
> counter = counter + 1;
> return Long.toString(System.currentTimeMillis()) + "_" + counter;
> }
> The problem is that each service stub has its own version of this unique
> suffix method and thus two (or more) methods could be called concurrently and
> thus generate the same suffix. If the classes they belong to have the same
> unqualified name the service names will be identical and thus the last one to
> be created will fail when it is beeing registered in the AxisConfiguration.
> Solutions:
> 1. Make sure that there is only one getUniqueSuffix method (for instance in
> AxisConfiguration).
> 2. Use the fully qualified class name plus the suffix to name a new service
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]