File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion 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
jQuery in Action, 3rd edition