> -----Original Message----- > From: Terence M. Bandoian [mailto:tere...@tmbsw.com] > Sent: Saturday, February 18, 2012 5:14 PM > To: Tomcat Users List > Subject: Re: generic deployment question > > On 1:59 PM, Christopher Schultz wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Jeffrey, > > > > On 2/17/12 10:45 AM, Jeffrey Janner wrote: > >> Thanks. I was under the impression that Tomcat normally explodes > >> the war files when you drop them into the webapps folder, though I > >> know you can disable that feature. > > I was suggesting that you leave the WAR files out of the webapps > > directory, but it doesn't really matter. > > > > Honestly, if you use the manager to deploy your webapps, you can > > upload whatever WAR file you want anytime you want to get whatever > > version you want. > > > >> I was under the impression that one should run from the exploded > >> directory for performance reasons, i.e. it's faster to pull files > >> from the directory than from inside the war file. > > IIRC, Tomcat explodes the WAR file into the work directory anyway. > You > > can easily confirm that. > > > >> If there really is no performance difference, then that's even more > >> reason that I want to get my developers to get this thing down to a > >> war file with no files I need to modify. > > Don't forget the immense power of scripting: if you have > > client-specific files to merge into a webapp, then write a script > that > > takes the stock WAR file from engineering and a set of client- > specific > > files and combines them into a client-specific WAR. You can even have > > that script push the newly-minted WAR file up to Tomcat using the > > manager. Boom: single-script deployment for each client. > > > > You got 25 clients? Run the same command 25 times. Or script that, > too. > > > > - -chris > > If each user has their own domain, wouldn't it be possible to: > > 1) Move all of the user-specific configuration information to a > database > > 2) Differentiate users by host name and access their configuration data > from the database. > > This could simplify administration of the application over the long > term. > > Does each domain have a different IP address? > > -Terence Bandoian >
Yes Terence, that's the direction I'm headed in. Currently, each customer gets their own host/IP/DB. I'm trying to get it so all I have to do to setup a new customer is set up the <host> and context.xml with <resources> for the DB connection and context parameters supplying paths to log4j.properties and anything else that has to be pulled from the file system. If I get there, I don't see the need to have multiple copies of the actual app (be it war file or exploded directory) on the system. But as stated, I think I answered my own question when I really thought about it. Thanks for you input anyway. __________________________________________________________________________ Confidentiality Notice: This Transmission (including any attachments) may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this transmission in error, please immediately reply to the sender or telephone (512) 343-9100 and delete this transmission from your system. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org