You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Belot Thomas <Th...@santeos.com> on 2011/08/11 09:48:33 UTC

Is there a way to change "tapestry.application-version" value without redeploying the webapp ?

Hi 

Is there a way to change "tapestry.application-version" value without redeploying the webapp ? 

We would like to be able to force all clients to refresh their static content cache (due to bogus client / proxy which keep serving corrupted files) without having to restart our tomcat or redeploy the webapp. 

see : http://tapestry.apache.org/configuration.html#Configuration-tapestry.applicationversion


Thanks for your help

Regards

Thomas



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


RE: Is there a way to change "tapestry.application-version" value without redeploying the webapp ?

Posted by Belot Thomas <Th...@santeos.com>.
Because we found out that some users were complaining about "bugs" which were in fact cause by au buggy proxy with caching enabled (external to our web app) and so we would like to be able to force all clients to reload their resources from the server side without any service disruption. We don’t mind if the modification takes 5 minutes to be fully active but we don't want to lose users connected to a server during the change (session replication is not enabled so a restart / redeploy causes our users to be switched to the backup server and "disconnects" them).

To achieve that a solution would be to be able to change tapestry's app-version which would cause resources path to be rewritten and re-downloaded.

Regards 

Thomas
-----Message d'origine-----
De : Thiago H. de Paula Figueiredo [mailto:thiagohp@gmail.com] 
Envoyé : jeudi 11 août 2011 15:33
À : Tapestry users; Belot Thomas
Objet : Re: Is there a way to change "tapestry.application-version" value without redeploying the webapp ?

On Thu, 11 Aug 2011 09:20:50 -0300, Belot Thomas  
<Th...@santeos.com> wrote:

> This is what I thought ... does anybody think this would be a good idea  
> or should I just forget it  ?

Why do you want to change it?

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br



Re: Is there a way to change "tapestry.application-version" value without redeploying the webapp ?

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Thu, 11 Aug 2011 09:20:50 -0300, Belot Thomas  
<Th...@santeos.com> wrote:

> This is what I thought ... does anybody think this would be a good idea  
> or should I just forget it  ?

Why do you want to change it?

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


RE: Is there a way to change "tapestry.application-version" value without redeploying the webapp ?

Posted by Belot Thomas <Th...@santeos.com>.
Thanks for your answer Thiago

This is what I thought ... does anybody think this would be a good idea or should I just forget it  ?

Regards

Thomas

Thomas BELOT
thomas.belot@santeos.com
Tél :	+33 (0)3 20 60 93 81
Fax :	+33 (0)3 20 60 82 18


-----Message d'origine-----
De : Thiago H. de Paula Figueiredo [mailto:thiagohp@gmail.com] 
Envoyé : jeudi 11 août 2011 14:16
À : Tapestry users
Objet : Re: Is there a way to change "tapestry.application-version" value without redeploying the webapp ?

On Thu, 11 Aug 2011 04:48:33 -0300, Belot Thomas  
<Th...@santeos.com> wrote:

> Hi

Hi!

> Is there a way to change "tapestry.application-version" value without  
> redeploying the webapp ?

Symbols are not updateable at runtime.

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org




Re: Is there a way to change "tapestry.application-version" value without redeploying the webapp ?

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Thu, 11 Aug 2011 04:48:33 -0300, Belot Thomas  
<Th...@santeos.com> wrote:

> Hi

Hi!

> Is there a way to change "tapestry.application-version" value without  
> redeploying the webapp ?

Symbols are not updateable at runtime.

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


RE: Is there a way to change "tapestry.application-version" value without redeploying the webapp ?

Posted by Belot Thomas <Th...@santeos.com>.
Thanks for your idea Nillehammer

But unfortunately this has already been done.

Regards 

Thomas

Thomas BELOT
thomas.belot@santeos.com
Tél :	+33 (0)3 20 60 93 81
Fax :	+33 (0)3 20 60 82 18


-----Message d'origine-----
De : nillehammer [mailto:tapestry.nillehammer@winfonet.eu] 
Envoyé : jeudi 11 août 2011 13:41
À : users@tapestry.apache.org
Objet : Re: Is there a way to change "tapestry.application-version" value without redeploying the webapp ?

Hi,
if you have used contributeApplicationDefaults in your AppModule, no.

But you can externalize the values to web.xml by providing context
parameters with appropriate name. The context parameters will be picked up
by tapestry during startup.

So first delete the code in AppModule and then write the paramters into
web.xml. For tapestry.application-version this would be:
<context-param>
  <param-name>tapestry.application-version</param-name>
  <param-value>YORVERSION</param-value>
<context-param>
Now, when you change this value in web.xml a context reload is necessary,
but no redeployment.

-----
http://www.winfonet.eu
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Is-there-a-way-to-change-tapestry-application-version-value-without-redeploying-the-webapp-tp4688726p4689241.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Is there a way to change "tapestry.application-version" value without redeploying the webapp ?

Posted by nillehammer <ta...@winfonet.eu>.
Hi,
if you have used contributeApplicationDefaults in your AppModule, no.

But you can externalize the values to web.xml by providing context
parameters with appropriate name. The context parameters will be picked up
by tapestry during startup.

So first delete the code in AppModule and then write the paramters into
web.xml. For tapestry.application-version this would be:
<context-param>
  <param-name>tapestry.application-version</param-name>
  <param-value>YORVERSION</param-value>
<context-param>
Now, when you change this value in web.xml a context reload is necessary,
but no redeployment.

-----
http://www.winfonet.eu
--
View this message in context: http://tapestry.1045711.n5.nabble.com/Is-there-a-way-to-change-tapestry-application-version-value-without-redeploying-the-webapp-tp4688726p4689241.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org