A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
The Mikado Method
this week in the
Agile and other Processes
forum!
JavaRanch
»
Java Forums
»
Java
»
Servlets
Author
Connection
visu Nekk
Ranch Hand
Joined: Sep 06, 2005
Posts: 122
posted
Jan 20, 2006 00:18:00
0
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
I like...
posted
Jan 20, 2006 00:35:00
0
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
Similar Threads
What to use where?
Right or not? Servlets share the same object.
Sharing Connection Object
File Upload
Connection in servlets
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter