Hi all,
I'm currently investigating Axis and I was doing a simple
"performance" test. Here is my (client) code:
package
com.cumquatit.axis.generated;
import
com.cumquatit.axis.generated.IFHelloWhoSoapBindingStub;
import com.cumquatit.axis.generated.IFHelloWhoServiceLocator; public class IFClient {
public static void main(String args[]) { try { long _start = System.currentTimeMillis(); IFHelloWhoSoapBindingStub binding = (IFHelloWhoSoapBindingStub) new IFHelloWhoServiceLocator().getIFHelloWho();
System.out.println(args[0]);
for( int i = 0; i < Integer.valueOf(args[0]).intValue(); i++ ) { String value = binding.call("This is call# " + (i + 1)); System.out.println(value); } System.out.println("This took "+(System.currentTimeMillis()-_start)+"ms"); } catch( Exception e ) { e.printStackTrace(System.out); } } } Somewhere around 7500 calls I get the error:
"java.net.BindException: Address already in use: connect". Am I using Axis in a
wrong way, or shouldn't it break. The service is (of course) really simple. It
echos what it receives back to the caller, like: Hello This is call#
7775
Maybe somebody can explain?
Thanks,
Jan.
|