Hi!
 
I have written a simple blocking client using Axis2 1.3 API's.
 
When I do like this:
 
for(int i = 0; i < 1000000; i++) {
...
ServiceClient sender = new ServiceClient();
sender.sendReceive(payload);
...
}
 
there is no problem. The client runs for many hours.
 
 
 
When I do like this:
 
ServiceClient sender = new ServiceClient();
 
for(int i = 0; i < 1000000; i++) {
...
sender.sendReceive(payload);
....
sender.cleanup();
sender.cleanupTransport();
 
}
 
I get exception ....AxisFault: Address already in use: connect
after a couple of thousand calls.
 
It seems to be something wrong in the ServiceClient class which shows up after 
a while.
Any ideas?
 
/Pär Malmqvist
 
 
 
 
 
 
 
_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE

Reply via email to