Re: Parallel Deployment: Get Context Version #

2011-08-11 Thread Pid
On 11/08/2011 02:55, Jonathan Rosenberg wrote: > Two benefits: > > 1) Allows incompatible upgrades. > 2) Allos existing sessions to complete. Parallel deployment does allow existing sessions to complete. Only new sessions are directed to the newest application. Are you seeing different behaviour

Re: Parallel Deployment: Get Context Version #

2011-08-10 Thread Jonathan Rosenberg
> We use apache http in-front of tomcat. This allows us to do exactly this. We > route calls from apache through to tomcat normally using mod_jk, and then > when we want to perform an upgrade, we update apache config, graceful > restart of apache, and apache routes all traffic to holding page. This

Re: Parallel Deployment: Get Context Version #

2011-08-10 Thread chris derham
>>> I want to use parallel deployment as an easy way to allow existing > >>> sessions to continue while redirecting new sessions to a "down for > >>> temp maintenance page." > We use apache http in-front of tomcat. This allows us to do exactly this. We route calls from apache through to tomcat no

Re: Parallel Deployment: Get Context Version #

2011-08-10 Thread Pid
On 10/08/2011 21:15, Jonathan Rosenberg wrote: >>> I want to use parallel deployment as an easy way to allow existing >>> sessions to continue while redirecting new sessions to a "down for >>> temp maintenance page." > >> Why not just upload a new .war (with the newest version) which only >> displ

Re: Parallel Deployment: Get Context Version #

2011-08-10 Thread Jonathan Rosenberg
>> I want to use parallel deployment as an easy way to allow existing >> sessions to continue while redirecting new sessions to a "down for >> temp maintenance page." > Why not just upload a new .war (with the newest version) which only > displays that page? I could do that. But if I can use the

Re: Parallel Deployment: Get Context Version #

2011-08-10 Thread Pid
On 10/08/2011 19:55, Jonathan Rosenberg wrote: > Quick answer: I want to have my Grails app determine at runtime which > version it was deployed as (bad English, I know). > > Longer answer: > > I want to use parallel deployment as an easy way to allow existing > sessions to continue while redirec

Re: Parallel Deployment: Get Context Version #

2011-08-10 Thread Jonathan Rosenberg
I suspect I can do it like this: "If session information is present in the request, check the session manager of each version for a matching session and if one is found, use that version." -- Jonathan Rosenberg Founder & Executive Director Tabby's Place, a Cat Sanctuary http://www.tabbysplace.org

Re: Parallel Deployment: Get Context Version #

2011-08-10 Thread Jonathan Rosenberg
Quick answer: I want to have my Grails app determine at runtime which version it was deployed as (bad English, I know). Longer answer: I want to use parallel deployment as an easy way to allow existing sessions to continue while redirecting new sessions to a "down for temp maintenance page." My

Re: Parallel Deployment: Get Context Version #

2011-08-10 Thread Mark Thomas
On 10/08/2011 19:41, Jonathan Rosenberg wrote: > Looking at some of my session ids & doing some searching online did > not turn up any useful info on format of session id (& where context > version is). > > Can you point me at something? Sorry, my bad - that was an earlier version of the code tha

Re: Parallel Deployment: Get Context Version #

2011-08-10 Thread Jonathan Rosenberg
Looking at some of my session ids & doing some searching online did not turn up any useful info on format of session id (& where context version is). Can you point me at something? -- Jonathan Rosenberg Founder & Executive Director Tabby's Place, a Cat Sanctuary http://www.tabbysplace.org/ On W

Re: Parallel Deployment: Get Context Version #

2011-08-10 Thread Mark Thomas
On 10/08/2011 17:37, Jonathan Rosenberg wrote: > I'm using Tomcat 7+. How can I get the context version #? I.e., if app Is > being run as app##124, I want 124. The simplest way will be to parse the session ID. Mark - To unsub