Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 3279 invoked from network); 11 Jul 2006 15:22:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Jul 2006 15:22:02 -0000 Received: (qmail 98864 invoked by uid 500); 11 Jul 2006 15:21:46 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 98849 invoked by uid 500); 11 Jul 2006 15:21:46 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 98838 invoked by uid 99); 11 Jul 2006 15:21:46 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 08:21:46 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [12.129.219.97] (HELO outbound2-haw-R.bigfish.com) (12.129.219.97) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Jul 2006 08:21:45 -0700 Received: from outbound2-haw.bigfish.com (localhost.localdomain [127.0.0.1]) by outbound2-haw-R.bigfish.com (Postfix) with ESMTP id 49A2219C6CF9 for ; Tue, 11 Jul 2006 15:21:18 +0000 (UTC) Received: from mail32-haw-R.bigfish.com (unknown [192.168.51.1]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by outbound2-haw.bigfish.com (Postfix) with ESMTP id 3F43119C6CD6 for ; Tue, 11 Jul 2006 15:21:18 +0000 (UTC) Received: from mail32-haw.bigfish.com (localhost.localdomain [127.0.0.1]) by mail32-haw-R.bigfish.com (Postfix) with ESMTP id 274D5472446 for ; Tue, 11 Jul 2006 15:21:18 +0000 (UTC) X-BigFish: V Received: by mail32-haw (MessageSwitch) id 115263127874819_25100; Tue, 11 Jul 2006 15:21:18 +0000 (UCT) Received: from MX.HUMMINGBIRD.COM (mx.hcl.com [205.211.178.70]) by mail32-haw.bigfish.com (Postfix) with ESMTP id C7C154723E9 for ; Tue, 11 Jul 2006 15:21:17 +0000 (UTC) Received: from kingstonx1.andyne.com (kingstonx1.andyne.com [10.6.1.8]) by MX.HUMMINGBIRD.COM (8.12.10/8.12.10) with ESMTP id k6BFLC8r004563 for ; Tue, 11 Jul 2006 11:21:17 -0400 Received: by kingstonx1.andynehcl.com with Internet Mail Service (5.5.2657.72) id <3WTCK5ZP>; Tue, 11 Jul 2006 11:22:44 -0400 Message-ID: From: Mike Wannamaker To: "'Tomcat Users List'" Subject: RE: Running Tomcat Embedded Date: Tue, 11 Jul 2006 11:21:55 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thanks Bill, I've looked at that and we actually have it running that way. What I'm looking for is a way to duplicate org.apache.catalina.startup.Bootstrap class in my own startup. I believe that JBoss does something similar? What I really want to do is get my version of Tomcat that I startup to work like starting Tomcat manually. I want it to read the server.xml and context.xml files for web apps. Is this possible? 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. -----Original Message----- From: Bill Barker [mailto:wbarker@wilshire.com] Sent: July 10, 2006 11:44 PM To: users@tomcat.apache.org Subject: Re: Running Tomcat Embedded "Mike Wannamaker" 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/catali na/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 --------------------------------------------------------------------- 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