tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: [PROPOSAL] Enable session replication by default.
Date Tue, 07 Jun 2011 13:32:04 GMT
On 07/06/2011 12:37, Keiichi Fujino wrote:
> Hi All.
> 
> Tomcat7.0.15 can not replicate session if web application defines
> <distributable/> in WEB-INF/web.xml.
> Tomcat7.0.14 can replicate session if web application defines
> <distributable/> in WEB-INF/web.xml.
> The behavior of this default was changed by rev1130618.
> The cause is conf/web.xml is not distributable.

That is enough to stop the 7.0.15 release in my view.

> To enable session replication by default,
> I thought two plans.
> 
> PlanA:
> Add WebXml#setDistributable(true) to ContextConfig#webConfig().
> 
> Index: java/org/apache/catalina/startup/ContextConfig.java
> ===================================================================
> --- java/org/apache/catalina/startup/ContextConfig.java	(revision 1132530)
> +++ java/org/apache/catalina/startup/ContextConfig.java	(working copy)
> @@ -1195,6 +1195,7 @@
>           */
>          WebXml webXmlDefaultFragment = createWebXml();
>          webXmlDefaultFragment.setOverridable(true);
> +        webXmlDefaultFragment.setDistributable(true);
> 
>          // Parse global web.xml if present
>          InputSource globalWebXml = getGlobalWebXmlSource();

<snip/>

> I intend to commit planA.
> Any objections or other ideas?

None here.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message