This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes declaration of Listener Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Reply Bookmark "declaration of Listener" Watch "declaration of Listener" New topic
Author

declaration of Listener

Saurabh Naik
Ranch Hand

Joined: Apr 24, 2008
Posts: 87
which interface need to be declared in the deployment descriptor .

HttpSessionListener or HttpSessionBindingListener ?

I guess HttpSessionListener .. is this correct answer ?


SCJP 6 (88%), SCWCD 5 (78%), preparing for SCBCD
Shailesh Narkhede
Ranch Hand

Joined: Jul 10, 2008
Posts: 356
Yes, you are right.


Thanks,
Shailesh
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3670

Hi Saurabh Naik,

DeclaringListeners explains them well.



SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Naveen Segu
Greenhorn

Joined: Apr 29, 2009
Posts: 6
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
Marshal

Joined: Mar 22, 2005
Posts: 35250
    
    7
Doing a SearchFirst would have found this: http://faq.javaranch.com/java/DeclaringListeners


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: declaration of Listener
 
Similar Threads
Execute code when a session expires
About Sessions
Regarding Servlets
Get Total session count
handling session time out