1 Reply Latest reply on Aug 19, 2003 6:38 AM by Jon Barnett

    java:/ - Prefix - Problem

    marcomanco Newbie

      Hi,

      I have the following problem, I want to run an application on weblogic and on JBoss.

      If I want to make a datasource-lookup in Weblogic it looks like:

      this.dataSource = (DataSource) context.lookup("TestDB");


      If I want to make a datasource-lookup in JBoss I have to add the prefix "java:/" and then it looks like:

      this.dataSource = (DataSource) context.lookup("java:/TestDB");


      Weblogic does not run with the java:/ - Prefix. Is there a possibility that JBoss binds the datasource without the prefix?

      Thanx.
      Marco