• Post Reply Bookmark Topic Watch Topic
  • New Topic

Calling invalidate() on the session....

 
Narasimha Rao B.
Ranch Hand
Posts: 205
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
 
Vishnu Prakash
Ranch Hand
Posts: 1026
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
calling invalidate will terminate the session as a whole.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!