jQuery in Action, 3rd edition
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


visu Nekk
Ranch Hand

Joined: Sep 06, 2005
Posts: 122

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,
David O'Meara

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.
I agree. Here's the link: http://aspose.com/file-tools
subject: Connection
It's not a secret anymore!