Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes how to load multiple drivers in a servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "how to load multiple drivers in a servlet" Watch "how to load multiple drivers in a servlet" New topic
Author

how to load multiple drivers in a servlet

suresh dontamsetti
Greenhorn

Joined: Nov 01, 2004
Posts: 2
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

Joined: Jun 09, 2000
Posts: 410
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


SCJP,SCWCD,SCBCD<br />If Opportunity doesn't knock then build the door
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to load multiple drivers in a servlet