On 9/16/05, Martin Burkert <[EMAIL PROTECTED]> wrote:
> 
> Hi!
> 
> I would like to pass a session variable (user credentials) from
> application "homebase" to application "test". Both applications were
> deployed on the same tomcat-server and crosscontext=true for both
> Applications.


You are going to have problems with this, not the least of which is that it 
violates the servlet spec :-). Each web application has its own unique set 
of sessions, so a cross-context request that uses sessions will create a 
session instance in each webapp.

Even if this were not prohibited by spec, you'll have technical problems as 
well ... the class loader hierarchies for the two webapps are independent of 
each other. Thus, if the object you use to represent user credentials were 
defined in web app A, trying to reference such an instance in web app B 
would get a class not found exception.

Craig

Reply via email to