4 Replies Latest reply on Jul 2, 2003 3:59 PM by Juha Lindfors

    Lookup question

    bangclash Newbie

      In JBoss I created a datasource with a JNDI Name to be "jdbc/Accounts". To do the lookup the code looks like this:

      context.lookup("java:/jdbc/Accounts");

      I create the same datasource in WebSphere but the code looks like this:

      context.lookup("jdbc/Accounts");

      Why do I need to added "java:/" in JBoss for it to work?