What I need is the possibility to deploy 2 separate war-files that can share some kind of information through a common context (e.g through a session object). I tried to deploy one web application to context root /foo and the second one to /foo/bar and realized that my resources in /foo/bar cannot access the information that was set to the session object by resources in /foo. Is this somehow possible? What could be another approach to accomplish such a requirement?
You cannot directly share data between two web applications. Instead, you will need a third component that handles the shared data and both of your apps will have to call into that third component. That third component could be, for example, a database, or a web app that exposes a web services interface.
|Retrieving data ...|