Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 57268 invoked from network); 9 Jan 2007 18:00:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jan 2007 18:00:46 -0000 Received: (qmail 23778 invoked by uid 500); 9 Jan 2007 18:00:38 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 23759 invoked by uid 500); 9 Jan 2007 18:00:38 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 23748 invoked by uid 99); 9 Jan 2007 18:00:37 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jan 2007 10:00:37 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [67.88.101.10] (HELO smtp.latis.com) (67.88.101.10) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 Jan 2007 10:00:28 -0800 Received: from localhost (smtp [127.0.0.1]) by smtp.latis.com (Postfix) with ESMTP id 442843FBB1 for ; Tue, 9 Jan 2007 11:00:16 -0700 (MST) Received: from smtp.latis.com ([127.0.0.1]) by localhost (smtp.latis.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00678-01 for ; Tue, 9 Jan 2007 11:00:14 -0700 (MST) Received: from ex01.latis.com (ex01.latis.com [10.1.1.12]) by smtp.latis.com (Postfix) with ESMTP id 9A6953FBA7 for ; Tue, 9 Jan 2007 10:59:54 -0700 (MST) Received: from [10.1.89.1] ([10.1.89.1]) by ex01.latis.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 9 Jan 2007 10:59:57 -0700 Message-ID: <45A3D87D.2080000@stillsecure.com> Date: Tue, 09 Jan 2007 11:01:33 -0700 From: Bryan Basham Reply-To: Bryan Basham User-Agent: Thunderbird 1.5.0.7 (X11/20060918) MIME-Version: 1.0 To: users@tomcat.apache.org CC: Bryan Basham Subject: Creating a custom session manager Content-Type: multipart/mixed; boundary="------------050902090908040701050003" X-OriginalArrivalTime: 09 Jan 2007 17:59:57.0671 (UTC) FILETIME=[F969EF70:01C73417] X-Virus-Scanned: amavisd-new at stillsecure.com X-Virus-Checked: Checked by ClamAV on apache.org --------------050902090908040701050003 Content-Type: multipart/alternative; boundary="------------000905060206010803050607" --------------000905060206010803050607 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hello Tomcat users, I have a need that I believe Tomcat's pluggable session manager facility can satisfy, but I am having trouble getting it configured. BTW, I have googled and searched the mail archives on this topic and have not found anything useful yet. My application requires a modular architecture in which pluggable modules can be added a removed. We would like to use the web container's ability to deploy, undeploy, and redeploy WAR files as a means to install, uninstall, and upgrade the modules within our system. However, there is also a need to share session state between these modules which is not allowed in the servlet specification. I have researched a few solutions (such as using a Singleton in a common/lib/ package), but these solutions appear to require a non- trivial amount of infrastructure (and configuration of filters and/or session listeners) for every webapp. I would like to avoid all of that explicit infrastructure and hide the complexity by using a custom session manager. Before I proceed with my question, does anyone have any other suggestions for solving the above problem? OK, here is the test case that I am trying. I have created a very simple decorator which implements the org.apache.catalina.Manager interface. It simply delegates all calls to an instance of StandardManager and prints a message to System.out. Attached is the Tomcat config file that I am trying to use to configure my custom session manager. I am trying to use the tag to setup the manager on all webapps. Unfortunately, when I run a simple webapp (after restarting Tomcat, of course) I am not seeing any output in any log file (nor to the console) from my test manager. Is my configuration invalid? What am I missing? Sincere thanks, Bryan -- *StillSecure* Bryan Basham Senior Software Engineer (UI Development) F 303.381.3881 C 303.917.4546 www.stillsecure.com /The information transmitted is intended only for the person to whom it is addressed and may contain confidential material. Review or other use of this information by persons other than the intended recipient is prohibited. If you've received this in error, please contact the sender and delete from any computer. / --------------000905060206010803050607 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hello Tomcat users,

I have a need that I believe Tomcat's pluggable session manager
facility can satisfy, but I am having trouble getting it configured.

BTW, I have googled and searched the mail archives on this topic
and have not found anything useful yet.

My application requires a modular architecture in which pluggable
modules can be added a removed.  We would like to use the web
container's ability to deploy, undeploy, and redeploy WAR files as
a means to install, uninstall, and upgrade the modules within our
system.  However, there is also a need to share session state between
these modules which is not allowed in the servlet specification.

I have researched a few solutions (such as using a Singleton in a
common/lib/ package), but these solutions appear to require a non-
trivial amount of infrastructure (and configuration of filters and/or
session listeners) for every webapp.  I would like to avoid all of that
explicit infrastructure and hide the complexity by using a custom
session manager.

Before I proceed with my question, does anyone have any other
suggestions for solving the above problem?

OK, here is the test case that I am trying.  I have created a very simple
decorator which implements the org.apache.catalina.Manager interface.
It simply delegates all calls to an instance of StandardManager and
prints a message to System.out.  Attached is the Tomcat config file
that I am trying to use to configure my custom session manager.  I am
trying to use the <DefaultContext> tag to setup the manager on all
webapps.

Unfortunately, when I run a simple webapp (after restarting Tomcat, of
course) I am not seeing any output in any log file (nor to the console) from
my test manager.

Is my configuration invalid?  What am I missing?

Sincere thanks,
Bryan

--
Untitled

StillSecure
Bryan Basham
Senior Software Engineer (UI Development)

F 303.381.3881
C 303.917.4546
www.stillsecure.com
The information transmitted is intended only for the person
to whom it is addressed and may contain confidential material.
Review or other use of this information by persons other than
the intended recipient is prohibited. If you've received
this in error, please contact the sender and delete
from any computer.

--------------000905060206010803050607-- --------------050902090908040701050003 Content-Type: text/xml; name="server.xml" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="server.xml" --------------050902090908040701050003 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org --------------050902090908040701050003--