Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JNDI Datasource HOW-TO

843836Dec 15 2004 — edited Feb 24 2005
Hi,
I am going through JNDI Datasource HOW-TO found at
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-howto.html
I am using Oracle 9i so I went for instructions given below Oracle 8i. I did everything they said, also included javax.naming.*,javax.sql.* in my JSP file. Now the problem is my JSP is not connecting to the database itself. I just see a blank page but if i use my old method of connecting to database, i see the results on the screen. Can anybody help on this please ???

Also, what exactly does the code
Context envContext = (Context)initContext.lookup("java:/comp/env");
mean while connecting to the database ???

Thanks !
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 24 2005
Added on Dec 15 2004
10 comments
509 views