Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 54360 invoked from network); 2 Jun 2010 13:25:54 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Jun 2010 13:25:54 -0000 Received: (qmail 96534 invoked by uid 500); 2 Jun 2010 13:25:50 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 96478 invoked by uid 500); 2 Jun 2010 13:25:50 -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 96469 invoked by uid 99); 2 Jun 2010 13:25:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jun 2010 13:25:50 +0000 X-ASF-Spam-Status: No, hits=-0.8 required=10.0 tests=AWL,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [76.96.62.48] (HELO qmta05.westchester.pa.mail.comcast.net) (76.96.62.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Jun 2010 13:25:44 +0000 Received: from omta05.westchester.pa.mail.comcast.net ([76.96.62.43]) by qmta05.westchester.pa.mail.comcast.net with comcast id QynX1e0010vyq2s551RQzz; Wed, 02 Jun 2010 13:25:24 +0000 Received: from [192.168.1.202] ([69.143.124.247]) by omta05.westchester.pa.mail.comcast.net with comcast id R1RP1e00S5LNqyD3R1RPXc; Wed, 02 Jun 2010 13:25:24 +0000 Message-ID: <4C065BC2.8010002@christopherschultz.net> Date: Wed, 02 Jun 2010 09:25:22 -0400 From: Christopher Schultz User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: [OT] Re: problems at thejarbar.org References: <170009.72609.qm@web56603.mail.re3.yahoo.com> In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Yucca Nel, On 6/2/2010 8:27 PM, yuccanel@live.co.za wrote: > There was a question as to why I am using a realm and application > based realm and I have no idea howcome people think I am not using only > tomcat realm? It's not that we think you're using a non-Tomcat Realm: it's that we think you're using the /wrong/ Tomcat Realm. See... JDBCRealm uses its own set of credentials to connect to the database and uses a single Connection object, requiring lots of synchronization to protect that shared resource. Basically, it's not appropriate for production because of those two facts. Instead, we're suggesting that you set up a DataSource and then use a DataSourceRealm which will use a connection-per-authentication-attempt and is much more high-performance. > hibernate is not doing any security related stuff other than persisiting > new users and thier credentials to mysql. Tomcat is only managing > security and hibernate everything else... Hope this clears up > discussion. :) Is hibernate using a Tomcat-created DataSource? If not, you're making your life harder by placing database connection configuration in several places instead of just one. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkwGW8IACgkQ9CaO5/Lv0PALlwCgwejhODA7bB92UMEbgpIPGb8R 3RoAn3BXDzQWZ5497EKzaSP1W84Mtqu2 =zCtF -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org