-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Josh,
On 5/14/2009 4:35 PM, JoshInWV wrote: > I have an OReilly book on tomcat, but it really lacks on realm > configuration and when talking about j_security_check (but of course > so does servlet spec 2.3) What Tomcat version are you using? You should probably be reading the servlet spec version 2.4 (for TC 5.x) or 2.5 (for TC 6.x). The best reference is the servlet spec itself. It's surprisingly readable. > Most of what I need to have happen is at the server level. What do I > need to do to have one instance of tomcat running and have multiple > copies of the software running throughout the one server? You can easily deploy the same application multiple times... you just need to give them different names. For instance, if you want to deploy it on the following URLs: http://host/name1 http://host/name2 http://host/name3 http://host/name4 ....just copy your WAR file (or webapp directory) several times into Tomcat's webapps directory. Name the WAR files name1.war, name2.war, etc. or, if you're using directories, name the directories name1, name2, etc. Since you mentioned the servlet spec 2.3, I suspect you are running on Tomcat 4.1.x. You should really upgrade to a more recent version, honestly. I recently (I suppose over a year ago, now) migrated 4 separate apps from 4.1.x to 5.5.x and it was no big deal. > I know this gets into a realms configuration issue, but I am not > strong on that. A <Realm> should be defined within a <Context>, and you should have a separate <Context> for each webapp. Tomcat 5.5.x and 6.0.x prefer that you define your <Context> elements within META-INF/context.xml within your webapp's WAR file (or directory). If you want to use a different database user or backend database (or both), just customize each webapp's (name1, name2, etc.) context.xml as appropriate. > I thought about doing sub-domains with a dedicated instance under > each domain, however, I think that's terribly wasteful. It can be, but it can also help you insulate the instances from one another: if one client starts making lots of requests, they can only max-out the connection capacity of /their/ instance, and not starve other customers. > I have a few questions if you all can make some time for me to answer > them, I would be most grateful! Other questions? Bring 'em on: just post each question under a different thread name, instead of repeatedly hijacking your own thread. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkoXaQIACgkQ9CaO5/Lv0PD7fwCglR+71uFOntAVyabDxc/Z9cKM vGkAoJu8VBCw+nnnq/OqZoj+/j+lhWBI =Kq6Q -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org