Forums Register Login

Handling Session

+Pie Number of slices to send: Send
Hi Ranchers,

Could you please help me out in migrating session from one jvm to another jvm.This is something like managing session across jvms.I know it can be done by serialzation but iam not finding out the exact way to make it happen.
I have one application which calls another one by window.open.The first one sets cookies and second gets.When i try to get remote user in second and session's attribute, i get some junk and new session.So i think the only way to pass remote user is through session by migrating it.

Thanks in advance !


Regards,

Atul.
[ March 28, 2007: Message edited by: Bear Bibeault ]
+Pie Number of slices to send: Send
You should not be trying to serialize a session because sessions are managed by the servlet container.

Instead, create your own custom Serializeable object to contain all the data you want to move around.

Bill
+Pie Number of slices to send: Send
Not an advanced question. Moving...
+Pie Number of slices to send: Send
You are getting the junk value as the session object is not abailable in the other application , so sending the JSESSIONID in the cookie (That I think you are doing now) would not help.JSESSIONID is just like key which the container uses to find the session object.
If the session object is not available then doing so would not be of any use.

You can try the following:

You can pass those information to the page whic would call the window.open script.
You can then send those information using the url to the other application.
If you live in a cold climate and on the grid, incandescent light can use less energy than LED. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 432 times.
Similar Threads
Hibernate performance issues using huge databases
Authentication using EJB in JSF
J2EE Design Question -- Am I On The Right Track?
Handling Session
Issue in session manegement
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 06:21:29.