View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3821653#3821653

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3821653

Hi,

I have two webapps, A and B under their respective context roots.



'A' creates a session and puts some values in there.



'A' has a link on web page that explicitly calls out a URL in 'B's context like 
/B/some_servlet .



Whenever I click on that link, the some_servlet does a check for that same session, 
and gets a null back for a request.getSession(false).



I had the understanding that a session is linked to the client itself and it should 
not matter where he is going in the servlet container, his session object would stay 
accessable for the lifetime of the session.





- Does the session object propogate across two different contexts? 



If you are curious, I am doing this because I want one app to easilly integrate with 
another app by just moving between servlet contexts rather than copying over the 
actual JSPs and servlets to the original context.



A colleague has said in Tomcat he can achieve this using the crosscontext=true in the 
sever.xml file.



I am using Jboss 3.2.2. It has a built in Tomcat contatiner (a-la server.xml). 



My JBoss transparently deploys things under its respective context by way of my 
application.xml specifying the context. I have no where to put in a server.xml with 
anything similar to the following:



<Context path="/newexamples" docBase="/share/tomcat/webapps/example" debug="0"

reloadable="true" crossContext="true">



Is there a comprable tag I can put in application.xml, or web.xml, or jboss-web.xml? 
Or perhaps a global setting I can put in jboss-service.xml for it to be shared accross 
all contexts?



Thanks,



user : J2EE_IS_GREAT_1980!


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to