Without using Enterprise Beans, what is the best way to accomplish the
following situation ...
When a user first comes to a jsp page certain database information
will populate the users session bean as a vector of objects (in this
case a vector of 'project' objects). While the session is active the
user will be able to modify the vector (ie- edit project objects,
delete some, add some).
The problem I have is how can I make sure this user has the current
set of objects at all times if the database is only accessed once upon
the users first instatiation of the bean. I was reading briefly in the
Wrox Proffesional JSP book about setting up "PropertyChangeListners"
and was wondering if this is good (or even possible) way to go about
it? If so could I still give the users bean "session" scope or should
it be "application" scope ?
I'm new to this.. so any dummied down responses will not be taken as
an offense
Thanks,
Rick
following situation ...
When a user first comes to a jsp page certain database information
will populate the users session bean as a vector of objects (in this
case a vector of 'project' objects). While the session is active the
user will be able to modify the vector (ie- edit project objects,
delete some, add some).
The problem I have is how can I make sure this user has the current
set of objects at all times if the database is only accessed once upon
the users first instatiation of the bean. I was reading briefly in the
Wrox Proffesional JSP book about setting up "PropertyChangeListners"
and was wondering if this is good (or even possible) way to go about
it? If so could I still give the users bean "session" scope or should
it be "application" scope ?
I'm new to this.. so any dummied down responses will not be taken as
an offense
Thanks,
Rick