Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 52783 invoked from network); 16 Sep 2008 21:12:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Sep 2008 21:12:28 -0000 Received: (qmail 34481 invoked by uid 500); 16 Sep 2008 21:12:12 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 34462 invoked by uid 500); 16 Sep 2008 21:12:12 -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 34447 invoked by uid 99); 16 Sep 2008 21:12:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Sep 2008 14:12:12 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [193.252.22.151] (HELO smtp6.freeserve.com) (193.252.22.151) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Sep 2008 21:11:13 +0000 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3544.me.freeserve.com (SMTP Server) with ESMTP id 5F8791C00088 for ; Tue, 16 Sep 2008 23:11:45 +0200 (CEST) Received: from smtp.homeinbox.net (unknown [91.109.156.78]) by mwinf3544.me.freeserve.com (SMTP Server) with ESMTP id 321F61C00087 for ; Tue, 16 Sep 2008 23:11:45 +0200 (CEST) X-ME-UUID: 20080916211145205.321F61C00087@mwinf3544.me.freeserve.com Received: from localhost (localhost [127.0.0.1]) by smtp.homeinbox.net (Postfix) with ESMTP id 647EF1A4452 for ; Tue, 16 Sep 2008 22:11:43 +0100 (BST) X-Virus-Scanned: Debian amavisd-new at homeinbox.net Received: from smtp.homeinbox.net ([127.0.0.1]) by localhost (server01.dev.local [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kHFcNTEgagfx for ; Tue, 16 Sep 2008 22:11:39 +0100 (BST) Received: from [192.168.0.4] (study01.dev.local [192.168.0.4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.homeinbox.net (Postfix) with ESMTPSA id 573AF1A4064 for ; Tue, 16 Sep 2008 22:11:39 +0100 (BST) Message-ID: <48D02108.5090407@apache.org> Date: Tue, 16 Sep 2008 22:11:36 +0100 From: Mark Thomas User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: JDBCRealm.getRoles causes NullPointerException References: <28C997BA-065F-4629-A251-D0B81C017A13@diglloyd.com> <48BEBDDD.9080503@christopherschultz.net> <91F66E25-FCC7-4B75-A0C6-915367267B23@diglloyd.com> <48D01E61.1070304@christopherschultz.net> In-Reply-To: <48D01E61.1070304@christopherschultz.net> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Christopher Schultz wrote: > Lloyd, > > DIGLLOYD INC wrote: >> I am using > >> I don't know what's required to use a DataSourceRealm (yet), but if it's >> a simple switch I'll try it. > > > Ooh, using DataSourceRealm is much better, because you can share the > JDBC Connection objects with the rest of your application. It apparently > also doesn't suffer from this bug. If you are already using a DataSource > in your application, just switch the className and then remove all the > connection information from your and replace it with the > required DataSource name (see the docs for specifics). > >> I am not sharing anything; the database is used for authentication >> only. I've declared the realm, but I don't think there's any pool >> involved. > > Right: JDBCRealm does not do any connection pooling AFAIK. It is better than that. It uses a single connection and lots of syncs :) Mark --------------------------------------------------------------------- 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