Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jsp methods to database class synronized  RSS feed

 
past tense
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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!
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!