Hi... Can please let me know how to set my container to register the implementing class to creeive the events. Let me knoe how to do it in Weblogic7.0 & java-web-server regards S.Karthikeyan
-----Original Message----- From: Partha Ranjan Das [mailto:[EMAIL PROTECTED] Sent: Mon 3/10/2003 12:28 PM To: [EMAIL PROTECTED] Cc: Subject: Re: Session listener You can use the HttpSessionListener interface. In case the session is invalidated or canceled otherwise, the code to reinstate the db can be done inside the method sessionDestroyed(). Remember you need to set your conteiner to register the implementing class to receive the events. Regards, Partha -----Original Message----- From: Peter Dolukhanov [mailto:[EMAIL PROTECTED] Sent: Saturday, March 08, 2003 7:09 PM To: [EMAIL PROTECTED] Subject: Session listener Dear All, I'm fairly sure this has been mentioned previously, but I cannot find any discussion in the archives. The site I am developing has a standard shopping cart object implemented within a session object. Whenever a user adds an item to his shopping cart, it is temporarily removed from the main stock database to ensure that when the user checks out, that item will be available to them. However, for obvious reasons I need to keep a track on this session object, so either when the user closes his browser or the session times out, I need to reinstate the items back to the original database. Therefore, is there any available resource to keep a track on a session object, ideally a listener that will implement some given action at the end of a session object? Many thanks, Peter Dolukhanov =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com ********************************************************************* Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. ********************************************************************* =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com {.n+j)mXǫ6j˧r[ܬ }R<SLZ+v(ٚ[h+-ڲܢl"w+ DD[EMAIL PROTECTED](ƧmwZmjw(kۜ㲘mj!ڲܢo㲘mXm~ڽ.&i0;){"uܢ