Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 634A16951 for ; Tue, 7 Jun 2011 17:37:16 +0000 (UTC) Received: (qmail 13346 invoked by uid 500); 7 Jun 2011 17:37:15 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 13272 invoked by uid 500); 7 Jun 2011 17:37:15 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 13263 invoked by uid 99); 7 Jun 2011 17:37:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jun 2011 17:37:15 +0000 X-ASF-Spam-Status: No, hits=4.3 required=5.0 tests=FS_REPLICA,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [193.252.22.159] (HELO smtp5.freeserve.com) (193.252.22.159) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jun 2011 17:37:08 +0000 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3432.me.freeserve.com (SMTP Server) with ESMTP id 691AE7000055 for ; Tue, 7 Jun 2011 19:36:46 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3432.me.freeserve.com (SMTP Server) with ESMTP id 5C7367000058 for ; Tue, 7 Jun 2011 19:36:46 +0200 (CEST) Received: from mail.homeinbox.net (unknown [2.29.17.41]) by mwinf3432.me.freeserve.com (SMTP Server) with ESMTP id 485B17000055 for ; Tue, 7 Jun 2011 19:36:46 +0200 (CEST) X-ME-UUID: 20110607173646296.485B17000055@mwinf3432.me.freeserve.com Received: from localhost (localhost [127.0.0.1]) by mail.homeinbox.net (Postfix) with ESMTP id 01EE7EAAB55 for ; Tue, 7 Jun 2011 18:36:46 +0100 (BST) X-Virus-Scanned: Debian amavisd-new at homeinbox.net Received: from mail.homeinbox.net ([127.0.0.1]) by localhost (mail.homeinbox.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L8O252cIrP4I for ; Tue, 7 Jun 2011 18:36:42 +0100 (BST) Received: from [192.168.23.9] (study03.dev.local [192.168.23.9]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.homeinbox.net (Postfix) with ESMTPSA id 53203EAAB3A for ; Tue, 7 Jun 2011 18:36:42 +0100 (BST) Message-ID: <4DEE61A1.3090702@apache.org> Date: Tue, 07 Jun 2011 18:36:33 +0100 From: Mark Thomas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-GB; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: [PROPOSAL] Enable session replication by default. References: In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 07/06/2011 16:21, Konstantin Kolinko wrote: > 2011/6/7 Keiichi Fujino : >> Hi All. >> >> Tomcat7.0.15 can not replicate session if web application defines >> in WEB-INF/web.xml. >> Tomcat7.0.14 can replicate session if web application defines >> in WEB-INF/web.xml. >> The behavior of this default was changed by rev1130618. >> The cause is conf/web.xml is not distributable. >> >> To enable session replication by default, >> I thought two plans. >> >> PlanA: >> PlanB: > > -1 > > IIRC configuring the webapp as has observable > consequence that each attribute assigned to a session will be checked > whether it implements of the Serializable interface. It will mean that > some webapps will stop working in the default configuration. > > Thus we cannot assume that "distributable" flag is true by default. I > suspect that specification implies that "distributable" flag defaults > to false. I have not checked the text though. The proposed patch doesn't do that. It marks the defaultFragment as distributable which means that the main web.xml file still determines the final state of distributable. Without marking the defaultFragment as distributable, a web-app can never be distributable. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org