"Mike Wannamaker" <[EMAIL PROTECTED]> wrote in 
message 
news:[EMAIL PROTECTED]
>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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
> 




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

Reply via email to