[ 
http://issues.apache.org/jira/browse/AXIS2-725?page=comments#action_12383352 ] 

Chamikara Jayalath commented on AXIS2-725:
------------------------------------------

You can avoid this by sharing your configuration context between the 
invocations.
But if ur requirement is to use different configuration contexts (or different 
repos.) you can set the listner port dynamically using following code.

TransportInDescription transportIn = 
serviceClient.getAxisService().getAxisConfiguration().getTransportIn(new  QName 
(Constants.TRANSPORT_HTTP));
if (transportIn!=null) {
                Parameter param = 
transportIn.getParameter(TransportListener.PARAM_PORT);
                param.setValue("6061");
}

> "Address already in use: JVM_Bind" exception while creating second 
> SimpleHTTPServer instance
> --------------------------------------------------------------------------------------------
>
>          Key: AXIS2-725
>          URL: http://issues.apache.org/jira/browse/AXIS2-725
>      Project: Apache Axis 2.0 (Axis2)
>         Type: Bug

>     Versions: 1.0
>  Environment: Win2K Pro and WinXP Pro, JDK 1.4, Tomcat 5.5
>     Reporter: Ali Sadik Kumlali

>
> When I run two EchoNonBlockingDualClient sample at the same time, first one 
> successfully starts SimpleHTTPServer on port 6060 and the second one gets an 
> java.net.BindException: Address already in use: JVM_Bind" while trying to 
> start the server.
> Doesn't I have an option to listen all the responses for its dedicated port? 
> For example 6060 for the first instance, 6061 for the second one, and so on. 
> Or, should i assume Axis2 to use the same port for the responses of all the 
> long running transactions?
> Anyway, in either case, it should not throw such exception.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to