hua ge wrote:
> Hi,
> I have couple servlet context mapped in the web server.
> in servlet 1(in context 1) I stored some object in the session, then servlet
> 2(in context 2) will reference the object stored in the session object
> created in context1.
>
> I could not get the data out from session object because I am crossing
> different context.
>
> how can I do session tracking crossing multiple context?
>
You don't. The servlet specification requires that sessions are scoped per
context.
If you want to share information between different contexts, you should use some
external mechanism like databases, LDAP servers, shared disk files, RMI/CORBA
servers, etc.
Craig McClanahan
====================
See you at ApacheCon Europe <http://www.apachecon.com>!
Session VS01 (23-Oct 13h00-17h00): Sun Technical Briefing
Session T06 (24-Oct 14h00-15h00): Migrating Apache JServ
Applications to Tomcat
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets