0 Replies Latest reply on Sep 15, 2011 12:43 PM by iconnj

    java:comp/ vs java:

    iconnj Newbie

      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?