tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Barker" <>
Subject Re: Running Tomcat Embedded
Date Tue, 11 Jul 2006 03:44:26 GMT

"Mike Wannamaker" <> wrote in 
>I wish to run Tomcat from within my own JVM.  I would like it to run just
> like Tomcat does today, however I'd just like to setup the various paths,
> for like web app root directory, config directory, lib directory etc....
> Is there anyway to do this easily?  Like I said I just want to create an
> instance of Tomcat/Catalina and setProperties(...); and then call start();
> Any help is appreciated.

Most people use Embedded 

since it at least has some documentation.  Commons-modeler has a simple (if 
slightly out of date :) example of how to embed Tomcat using JMX.  This is 
useful if you want Tomcat to run in a different ClassLoader than the rest of 
your application (and at least personally, I find it easier to use).

In either case, you need to set the properties on the sub-components (e.g. 
Engine, Host, Contex(s)) yourself, so you are responsible for creating them.

> Mike Wannamaker
> Senior Software Developer
> Hummingbird Ltd.
> 552 Princess St, Kingston, ON, K7L 1C7
> Tel: (613) 548-4355 x4535
> Fax (613) 548-7801
> E-Mail: Mike Wannamaker
> IMPORTANT NOTICE: This communication is privileged and contains 
> confidential
> information for the sole use of the intended recipient(s). Any 
> unauthorized
> disclosure, copying or use of this communication is strictly prohibited. 
> If
> you have received this message in error, please contact the sender and
> delete this message without printing it or otherwise retaining a copy.
> ---------------------------------------------------------------------
> To start a new topic, e-mail:
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message