Forums Register Login

Session Migration in a clustered environment

+Pie Number of slices to send: Send
Hello All,
Is the following statement correct?

When a session is moved from one JVM to another, attribute values that implement either Serializable or HttpSessionActivationListener interface are transferred.



If yes, does this means that we have two options if we want to do something concrete when session migrates across servers in a grid?

Thnaks,
Reema
+Pie Number of slices to send: Send
 

Originally posted by Reema Patel:
Hello All,
Is the following statement correct?


If yes, does this means that we have two options if we want to do something concrete when session migrates across servers in a grid?

Thnaks,
Reema



All the attributes that you store in a session has to be serializable , in order to send it through the wire during session migration.
The second one is not an alternative ,but a effect that will happen when a session migrates from one node of the cluster to another.
+Pie Number of slices to send: Send
Hi rahul,
Thanks for the post.
But I didn't get much from it.

In short, say I have a class that only implements HttpSessionActivationListener interface, (no Serializable here), then will it be notified and move out sucessfully?

Thanks,
Reema
+Pie Number of slices to send: Send
 

Originally posted by Reema Patel:
Hi rahul,
Thanks for the post.
But I didn't get much from it.

In short, say I have a class that only implements HttpSessionActivationListener interface, (no Serializable here), then will it be notified and move out sucessfully?

Thanks,
Reema



I do not know from where you got this stuff.HttpSessionActivationListener is a listner , the class implementing this is not suppose to implement serializable interface.Only the classes of the object that you are planning to put in the session are suppose to implement serializable interface.
One appropriate events , the methods of listner would be called.
+Pie Number of slices to send: Send
Answering the original post.

"That means all your serialized session attributes and your listener will get transfered."
[ February 07, 2007: Message edited by: Adeel Ansari ]
Alas, poor Yorick, he knew this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 640 times.
Similar Threads
How to set JSESSIONID's maxAge?
Losing session in pop up window
which session listner to be impletement
Confusion regarding Session = False
session timeout and finally method
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 03:57:23.