Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Access an "application scope" object from a java bean

843840Jan 28 2003 — edited Jan 28 2003
hi
i use an HashMap object named Monitor, this object is create with an application scope
<jsp:useBean id="monitor" class="java.util.HashMap" scope="application"/>
each time a new user connect to the web application, a new UserParameter object is created and stored in monitor. when the user deconnect or the session timeout is reached, i want to remove from monitor, the reference of the UserParemeter object. to do that the class UserParameter impelmente the HttpSessionBindingListner, and in the methode valueUnbound(...) i want to remove the object but i don't know how to reach the "monitor" object wich is in the application (ServletContext), i have only access to session.
Thanks for your help
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 25 2003
Added on Jan 28 2003
1 comment
119 views