Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to access Database configuration from server.xml in tomcat5.0

 
Jyothsna Panchagnula
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have the following set up in my server.xml .I want to know how to access the database connection in the java file.
do I need to write a separate class again to access the database or I can simply say get connection and run the query.





Thanks,
Jyothsna
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic