[jboss-user] [JNDI and Naming] - java:comp/ vs java/

iconnj do-not-reply at jboss.com
Thu Sep 15 12:42:20 EDT 2011

iconnj [http://community.jboss.org/people/iconnj] created the discussion

"java:comp/ vs java/"

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

I am trying to lookup TransactionSynchronizationRegistry using JNDI from a pojo. When I try

new InitialContext().lookup(java:TransactionSynchronizationRegistry) the lookup is successful


new InitialContext().lookup(java:comp/TransactionSynchronizationRegistry) doesn't work

The javaDoc for TransactionSynchronizationRegistry specifically says that the standard jndi name should be java:comp/TransactionSynchronizationRegistry.

I am trying to build a standard solution which works on all major app servers and the standard jndi name works on Websphere and Weblogic, but just not on JBOSS.

Has anyone come around similar issues before and how about would you go to resolve this?


Reply to this message by going to Community

Start a new discussion in JNDI and Naming at Community

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

More information about the jboss-user mailing list