[jboss-user] [EJB 3.0] - Inject TransactionSynchronizationRegistry to stateless EJB

Sergey Kiselev do-not-reply at jboss.com
Wed May 26 10:29:44 EDT 2010


Sergey Kiselev [http://community.jboss.org/people/intr13] replied to the discussion

"Inject TransactionSynchronizationRegistry to stateless EJB"

To view the discussion, visit: http://community.jboss.org/message/544876#544876

--------------------------------------------------------------
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
[http://community.jboss.org/message/544876#544876]

Start a new discussion in EJB 3.0 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100526/b42f0a93/attachment.html 


More information about the jboss-user mailing list