Community

Inject TransactionSynchronizationRegistry to stateless EJB

reply from Sergey Kiselev in EJB 3.0 - View the full discussion
Thank you all,
The following code actually works:
@Resource(mappedName = "java:comp/TransactionSynchronizationRegistry")
TransactionSynchronizationRegistry transactionSynchronizationRegistry;
Oddly enough, before I had a problem with this, it may be connected with the use of embedded-jboss. I will check tomorrow.

Reply to this message by going to Community

Start a new discussion in EJB 3.0 at Community