• Post Reply Bookmark Topic Watch Topic
  • New Topic

declaration of Listener  RSS feed

 
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 ?
 
Ranch Hand
Posts: 368
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes, you are right.
 
Bartender
Posts: 4013
42
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Saurabh Naik,

DeclaringListeners explains them well.

 
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
 
Rancher
Posts: 42972
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
Boost this thread!