aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Container Time Out Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Container Time Out " Watch "Container Time Out " New topic
Author

Container Time Out

Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
We have a CMT SLSB in WebSphere 5.x that calls a remote web service. If we call the remote service with an incorrect password (I'd call this a bug on their end) they never return. Then our bean hangs forever.

We can simulate this with a local web service mock tester by setting the configurable latency to three minutes. It is different in that it does eventually return something.

In the log we see the container report a timeout after the configured 120 seconds. This happens both with the remote service and the mock service. But nothing at all happens in the calling code. When the mock service returns after 3 minutes, the calling code catches and reports a transaction timeout exception. Because the remote service never returns we never see an exception and the client hangs forever waiting.

I expected the time out to cause an exception and blow away the whole call into the session bean after 2 minutes. Does the thread waiting on the web service somehow block the exception? Does any of this make sense?


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Hmmmm, known bug: http://www-1.ibm.com/support/docview.wss?rs=180&context=SSEQTP&uid=swg1PQ72575
http://www-1.ibm.com/support/docview.wss?uid=swg27005042
 
Don't get me started about those stupid light bulbs.
 
subject: Container Time Out