• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Doubt in Listeners

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I read that except HttpSessionBindingListener , all should be configured
in web.xml.

But I wrote a class which is like

public class Student implements HttpSessionBindingListener,HttpSessionListener
{
private String name;
...........
}

And i have not configure in web.xml . But its working fine by calling the
sessionCreated or sessionDestroyed when i created or destroyed the session.


Can any one confirm regarding this???

I am using Tomcat5.0


-----------
SCJP
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try valueBound and valueUnbound
 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Although I have not tried this listener in practice, I think there must be something wrong with your code.
 
Ranch Hand
Posts: 517
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Karne Reddy:
Hi,

I read that except HttpSessionBindingListener , all should be configured
in web.xml.




Is it correct?

Should we define HttpSessionActivationListener in DD?
reply
    Bookmark Topic Watch Topic
  • New Topic