JNDI name syntax
1 posts in topic
Flat View  Flat View

Posted By:   Jim_Underwood
Posted On:   Tuesday, April 29, 2003 10:00 PM

I encountered this code in an inherited module:

InitialContext ic = new InitialContext();
ds = (DataSource) ic.lookup("java:comp/env/jdbc/DefaultDS");
conn = ds.getConnection();
stmtAccessSession = conn.prepareStatement("SELECT * FROM tblAccess WHERE AccessID=?");

Please explain the meaning of the syntax in the name:

Re: JNDI name syntax

Posted By:   Chris_Peyton  
Posted On:   Tuesday, May 13, 2003 12:56 PM

In the local name space(Java), access a computed environemt reference defined as "jdbc/DefaultDS"
About | Sitemap | Contact