Set the remote EJB transaction timeout in JBoss EAP 6

Solution Verified - Updated

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 6.4.5 and later

Issue

  • Using distributed transactions with EJB remoting
  • Remote transaction branches do not appear to timeout

Resolution

In EAP 6.4.5 and later, the remote branch transaction timeout period default may be overridden explicitly on a per-jvm basis by setting the system property org.jboss.as.ejb3.remote-tx-timeout to a value in seconds.

Note that transaction timeout does not interrupt running threads.

Root Cause

Transaction timeout for remote transaction branches cannot be configured dynamically.

A similar limitation is observed when using EJBClient (e.g. from a pure-Java application).

Components
Category
Tags

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.