Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 21062 invoked from network); 7 Feb 2008 20:05:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Feb 2008 20:05:17 -0000 Received: (qmail 67666 invoked by uid 500); 7 Feb 2008 20:04:59 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 67649 invoked by uid 500); 7 Feb 2008 20:04:59 -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 67638 invoked by uid 99); 7 Feb 2008 20:04:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 12:04:59 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [74.54.141.23] (HELO mail.writingshow.com) (74.54.141.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2008 20:04:29 +0000 Received: from cpe-75-82-230-88.socal.res.rr.com ([75.82.230.88] helo=[192.168.1.106]) by mail.writingshow.com with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.67) (envelope-from ) id 1JND00-0006CK-DU for users@tomcat.apache.org; Thu, 07 Feb 2008 14:05:32 -0600 Message-ID: <47AB6452.60405@compulsivecreative.com> Date: Thu, 07 Feb 2008 12:04:34 -0800 From: Alan Chaney Reply-To: alan@compulsivecreative.com Organization: Paula Hollywood, Inc. User-Agent: Thunderbird 1.5.0.14pre (X11/20071023) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Application Realm in Tomcat References: <15334971.post@talk.nabble.com> <47AB5EB8.4080708@joedog.org> In-Reply-To: <47AB5EB8.4080708@joedog.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org If you purpose is to find the roles in the database wouldn't it be better just to query the database? What kind of realm are you using? If its something like the 'memory' realm then you can just read the file. If its a RDBM then a few lines of JDBC code or the use of a persistence manager would work. Regards Alan Tim Funk wrote: > Via the spec - you can't query all the roles a user has. But you can say > request.isUserInRole(rolename) > > If you *need* access to the realm, things start to get ugly. You need to > start coding against Tomcat internal specific classes. > > -Tim > > maux wrote: >> Hi, I am doing a Java code. This code have to access to the realm that >> an application in Tomcat is using, after that the code have to access >> to that realm and look for the roles that exist in that database. > > --------------------------------------------------------------------- > 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 > > > > !DSPAM:47ab5f13234141497319589! > --------------------------------------------------------------------- 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