Is it necessary to enable JTS for distributed transactions in EAP6?

Solution Unverified - Updated -

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Issue

  • I have applications which invoke EJB's on a different server instances, do I need JTS instead of the default (JTA)?
  • If an application use EJB's and JMS broker on a different system is it possible with JTA or must JTS enabled?
  • I have problems with EJB invocations if JTS is enabled, is the configuration wrong?

Resolution

There is no need to switch from JTA (configured by default) to JTS. JTS is only ever required when using IIOP/CORBA calls.
This includes cases that use JMS, JTA handles XA(distributed) transactions in both cases.

If JTS is enabled there is an issue BZ 1136054 where the IIOP/CORBA transaction is not correctly handled for StatefulSessionBeans if a method is annotated with @Remove.
If no IIOP calls are used the default configuration with JTA should be used.

Related articles:
Transactional behavior of distributed EJB invocations in EAP6
How to enable JTS transactions in JBoss EAP 5.x and EAP 6.x

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.

Close

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