Greetings,
My problem is this:
I have configured a database connection pool (through the JRun Management
Console) on a server running JRun 3.0 Professional. It's name is "PSS", and
I was able to connect successfully to our database by selecting the 'test'
button. But when I try to get a connection with the following lines in a
JSP page, I get a NameNotFoundException error. My question is: Is there
anything else (i.e. additional JRun configuration, etc.) that I need to do
to get this code to work so I get a connection?
InitialContext ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/PSS");
Connection con = ds.getConnection();
out.println("got connection!");
Background info:
-The database server and JRun are both up and running properly.
-I also tried just "PSS" for the parameter for the lookup method (that
didn't work either).
Thanks in advance for any help!
Steve Santandera
[EMAIL PROTECTED]
------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the
body.