> From: André Warnier [mailto:[EMAIL PROTECTED]
> Subject: Re: Communicating between webapps
>
> My case goes somewhat like this :  an application consisting
> of several webapps needs access to some common data (read/write).

What you're describing is referred to as a "bean" in Java terminology.  These 
can range from simple ad hoc ones implemented for one specific sharing need to 
full-blown Enterprise Java Beans as defined in the Java EE spec.  EJBs are 
supported by full application servers such as JBoss, but not by streamlined 
servlet containers like Tomcat.  There are various open source packages that 
can be added to Tomcat to provide support for beans if you want to use them 
(GIYF).

The RMI mechanism espoused by Leon R is a formalized remote procedure call 
implementation built into the JRE.  When the caller and callee are inside the 
same machine, the overhead is quite low but still involves object serialization 
and loopback TCP/IP traffic.  Whether or not that's a concern depends on how 
much data you push across the interface.  Read this for RMI info:
http://java.sun.com/javase/6/docs/platform/rmi/spec/rmiTOC.html

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to