wood burning stoves 2.0*
The moose likes JSP and the fly likes jsp methods to database class synronized Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp methods to database class synronized " Watch "jsp methods to database class synronized " New topic
Author

jsp methods to database class synronized

past tense
Greenhorn

Joined: Oct 12, 2005
Posts: 1
All,
I have jsps connecting to a database using a bean component (DBManager.Class) the thing is how do I pass values in my other Beans (user and product beans) to methods in a way that Im sure only a single jsp client access a method on the server at one time.

If my jsp components create new instances of my DBManager class i.e. DBManager = db new DBManager() will synronized methos work? Don�t want to use single threaded model due to the volume of users .

Any ideas ?
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

"past tense" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy. User names cannot be obviously fake and must constist of a first name and a last name.

You can change your user name here.

Thanks! and welcome to the JavaRanch!


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp methods to database class synronized
 
Similar Threads
Future of UML with OO Concepts
DB Reader Pooling
Exception Handling: where?
Driver not found issue
Singleton Connection Class