Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Web service client timeout

843833Aug 24 2009 — edited Sep 20 2010
Hi

We have a problem with setting timeout on our web service client. The client is called from within MDB hosted on Glassfish 2.1.
We tried to set properties on WS port:
((BindingProvider)port).getRequestContext().put(BindingProviderProperties.CONNECT_TIMEOUT, connectTimeout);
((BindingProvider)port).getRequestContext().put(BindingProviderProperties.REQUEST_TIMEOUT, requestTimeout);
it does not work, as well as setting JVM option -Dsun.net.client.defaultReadTimeout=120000

This is a big issue as sometimes we observe client hanging on connection for 15 minutes it causes JMS queues to look like stalled.

Do you know any way to force timeout on web service client or to force MDB processing to be interrupted ?
Please help us, I spent hours in vain on googling and found nothing.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 18 2010
Added on Aug 24 2009
6 comments
15,596 views