Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 39506 invoked by uid 500); 24 Apr 2001 20:39:49 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 39499 invoked from network); 24 Apr 2001 20:39:48 -0000 Received: from we-24-30-106-241.we.mediaone.net (HELO kilbride.com) (24.30.106.241) by h31.sny.collab.net with SMTP; 24 Apr 2001 20:39:48 -0000 Received: from p2266 (jeff [192.168.0.100]) by kilbride.com (8.9.3/8.9.3) with SMTP id NAA10109 for ; Tue, 24 Apr 2001 13:43:11 -0700 Message-ID: <008f01c0ccfe$af92d910$6400a8c0@p2266> From: "Jeff Kilbride" To: References: Subject: Re: Multiple Unique Instances WITHOUT multiple JVM? Date: Tue, 24 Apr 2001 13:39:40 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Hi Will, Take a look at the mod_jk HowTo at: http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/index.html There's an example virtual host configuration using a single JVM at the end of the file. Thanks, --jeff ----- Original Message ----- From: "Will England" To: Sent: Tuesday, April 24, 2001 8:42 AM Subject: Multiple Unique Instances WITHOUT multiple JVM? > Greetings! > > Here's what we want to do: > > We want to host our new servlet product as an ASP. Each customer of ours > would get a unique configuration for the product. However, all of the > servlets would run from one code base. > > We'd have the classes here: > > /webhome/classes/com/ourcompany/server/product > > and each customer would have their own WEB-INF: > > /webhome/customer1/WEB-INF/ > > Each customers servlets would be mapped like this: > > /servlet/customer1/user > /servlet/customer1/inventory > /servlet/customer1/checkout > > And the second customer: > > /servlet/customer2/user > /servlet/customer2/inventory > /servlet/customer2/checkout > > user, inventory and checkout would all point to the same set of classes up > in /webhome/classes. > > I know this is simple to do, if you are willing to spin up a new JVM for > each customer / virtual host. However, with one box and 30 customers, > that'd be right memory intensive. > > Questions: > > 1) Will this even work? Has anyone done this before? > > 2) How can we get different config files for each customer without > explicitly referring to them as init-params in the web.xml file? (we need > to be able to get the config from non-servlet aware classes). > > Thanks in advance for any tips; ask me if you need any clairification. > > Will > > -- > "If Al Gore invented the Internet, then I invented spellcheck!" > Dan Quayle, quoted at the National Press Club, 8/3/1999 > will@mylanders.com > Recovery : http://will.mylanders.com/ PCS: 316-371-FOAD >