Sun has very carefully made each servlet context independent as far as the Servlet and
JSP APIs are concerned so you have to use another technology. The following will let you communicate with objects in a different servlet context (but not access the context directly).
1. Roll your own socket connection with
Object serialization (or just plain byte[])
2. RMI - sockets the easy way - the basis of
J2EE communication.
3. shared database server
4. JMS
Java Message Service (note that message beans using JMS are part of the latest J2EE API)
5. JavaSpaces - cool but takes some getting used to.
6.
SOAP or XML-RPC (XML formatted text messages representing objects)
Bill