This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • 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
Pie
Posts: 3918
10
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