You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Bill Hughey <bi...@vioma.com> on 2004/08/09 19:04:56 UTC

Multiple instances of Tomcat.

I am working on converting a standalone content management system that has embedded Tomcat and an admin servlet as one of its components.  My intent is to turn this application into a servlet itself running under a standalone Tomcat5.

My question: is it possible to run embedded Tomcat5 within a servlet that is itself running under Tomcat5?

Second question: would it be possible if this works for the inner servlet to access memory (objects) instanciated by the outer servlet?

Note: I have noticed that servlets within the same context have access to each others memory, while servlets of different contexts do not.  Anyone care to confirm, elaborate, explain, contradict?

Thanks for any help.

Re: Multiple instances of Tomcat.

Posted by QM <qm...@brandxdev.net>.
On Mon, Aug 09, 2004 at 10:04:56AM -0700, Bill Hughey wrote:
: Second question: would it be possible if this works for the inner servlet to access memory (objects) instanciated by the outer servlet?

Likely, no.  Read on:


: Note: I have noticed that servlets within the same context have access to each others memory, while servlets of different contexts do not.  Anyone care to confirm, elaborate, explain, contradict?

The Tomcat site has a doc on the product's layered classloader approach.
(This concept isn't unique to Tomcat, but that's another story.)

In short, each context (webapp) lives in its own classloader.

-QM

-- 

software  -- http://www.brandxdev.net
tech news -- http://www.RoarNetworX.com


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org