Chuck, Thank you for the quick informative reply. My main objective is to have my client's URL not change and have any redirection to a different version be transparent to them.
What exactly would you recommend? Since I've never seen the webapps/production#1.0.war approach, I would have to experiment to see how that exactly works. Would a redirection filter only be sufficient? Thanks again for your input! Brandon Caldarale, Charles R wrote: > >> From: behofmann [mailto:behofm...@gmail.com] >> Subject: Serving Multiple Application Versions within the same Context >> >> While designing this application, I would like the ability to serve >> multiple application versions within the same context. > > Do you really want to do that? Wouldn't it be better to have a separate > <Context> for each version? Mixing them together in the same classloader > (one per <Context>) sounds really risky as well as being a maintenance > nightmare. > > It would be better to deploy each application version as a separate > <Context>. If you want to use the version numbering scheme you mentioned > as an example, simply name the webapp .war files (or directories) as > follows: > > webapps/production#1.0.war > webapps/production#1.1.war > > Yes, that really is a # sign in the file name (omit the .war if using > directories). > >> allowing me to direct Company A to >> www.mycompany.com/production/1.0/index.jsp and >> Company B to www.mycompany.com/production/1.1/index.jsp? > > You could have a webapp named just production that consists of nothing but > a filter that forwards the request to the appropriate version based on the > origin of the request. The standard URL rewrite filter should be able to > do that for you: > http://tuckey.org/urlrewrite/ > > - Chuck > > > THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY > MATERIAL and is thus for use only by the intended recipient. If you > received this in error, please contact the sender and delete the e-mail > and its attachments from all computers. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://www.nabble.com/Serving-Multiple-Application-Versions-within-the-same-Context-tp22715207p22715545.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org