• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

declaration of Listener

 
Saurabh Naik
Ranch Hand
Posts: 87
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
which interface need to be declared in the deployment descriptor .

HttpSessionListener or HttpSessionBindingListener ?

I guess HttpSessionListener .. is this correct answer ?
 
Shailesh Narkhede
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you are right.
 
Vijitha Kumara
Bartender
Posts: 3914
9
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Saurabh Naik,

DeclaringListeners explains them well.

 
Naveen Segu
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Saurabh Naik,

All session listeners should be declared in the deployment descriptor (web.xml) EXCEPT HttpSessionBindingListener and HttpSessionActivationListener. Hope this helps.

Naveen
SCJP 1.5, SCWCD 1.5
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Doing a SearchFirst would have found this: http://faq.javaranch.com/java/DeclaringListeners
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic