Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 2681 invoked from network); 3 Dec 2004 14:21:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Dec 2004 14:21:37 -0000 Received: (qmail 1981 invoked by uid 500); 3 Dec 2004 14:20:28 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 1934 invoked by uid 500); 3 Dec 2004 14:20:27 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 1878 invoked by uid 99); 3 Dec 2004 14:20:26 -0000 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_RFC_ABUSE,HTML_20_30,HTML_MESSAGE,HTML_TITLE_EMPTY,RCVD_IN_BL_SPAMCOP_NET X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from relay2.ptc.com (HELO relay2.ptc.com) (12.11.148.122) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 03 Dec 2004 06:20:24 -0800 Received: from hq-exfe1.ptcnet.ptc.com (132.253.201.60) by relay2.ptc.com with ESMTP; 03 Dec 2004 09:20:47 -0500 X-Ironport-AV: i="3.87,122,1099285200"; d="scan'217,208"; a="4433525:sNHT19852652" Received: from [132.253.40.192] ([132.253.40.192]) by HQ-EXFE1.ptcnet.ptc.com with Microsoft SMTPSVC(5.0.2195.6713); Fri, 3 Dec 2004 09:20:15 -0500 Message-ID: <41B07621.2060106@ptc.com> Date: Fri, 03 Dec 2004 08:20:17 -0600 From: Jess Holle User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.3) Gecko/20040910 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Developers List CC: "Gibson, John" Subject: Custom HttpSession passivation? References: <200412030807.iB387ks2004021@ajax.apache.org> In-Reply-To: <200412030807.iB387ks2004021@ajax.apache.org> Content-Type: multipart/alternative; boundary="------------000805000303070804020406" X-OriginalArrivalTime: 03 Dec 2004 14:20:15.0910 (UTC) FILETIME=[35A29460:01C4D943] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --------------000805000303070804020406 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit I have a need to passivate HttpSessions on a more aggressive basis than that of timing them out. Default behavior is to time out a sessions after 30 minutes of inactivity -- which is fine. Rather I need to be able to passivate sessions to disk after say 10-15 minutes or rather passivate all but the last 'n' (e.g. 200) to disk -- re-activating these if/when necessary (i.e. when a request comes in for the given session). Am I missing a configuration option for such behavior in Tomcat? [Is this something SunONE or WebSphere add on top of the base code they share with Tomcat?] If not, do APIs exist for: * Passivation of individual sessions, i.e. serializing them to disk, calling the right listeners, etc? * Activation of individual sessions, i.e. re-storing them from disk, cleaning files from disk as appropriate, calling the right listeners, etc? o Is this done automatically on attempts to access the session in question? I'm using Tomcat 5.0.30 and 4.1.24, though I could limit things to 5.0.30 if that helps. [I could /possibly/ even pursue 5.5.x if that helps enough, but there are significant obstacles to us pursuing this direction at this time.] Any/all pointers in this regard would be appreciated. Thanks for your time. -- Jess Holle jessh@ptc.com --------------000805000303070804020406--