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.