Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use HttpSessionActivationListener

 
kasi pandian
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Regards
Kasipandian.R
 
Reesha Ashok
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Classes implementing HttpSessionActivationListener and HttpSessionBindingListener doesn't require to be configured in deployment descriptor.
 
kasi pandian
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Reesha,

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

Thanks
Kasi..
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This article may be of interest.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic