JTA container managed transaction without Seam 3

Solution Verified - Updated -

Issue

  • We are currently using Seam Persistence and Seam transaction (seam3) for our container managed transaction. Is that is there anyway to use CMT in JBoss EAP6 with Weld (CDI) without using Spring or Seam? Currently we have as follows:
@javax.ejb.TransactionAttribute
public class TestCMTImpl implements TestCMT  
{
   @Inject
   @TestEm
   private EntityManager em;
   @MyDao dao;

   public void myService()
   {
      dao.setEm(em);
      dao.doSomeDBUpdate(); 
   }
    ...
}

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 6.0

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