Community

Inject TransactionSynchronizationRegistry to stateless EJB

created by Sergey Kiselev in EJB 3.0 - View the full discussion

I am trying inject TransactionSynchronizationRegistry to stateless EJB:

 

@Resource
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

 

p/s

JBoss 5.1.0.GA

Reply to this message by going to Community

Start a new discussion in EJB 3.0 at Community