aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "jsp methods to database class synronized " Watch "jsp methods to database class synronized " New topic

jsp methods to database class synronized

past tense

Joined: Oct 12, 2005
Posts: 1
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

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!

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