File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Container Time Out " Watch "Container Time Out " New topic

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:
I agree. Here's the link:
subject: Container Time Out
Similar Threads
A challenge for all of you
Transaction Timeout
Axis Fault java. lang. reflect.Invocation Target Exception
My SCEA Part 1Study Notes