sharing session between two jsf web applications

I have two web applications A and B. They are deployed on the same server, so the url will be like http://localhost/A/.. and http://localhost/B/...

We need the users of A to be able to work on B directly, the way we are doing it right now is to put <IFrame> on the jsp of A. This way the pages of B are loaded and embedded in A. Users will not feel the existence of B. This is working fine.

However, B now needs to access some session data of A.

I am lookfing for some ideas of sharing the session between these two applications, besides through database....

Thanks!

[604 byte] By [JYoua] at [2007-10-2 9:48:41]
# 1

I'm doing this by setting crossContext=true on one of my apps. Then other apps can acces data stored in shared context of application.

Setting crossContext differences on each server. I'm using Tomcat, and I set crossContext=true as a attribute in context application node in server.xml.

Hopes it helps

Martin

mandrzeja at 2007-7-16 23:53:58 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...