Use the "java:comp/env" context. Read the spec.
Toby.
Felix Eichhorn wrote:
> Is there a way to lookup a datasource without the java: prefix in the
> JNDI-Name?
> I'm just testing an EJB on different application servers, and on BEA, IBM
> and Orion, a context.lookup("jdbc/MyDS") works just fine, but with JBoss I
> always have to use context.lookup("java:jdbc/MyDS"), which again doesn't
> work with the other application servers.
> As I would like to deploy the same ejb.jar file on all application servers,
> I'd like to have one way of looking up my datasource that is working on all
> application servers. Any ideas how I could make context.lookup("jdbc/MyDS")
> work on JBoss ?
>
> Felix Eichhorn
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]