On 1/19/06, Martin Morawetz <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> We have two web applications, a Struts-application
> and a strutsless application.
>
> Both web applications have to use the same session.


This is not possible, either with or without Struts.  The servlet
specification requires that the sessions for each web application be
independent of each other.

When you think about this a little, it is easy to understand the reasons for
this restriction.  The most important one is that the classes visible to
each application are different, because each app loads its own
WEB-INF/classes and WEB-INF/lib directories.  Therefore, even if the session
object were shared, a session attribute stored by webapp A might not be
usable by webapp B, simply because webapp B cannot see the class for that
object since it exists only in webapp A.

You will need to use a strategy other than sharing sessions to share
information between these two apps.

Craig

Reply via email to