File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Sep 06, 2005
Jan 20, 2006 00:18:00
I want to create a separate connection object and call it the required
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,
Joined: Mar 06, 2001
Jan 20, 2006 00:35:00
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:
Right or not? Servlets share the same object.
Sharing Connection Object
Connection in servlets
What to use where?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014