aspose file tools*
The moose likes Servlets and the fly likes How to use HttpSessionActivationListener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to use HttpSessionActivationListener " Watch "How to use HttpSessionActivationListener " New topic
Author

How to use HttpSessionActivationListener

ayyappan Bas
Ranch Hand

Joined: Oct 11, 2008
Posts: 39
hello sir

am java Beginner.and am using NetBeen Tools.

How to use HttpSessionActivationListener.and why we want use.give me sample coding.

Thanks


Thanks & Regards
Ayyappan
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

am java Beginner, How to use HttpSessionActivationListener

Amazing that a beginner is thinking about using HttpSessionActivationListener This interface is used to register a session listener in a web application. The web container will notify any class implementing this interface when the session is being activated or passivated. Are you sure you want to use this ?


[My Blog]
All roads lead to JavaRanch
ayyappan Bas
Ranch Hand

Joined: Oct 11, 2008
Posts: 39
Originally posted by Christophe Verre:

Amazing that a beginner is thinking about using HttpSessionActivationListener This interface is used to register a session listener in a web application. The web container will notify any class implementing this interface when the session is being activated or passivated. Are you sure you want to use this ?


yes sir

i have set session timeout 60 sec in jsp .after that how to call session value (HttpSessionActivationListener in servlet).
is it possible.Help me .
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

If you're interested to know when the session is destroyed, you should use a HttpSessionListener instead. Maybe this tutorial can help you.
ayyappan Bas
Ranch Hand

Joined: Oct 11, 2008
Posts: 39
Originally posted by Christophe Verre:
If you're interested to know when the session is destroyed, you should use a HttpSessionListener instead. Maybe this tutorial can help you.


Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to use HttpSessionActivationListener
 
Similar Threads
Query with Program execution and CPU utilization of it .
URLyBird: Timer to unlock locked records when client crash
log4j use best way
Maximum length of hover text in Internet Explorer
Storing resultset into arraylist