• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

httpsessionActivationlistener

 
Ankur Jain Kothari
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone explain how this listener actually works...i know that this listener is used to notify when an attribute is tranferred from one jvm to other...but what does this mean?

is there a link for understanding this....
 
Paul Clapham
Sheriff
Posts: 21583
33
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ted mosby wrote:i know that this listener is used to notify when an attribute is tranferred from one jvm to other

Actually that isn't what it does. Have you read the API documentation for the type, or what the Servlet Specification has to say about it?
 
Ankur Jain Kothari
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i thought this is what hfsj said....to notify when the attributes are moved from one jvm to other
 
Ankit Garg
Sheriff
Posts: 9580
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HttpSessionActivationListener applies in web applications which are distributed i.e. span over multiple VMs. If the first request is server by VM1 and the next request of the same client is served by VM2, then on the 2nd request the session of the client will be moved from VM1 to VM2, this is where HttpSessionActivationListener kicks in...
 
Ankur Jain Kothari
Ranch Hand
Posts: 154
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you mean if the first request is served an application that is on one vm...and next request is served the same application which is now on another vm...jvm is changing means what? can you give me a practical application? is the computer changing which means different jvm are working now...or OS is changing..
 
Ankit Garg
Sheriff
Posts: 9580
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read this...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic