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 load multiple drivers in a servlet

 
suresh dontamsetti
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
This is Suresh.
i want to know exactly how to develop the code for connecting to multiple databases from a servlet or some other code.
is that possible to code it from a servlet, if so how to do it?

waiting for a reply.

with regards
Suresh
 
Gaurav Chikara
Ranch Hand
Posts: 412
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to use Data Access Object Pattern
Use a separate class for doing this stuff
and dont include that code in Servlet

Just call that class from it
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic