wood burning stoves 2.0*
The moose likes Servlets and the fly likes Connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Connection" Watch "Connection" New topic
Author

Connection

visu Nekk
Ranch Hand

Joined: Sep 06, 2005
Posts: 122
Hai,

I want to create a separate connection object and call it the required servlet classes rather than going for a connection object in each servlet class.Can we do this using javabeans or is there any other method?

Thanx in advance,
Regards,
Visu
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

We've discussed this a few times and the conclusion is that it is a bad idea. You should always consider a ConnectionPool.
 
 
subject: Connection