Sharing of session objects across two web applications running on same server instance
sandeep Kumar
Ranch Hand
Joined: Sep 19, 2007
Posts: 41
posted
0
Hi,
I have a requirement as below:
There are two web applications running on the same server instance. If there is a requirement as I have to use data in session object of webApp1 in webApp2.
Can you please suggest me the best way to implement it?
Due to some client specific constraints, I cannot use the Database. Keeping apart form Database and RMI, Can you please suggest me the other way.
What if I serialize the object into a flat file and then FTP that file? I think this would again be some performance hit.
Is there any way we can send the data in request to another application?
If you abandon the use of the session (no bad thing, by the way) and redesign your applicaitons to send state with the request that would work. Otherwise you will need some common persistence mechanism to share the data in. FTP doesn't sound the like the right mechanism, things will always be out of date. If you can't use RMI either this is harder to do - I was going to suggest a distributed cache, but distributed caches are RMI based.