Hi Deepal,

In my initial post, I had mentioned that I had set the timeout interval in
the options of the serviceclient:

> 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);

This did not work when running the app as a webapp under tomcat. It did work
when running as a junit test under Eclipse. So it seemed as though Tomcat or
Axis2 was not registering the timeout interval I had set.

Thank you.
Regards,
Craig






Deepal Jayasinghe-2 wrote:
> 
> Hi acmclellen ,
> When you call service using serviceclient (I mean in the option object)
> you can set the timeout interval there as well , please try to do that
> and see.
> 
> 
>> 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
>>   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Wierd-issue-with-tomcat---ServiceClient-invocation-timing-out-after-15-seconds-tp14948035p14992876.html
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to