Hi guru

When using the axis2 stub generated by wsdl2java, do I need to remember to 
close the connection after calling the stub function?

Example:
Stub function:
     searchResponse = oneStub.searchForNumber(...)
     // try to call close here?

-- generated stub ---
in searchForNumber() {
    _operationClient.execute(true);
   // process response
   ...
}

While I run 6 copy of the clients, I found there are so many connection hanging 
in the client as well as server:

Server
   1 CLOSING
   1 LISTEN
  23 ESTABLISHED
  24 TIME_WAIT
  41 SYN_RCVD
 100 FIN_WAIT_2
 482 FIN_WAIT_1


Client
 (15080 is the server port)
$netstat |awk '/15080/ {print $4}' |sort |uniq -c |sort -n
      4 FIN_WAIT_2
      6 SYN_SENT
    397 CLOSE_WAIT
    928 TIME_WAIT
   1372 ESTABLISHED

All client time out at the end:
org.apache.axis2.AxisFault: Read timed out
        at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Com
monsHTTPTransportSender.java:221)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:452)
        at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisO
peration.java:330)
        at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAx
isOperation.java:294)
...

Thank in
 advanced!



Regards
Rex




      Luggage? GPS? Comic books? 

Check out fitting  gifts for grads at Yahoo! Search.






      
____________________________________________________________________________________
Luggage? GPS? Comic books? 
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz

Reply via email to