3 Replies Latest reply on Aug 2, 2005 5:46 AM by _developer

    java: prefix for datasources

    _developer

      Hello,

      I'm porting a J2EE application to JBoss platform and faced the following problem

      My configured data sources are not lookuped because JBoss expects me to add 'java:' prefix to the JNDI name in the lookup() call.

      The goal is to build an application so that it can be run under several application servers, so if I change lookup() call my code will be incompatible with other app servers.

      Is there any way to lookup the datasource with JBoss without adding the 'java:' prefix?

      Thanks in advance