You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mike Wannamaker <Mi...@KINGSTON.Hummingbird.com> on 2006/07/10 15:50:56 UTC
Running Tomcat Embedded
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.
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
Re: Running Tomcat Embedded
Posted by Bill Barker <wb...@wilshire.com>.
"Mike Wannamaker" <Mi...@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