• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to make a context child of an existing context

 
Sivaraman Lakshmanan
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have 2 context in Tomcat say Context A and Context B. I want some session variable of A to be accessed by B. So I thought of making the context B as a child for Context A. Can some one help me how to achieve this.
Any help on this will be very much appreciated.

Regards,
Sivaraman.L
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no provision in the spec or in Tomcat for nesting contexts.
If the two need to interact that closely, then they should be one context.
 
Sivaraman Lakshmanan
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanks for your reply. But is there any way to share information between context in tomcat 4.1.

Regards,
Sivaraman.L
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From:
http://wiki.apache.org/jakarta-tomcat/HowTo



Obviously, this doens't make for an easy distribution of your app.

If they need to share session information, why did you make them two seperate contexts?
[ July 22, 2005: Message edited by: Ben Souther ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic