Arvind By design I would use an EJB, this way you can also use proper security to comtrol access to your bean. You can access the EJB from any webapps, wether it runs or not on the same server. And you can also expose it as a web service. Using JBoss you will have tomcat out of the box as well as transaction, security, etc.... And no license cost.
Hopes this helps. Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 ----- Original Message ----- From: "Arvind S." [EMAIL PROTECTED] Sent: 19.05.2006 21:25 To: users@tomcat.apache.org Subject: Object sharing Hi, If a web application wants to access a object being used by another web-application(with a different context root) running on the same webserver, is that possible? If yes, how can it be achieved?Through sharing attributes of ServletContext? Will getting an attribute from the servletContext, return a copy of the object or the reference itself? Thanks & Regards LEGAL DISCLAIMER. The contents of this e-mail and any attachments are strictly confidential and they may not be used or disclosed by someone who is not a named recipient. If you have received this email in error please notify the sender by replying to this email inserting the word "misdirected" as the message and delete this e-mail from your system.