I think JNDI will give you access to the files that contain the classes, but
not access the class instances themselves.
I think RMI would provides the interface for obtaining references to objects
across contexts/JVMs.
-----Original Message-----
From: Kevin Duffey [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 08, 2000 1:34 PM
To: [EMAIL PROTECTED]
Subject: Re: is HttpSession only good in one servlet context???
Craig..can't you use the javax.jndi.naming or something like that? I was
messing around with that yesterday a bit, but don't have much knowledge on
it yet. Someone on the Orion team mentioned that its possible to share
global data across web-app contexts using that mechanism, or something like
it. Any info on that?
> -----Original Message-----
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 08, 2000 11:19 AM
> To: [EMAIL PROTECTED]
> Subject: Re: is HttpSession only good in one servlet context???
>
>
> 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
>
===========================================================================
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
===========================================================================
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