Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 60767 invoked from network); 25 Jun 2002 00:04:22 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 25 Jun 2002 00:04:22 -0000 Received: (qmail 2398 invoked by uid 97); 25 Jun 2002 00:04:16 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 2382 invoked by uid 97); 25 Jun 2002 00:04:16 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 2370 invoked by uid 98); 25 Jun 2002 00:04:15 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Date: Mon, 24 Jun 2002 17:03:59 -0700 (PDT) From: "Craig R. McClanahan" To: Tomcat Users List , Jacob Kjome Subject: Re: question about hot deployment and manager app.... In-Reply-To: <1733941798.20020624183002@visi.com> Message-ID: <20020624165921.B44009-100000@icarus.apache.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: localhost 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Mon, 24 Jun 2002, Jacob Kjome wrote: > Date: Mon, 24 Jun 2002 18:30:02 -0500 > From: Jacob Kjome > Reply-To: Tomcat Users List , > Jacob Kjome > To: Tomcat Users List > Subject: question about hot deployment and manager app.... > > > Hi, > > I've been using the ant tasks for the manager app and they are really > slick. Makes testing much easier. > > However, how does one dynamically install an application when one has > to specify context stuff in the server.xml or in a standalone > [myapp].xml (using Tomcat 4.1.3)? > I do this by using the "install" task that installs a "context configuration file". What's that, you might ask? It's simply an XML file that contains the element for your webapp, including all of its nested tags for the custom configuration you need. Something like this: In later versions (starting with 4.1.5 I think) you can also use this kind of thing with the deploy command -- simply put a "META-INF/context.xml" file in your WAR file that is uploaded. > I'd like to run my builds from anywhere and not have Tomcat attempt to > load the app up at startup. I need to specify the context in the > [myapp].xml because I have Reource and ResourceParams for JDBC > connection pooling. > > Is this impossible or am I just missing something? > Yep ... it is definitely possible, and very handy. > > -- > Best regards, > Jacob mailto:hoju@visi.com > Craig -- To unsubscribe, e-mail: For additional commands, e-mail: