• Post Reply Bookmark Topic Watch Topic
  • New Topic

Pooling the Stub for Axis Soap Webservice Call

 
Abhishek Rath
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All

   In my application we are creating the stub for each request and then on that Stub we are invoking the Login function to login to external vendor database. For last few weeks we are getting the below exception

Connection reset
org.apache.axis2.AxisFault: Connection reset
        at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
        at org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:83)
        at org.apache.axis2.transport.http.AxisRequestEntity.writeRequest(AxisRequestEntity.java:84)

On multiple try we are able to get the response. So one of the suggestion the Vendor gave to use the Pooling for Stub with a TTL. SO please let me know how to proceed with this implementation.

 
Vijitha Kumara
Bartender
Posts: 3954
21
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First you could try caching your client object locally/have it as a global variable and try to use that?
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!