• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Wierd issue with tomcat - ServiceClient invocation timing out after 15 seconds

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm trying to call a web method that is expected to take 1min 10sec to complete, but ServiceClient invoke method is timing out after 15 seconds when running in a TomCat 5.5 container, but not when running as a junit test. When running as a junit test, the ServiceClient waits long enough (1min 10 sec) for the web method to return a result. I thought it may have been an issue with TomCat 5.5, so I then installed v6, but the app still timedout after 15 seconds under TomCat v6. The app is a web service using Axis2 v1.3. I'm using jdk 5.

These are the options I've set on my ServiceClient instance:
options.setTimeOutInMilliSeconds(120000);
options.setProperty(HTTPConstants.SO_TIMEOUT, 120000);
options.setProperty(HTTPConstants.CONNECTION_TIMEOUT, 120000);
options.setCallTransportClieanup(true);

These are the settings in my axis2.xml file:
ConfigContextTimeoutInterval=35000
requestTimeout=45000 (within the transportReceiver element)

These are the settings in my server.xml file under ${TOMCAT_HOME}/conf
connectionTimeout=55000 (within the Connector element)

I've run out of ideas as to what I could try next to get this web method call from timing out before 2 minutes.
I would really appreciate any help in getting this sorted.
Thanks,
Cheers,
Craig
 
reply
    Bookmark Topic Watch Topic
  • New Topic