|
Hello everybody, I'm newbie,I have finised a
servlet to display the saffters info to uses.
Database is MS sql server7.0 . I connected
database with generic Connection object.As thought of performance,I wanna
connect database with "Connection Pool."
Follwing is an example offered by
Microsoft:
Context ctx = new
InitialContext();
ConnectionPoolDataSource ds =
(ConnectionPoolDataSource)ctx.lookup("jdbc/EmployeeDB");
pooledConnection pcon =
ds.getPooledConnection("scott", "tiger");
But now,I don't know from where the
"jdbc/EmployeeDB" comes and how to configure it.Maybe I don't master the
concept of JNDI.Pls help me.Any help of you would be
appreciated!
Best Regards
Web Server BEA Weblogic 6.1 sp1
jdk version: 1.4.0
operating system : win2k server
jdbc :Microsoft jdbc2.0 of type 4
|