users@glassfish.java.net

Using JNDI

From: <glassfish_at_javadesktop.org>
Date: Sat, 08 Nov 2008 13:21:01 PST

Hi.

I have set up a JDBC resource (java/JWSPool) and want to assess this via JDNI within a java client app

// Get a context for the JNDI look up
ctx = new InitialContext();
javax.sql.DataSource ds
        = (javax.sql.DataSource) ctx.lookup ("java:comp/env/jdbc/JWSPool");

Does anyone know what INITIAL_CONTEXT_FACTORY etc I need to get this to work?
[Message sent by forum member 'kerryt' (kerryt)]

http://forums.java.net/jive/thread.jspa?messageID=315633