File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes How to use HttpSessionActivationListener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to use HttpSessionActivationListener " Watch "How to use HttpSessionActivationListener " New topic

How to use HttpSessionActivationListener

kasi pandian

Joined: Feb 01, 2008
Posts: 12
Hi Friends
I would like to implement HttpSessionActivationListener in my project . Can you please tell me what all needs to be done for this?
I also tried. But I'm not able to get any outputs from Listener. I've implemented this class and overrided two unimplemeted methods(sessionDidActivate,sessionWillPassivate). And I put Println statements inside. And I kept a listener entry in web.xml.My project is working fine. but the listener class println statements is not printing in the console. Can you please send me the steps and if possible send some sample codes. Any help would be appreciated.

Reesha Ashok
Ranch Hand

Joined: Apr 05, 2008
Posts: 32
Classes implementing HttpSessionActivationListener and HttpSessionBindingListener doesn't require to be configured in deployment descriptor.

Thanks & Regards,<br />Reesha
kasi pandian

Joined: Feb 01, 2008
Posts: 12
Thanks Reesha,

However I want some sample programs. Can you please send me some samples

Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
This article may be of interest.
I agree. Here's the link:
subject: How to use HttpSessionActivationListener
It's not a secret anymore!