[jboss-user] [EJB 3.0] - Inject TransactionSynchronizationRegistry to stateless EJB
Sergey Kiselev
do-not-reply at jboss.com
Tue May 11 08:26:55 EDT 2010
Sergey Kiselev [http://community.jboss.org/people/intr13] created the discussion
"Inject TransactionSynchronizationRegistry to stateless EJB"
To view the discussion, visit: http://community.jboss.org/message/542289#542289
--------------------------------------------------------------
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 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
[http://community.jboss.org/message/542289#542289]
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/20100511/36e9d9aa/attachment.html
More information about the jboss-user
mailing list