Difference between @TransactionAttribute and @Transactional

Solution Verified - Updated -

Issue

  • What is the difference between javax.ejb.TransactionAttribute and Transactional?
  • Is it possible to use @TransactionAttribute(REQUIRED) outside of an EJB to control the transactional behaviour of a method or class?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
  • Java Enterprise Edition (JavaEE JEE)
  • Context dependency injection (CDI)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content