If you're working with windows 2000, I believe you have to define the data
source in the ODBC Data Sources Adminstrator from the Control Panel.  Click
on the System DSN tab and click Add, select the database type, and then fill
in the appropriate text boxes.  
Hope this helps.

-----Original Message-----
From: stephen santandera [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 09, 2000 9:28 AM
To: JRun-Talk
Subject: datasources and JRun connection pooling...


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.
------------------------------------------------------------------------------
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.

Reply via email to