you mean you have servlet 1: http://mymachine:port1/servlet1, servlet 2:
http://mymachine:port2/servlet2? Why not simply serialize/save the
information generated in servlet 1 to a file and have servlet 2 read it?

----- Original Message -----
From: "G S Sundar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 04, 2001 9:00 AM
Subject: How to share a common object between two servelts?


> Hello All,
> I've two servlets running in different ports. How do share a common
> object between these two servelts. Once the
> values updated by Servlet-1 i would like to use the LATEST values (with
> out accessing the DB) from Servlet-2.
> Or
> Can i get the Servlet Context of Servlet-1 from Servlet-2.
>
> Thanx in advance!!!
>
> Regards
> G S Sundaram
<snip>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to