RE: Root context switching
Sounds to me like you are looking for the parallel deployment capabilities built into Tomcat 7. See: http://tomcat.apache.org/tomcat-7.0-doc/config/context.html Jeff > -Original Message- > From: Dennie.nl [mailto:dennie...@gmail.com] > Sent: Tuesday, September 04, 2012 6:26 AM > To: Tomcat Users List > Subject: Re: Root context switching > > Hello, > > If my idea was only as simple as renaming it to ROOT.war (this one I > know > of):) > Basic what I want is the same functionality which google apps provides. > So I want to be able to have multiple versions of my application > online, let people try the new environment and eventually switch the > root context to the new running version. This enables my clients to try > out the new version and options before they switch over to the new > environment and enables me to fix bugs found in the new release. > > I think I need a tunnelfilter or something for this, but maybe there's > something available already. I've looked at parallel deployment, but > this is mostly to serve the current users the version they are > currently using. > > Cheers, > > Dennie > > > 2012/9/4 chris derham > > > I am new to Tomcat. What I like to do is to deploy different versions > > of my > > > > > application, for example: > > > hostname\myappv1 > > > hostname\myappv2 > > > > > > Now I want the ROOT context to be set dynamicly to one of the > > > available deployed versions. Is this possible? Is there a way to > implement this? > > > > > > Dennie, > > > > This question is asked regularly. The regularly posted answer is that > > you must call the root war ROOT.war, such that it is unpacked as > > CATALINA_HOME\webapps\ROOT. There may be ways around this, but it > > really is much, much simpler to do this in all cases I have seen > discussed. > > > > Having said that, you say that you wish to change the ROOT > dynamically. > > Why? What is your use case? If you explain, perhaps we might be able > > to describe a suitable alternative > > > > Chris > > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Root context switching
On 04.09.2012 13:26, Dennie.nl wrote: Basic what I want is the same functionality which google apps provides. So I want to be able to have multiple versions of my application online, let people try the new environment and eventually switch the root context to the new running version. This enables my clients to try out the new version and options before they switch over to the new environment and enables me to fix bugs found in the new release. I don't know google apps. But for sure you can deploy many different wars on the same Tomcat instance. So you can have let's say host/app1, host/app2 URLs, or with virtual hosts: host1/app, host2/app, etc. With virtual hosts you can have multiple ROOT contexts as well. Does it answer your question? -- Mikolaj Rydzewski - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Root context switching
> > Basic what I want is the same functionality which google apps provides. So > I want to be able to have multiple versions of my application online, let > people try the new environment and eventually switch the root context to > the new running version. This enables my clients to try out the new version > and options before they switch over to the new environment and enables me > to fix bugs found in the new release. > > Two options spring to mind. First is to have multiple tomcat instances running. One is production with accepted versions of wars. Then a second instance could run on a different port allowing you to test the new wars. When they are accepted, you deploy on the production instance. Second option is a slight variation - you could run a single instance, but have two hosts specified. In one host you specify your production wars, and in the second you specify your UAT wars. Every company that I have worked in always runs separate a production and UAT machines. If you don't want multiple machines, then I'd go for option 1. HTH Chris
Re: Root context switching
Hello, If my idea was only as simple as renaming it to ROOT.war (this one I know of):) Basic what I want is the same functionality which google apps provides. So I want to be able to have multiple versions of my application online, let people try the new environment and eventually switch the root context to the new running version. This enables my clients to try out the new version and options before they switch over to the new environment and enables me to fix bugs found in the new release. I think I need a tunnelfilter or something for this, but maybe there's something available already. I've looked at parallel deployment, but this is mostly to serve the current users the version they are currently using. Cheers, Dennie 2012/9/4 chris derham > I am new to Tomcat. What I like to do is to deploy different versions of my > > > application, for example: > > hostname\myappv1 > > hostname\myappv2 > > > > Now I want the ROOT context to be set dynamicly to one of the available > > deployed versions. Is this possible? Is there a way to implement this? > > > > Dennie, > > This question is asked regularly. The regularly posted answer is that you > must call the root war ROOT.war, such that it is unpacked as > CATALINA_HOME\webapps\ROOT. There may be ways around this, but it really is > much, much simpler to do this in all cases I have seen discussed. > > Having said that, you say that you wish to change the ROOT dynamically. > Why? What is your use case? If you explain, perhaps we might be able to > describe a suitable alternative > > Chris >
Re: Root context switching
I am new to Tomcat. What I like to do is to deploy different versions of my > application, for example: > hostname\myappv1 > hostname\myappv2 > > Now I want the ROOT context to be set dynamicly to one of the available > deployed versions. Is this possible? Is there a way to implement this? > > Dennie, This question is asked regularly. The regularly posted answer is that you must call the root war ROOT.war, such that it is unpacked as CATALINA_HOME\webapps\ROOT. There may be ways around this, but it really is much, much simpler to do this in all cases I have seen discussed. Having said that, you say that you wish to change the ROOT dynamically. Why? What is your use case? If you explain, perhaps we might be able to describe a suitable alternative Chris