Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 50957 invoked from network); 22 Dec 2010 10:03:45 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Dec 2010 10:03:45 -0000 Received: (qmail 31486 invoked by uid 500); 22 Dec 2010 10:03:40 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 31449 invoked by uid 500); 22 Dec 2010 10:03:39 -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 31440 invoked by uid 99); 22 Dec 2010 10:03:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Dec 2010 10:03:39 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jn.colin@gmail.com designates 209.85.215.170 as permitted sender) Received: from [209.85.215.170] (HELO mail-ey0-f170.google.com) (209.85.215.170) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Dec 2010 10:03:31 +0000 Received: by eyf5 with SMTP id 5so2324594eyf.1 for ; Wed, 22 Dec 2010 02:03:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:content-type :mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=mz8DYHksWmtX25+6pnjnYB9P1E+f7J6+4Anbv2rRSzI=; b=cXAoFxQbReIhvZVUM/igg7so8QOmuOIG+/1QJg1s+mxp+uz83mdNIj7kSvqq5L+OUi MIJmYPP2uvmPBqjKXNEbBolpX3py1YKq7ZcNoilBeS96QwM13tkfrFBxOQGklCD2z9zo 3QHouZpkR1NXv8cUvgp+k2x6q3q8Mde80LjG4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; b=OJePgPVEFhU+d40aBSnCLtl8uxfuF5e+6BKL8UkXlvTCxHnmYyx6NOvlhqFXLTWDSs g7WYSj3gs837kKhKRFjPHM9m9hvTmEPbX9aBt0gYXLlP16TqMn7f2b8aM7+pm5KK/3Df 3WEvOYObMu/wAOBWjh6FoiaU9eo3+DzWt/p+k= Received: by 10.213.33.133 with SMTP id h5mr6726437ebd.87.1293012190087; Wed, 22 Dec 2010 02:03:10 -0800 (PST) Received: from hermione.info.fundp.ac.be (hermione.info.fundp.ac.be [138.48.32.152]) by mx.google.com with ESMTPS id x54sm4559456eeh.23.2010.12.22.02.03.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 22 Dec 2010 02:03:08 -0800 (PST) Sender: Jean-Noel Colin Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1082) Subject: Re: Getting detailed list of active sessions for a Context From: =?iso-8859-1?Q?Jean-No=EBl_Colin?= In-Reply-To: <4375006639224897579@unknownmsgid> Date: Wed, 22 Dec 2010 11:03:07 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: <6731C4DF-20DE-44F8-B73C-06842106FF80@fundp.ac.be> References: <92AD35FB-FBE3-46BC-9F47-E877A67BC1E3@gmail.com> <4375006639224897579@unknownmsgid> To: "Tomcat Users List" X-Mailer: Apple Mail (2.1082) Hi Thanks for the feedback; actually, jsp or servlet is not really the = point, since I'm using icefaces anyway. So it seems that I can't get access to the list of sessions connected to = my webapp, except the limited information provided by HttpSession? Cheers Jean-No=EBl On 22 Dec 2010, at 10:19, Pid * wrote: > On 22 Dec 2010, at 08:49, "Jean-No=EBl Colin" = wrote: >=20 >> Hi, >>=20 >> I'm developing a webapp and I would like to be able to display the = list of active sessions for that specific webapp, in a specific page, = and I'd like to get a detailed view: Session Id, Creation time, last = activity, IP address, username (in case he's authenticated) >=20 > The below will get you the session details but not the username. >=20 >>=20 >> I searched forums and the web, and found the way to get access to the = HttSession, by defining an HttpSessionListener. But I would like to get = more info, like what's made available through the manager interface. >>=20 >> I tried defining a Manager for the context = (org.apache.catalina.session.StandardManager which is the default, btw), = but can't find a way to access it from the jsp. >=20 > As you can see from the package name this is an internal tomcat class > not a servlet spec class. >=20 > The servlet spec is not designed to permit access to the container > (tomcat) implementation. >=20 >> I also tried casting the HttpSession retrieved in the = HttpSessionListener, without success. >>=20 >> Would you have any further suggestion? >=20 > See PSIProbe and investigate JMX. > Note: you may wish to perform logic in a Servlet rather than a JSP. >=20 >=20 > p >=20 >=20 >>=20 >> Best regards >>=20 >> Jean-No=EBl Colin >>=20 >>=20 >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >> For additional commands, e-mail: users-help@tomcat.apache.org >>=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org