Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 25407 invoked from network); 24 Feb 2006 11:35:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Feb 2006 11:35:01 -0000 Received: (qmail 36440 invoked by uid 500); 24 Feb 2006 11:34:48 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 36428 invoked by uid 500); 24 Feb 2006 11:34:47 -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 36417 invoked by uid 99); 24 Feb 2006 11:34:47 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2006 03:34:47 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of David.Delbecq@oma.be designates 193.190.231.71 as permitted sender) Received: from [193.190.231.71] (HELO bonnie.oma.be) (193.190.231.71) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Feb 2006 03:34:47 -0800 Received: from [193.190.249.120] (bonnie.oma.be [193.190.231.71]) by bonnie.oma.be (8.11.1 (Revision 1.5) /8.11.1) with ESMTP id k1OBYOs14613 for ; Fri, 24 Feb 2006 11:34:24 GMT Message-ID: <43FEEF25.9040006@oma.be> Date: Fri, 24 Feb 2006 12:33:57 +0100 From: David Delbecq User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: fr, en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Multiple webapps using one war file References: <43FEEBE5.4010309@becomo.com> In-Reply-To: <43FEEBE5.4010309@becomo.com> Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N While it is possible to put some of the librarie out of .war, inside common, you must be aware of side effects. Libraries like struts are not designed to run multiple context within a given classloader (The servelt, for example, can only be instanciated once). I don't know for Hibernate and for etc :) Also, you could take a look at .ear if you need to play with a common part and multiple .war. But tomcat does not deploy .ear, you must use a full featured J2EE container for this. Mikolaj Rydzewski a �crit : > Hello, > > I've got rather complex web application (struts, hibernate, etc) which > runs on Tomcat. There is a need to deploy this webapp for various > customers. The only difference between them is the database they > connect to, well, almost the only one ;-) > > Is there any way to reuse one war file and map it to several contexts? > I could give application's parameters (like jndi connection uri ) > within context.xml descriptor. Every deploy takes several MB of > memory, and it's a waste to have hibernate and required jars five > times in memory. > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org