7 Replies Latest reply on May 26, 2010 11:28 AM by Sergey Kiselev

    Inject TransactionSynchronizationRegistry to stateless EJB

    Sergey Kiselev Newbie

      I am trying inject TransactionSynchronizationRegistry to stateless EJB:


      protected TransactionSynchronizationRegistry transactionSynchronizationRegistry;


      but unfortunately there is throws an error:


      Caused by: java.lang.RuntimeException: mapped-name is required for 
      test.BaseService/transactionSynchronizationRegistry of deployment BaseService


      Also in JNDI not contain TransactionSynchronizationRegistry with name - "java:comp/TransactionSynchronizationRegistry".


      Why might that be? Any ideas? JBoss non compatable JTA1.1?


      I am using sample code from: http://www.adam-bien.com/roller/abien/entry/how_to_pass_context_in



      JBoss 5.1.0.GA