Remote EJB timing out with socket read timeout

Solution Verified - Updated -

Issue

  • The client facing server invokes a remote EJB service (@stateless). This is a blocking call and so the client will wait until the task is complete. Some of these jobs run over 30 minutes. When 30 minutes reached, the client facing server gets a socket read timeout exception. Could you suggest a way for us to increase the socket read timeout of EJB invocation? We tried to increase the transaction timeout, but it does not really help.
8:59:41,416 WARN  [RemoteConnector] Target execution server has unexpected errors : Socket timed out.  Waited 1800000 milliseconds for response while calling on InvokerLocator [socket://10.10.10.10:41000/]; nested exception is:
       java.net.SocketTimeoutException: Read timed out
8:59:41,416 ERROR [STDERR] java.lang.reflect.UndeclaredThrowableException
....

Environment

  • Red Hat JBoss Enterprise Application Platform
    • 5.1.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.