t
API Technology. [mailto:[EMAIL PROTECTED] On Behalf Of Jack
Lauman
Sent: Sunday, August 29, 2004 4:23 PM
To: [EMAIL PROTECTED]
Subject: DataSource Question
I'm using the following code in a servlet to get a JDBC connection:
Context ctx = new InitialContext();
DataSource ds = (DataSource)
I'm using the following code in a servlet to get a JDBC connection:
Context ctx = new InitialContext();
DataSource ds = (DataSource) ctx.lookup("java:comp/env/jdbc/DBNameDS");
Connection conn = ds.getConnection();
It works fine... but I would like to be able to substitute "DBNameDS"
with the actual