tomcat-users mailing list archives

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

"Mike Wannamaker" <Mike.Wannamaker@KINGSTON.Hummingbird.com> wrote in 
message 
news:D329907434F70B4F9ECF5D37CEFE93C101EDA652@kingstonx2.andynehcl.com...
>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 
(http://tomcat.apache.org/tomcat-5.5-doc/catalina/docs/api/org/apache/catalina/startup/Embedded.html)

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
>
> www.hummingbird.com
>
> 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: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
> 




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


Mime
View raw message