Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Regarding JNDI  RSS feed

 
Vijayanand Jayaraj
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I am new to JSP and Servlet. I would like to know how we can use JNDI in JSP or Servlet to access a Database(My sql or Oracle).Also how can i configure those JNDI settings in my container(Tomcat 5.0).Could you send me the sample code or the basic idea of doing those things.



Thanks in Advance.
 
Deepak Bala
Bartender
Posts: 6663
5
Firefox Browser Linux MyEclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is an article from the tomcat docs. It looks like what you need

http://tomcat.apache.org/tomcat-4.1-doc/jndi-datasource-examples-howto.html
 
Vijayanand Jayaraj
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello John,
Thank you for the help.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!