I'm using JavaBeans (not EJB) to perform the database access on behalf of my
JSP scripts.  What concurrency issues do I need to be concerned with under
JSP?

For example, suppose I have a class Employee, with methods like:
  - retrieve(String ssn)
  - store()
and property (getters/setters) like:
  - getLastName()
  - setLastName()
  - getAge()

The retrieve(...) method queries the DB for the employee's record, and
populates instance variables.  The store() method saves the current instance
variables to the database.  The property getters/setters simply set/get the
value of the current instance data.

So the initial JSP creates an instance of Employee, and then stores it in
the session.  Each subsequent JSP script pulls the object out of the session
and manipulates it.

Would this continue to work without synchronizing any methods or sections?

Thank you,
Andy Blanchard
[EMAIL PROTECTED]


------------------------------------------------------------------------------
Archives: http://www.egroups.com/group/jrun-interest/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/jrun_talk
or send a message to [EMAIL PROTECTED] with 'unsubscribe' in the 
body.

Reply via email to