This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes Calling invalidate() on the session.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "Calling invalidate() on the session...." Watch "Calling invalidate() on the session...." New topic
Author

Calling invalidate() on the session....

Narasimha Rao B.
Ranch Hand

Joined: Aug 26, 2002
Posts: 205
Hi,

If there are service methods are running on different servlet instances in a session and if someone calls the invalidate() method on this session, what will happen? Will all the threads running in the service methods are killed and the session is invalidated OR will the container waits till the service methods finishes their job?

Thanks in Advance,


Narasimha
Vishnu Prakash
Ranch Hand

Joined: Nov 15, 2004
Posts: 1026
calling invalidate will terminate the session as a whole.


Servlet Spec 2.4/ Jsp Spec 2.0/ JSTL Spec 1.1 - JSTL Tag Documentation
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Calling invalidate() on the session....