Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 92928 invoked from network); 21 Sep 2004 12:28:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 21 Sep 2004 12:28:39 -0000 Received: (qmail 97409 invoked by uid 500); 21 Sep 2004 12:28:28 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 97363 invoked by uid 500); 21 Sep 2004 12:28:28 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 97349 invoked by uid 99); 21 Sep 2004 12:28:28 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [80.89.232.240] (HELO server.bizzdesign.nl) (80.89.232.240) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 21 Sep 2004 05:28:27 -0700 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: Database connection from custom Authenticator class x-mimeole: Produced By Microsoft Exchange V6.0.6487.1 Date: Tue, 21 Sep 2004 14:27:00 +0200 Message-ID: <5E091A68F794974CAF431CA31F5AF2CC189464@server.bizzdesign.nl> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Database connection from custom Authenticator class Thread-Index: AcSf1UKw050eCGC5Tlm1SjRixSvH2gAABTFA From: "Bart Molenkamp" To: X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Do a lookup with a service manager: manager.lookup(org.apache.avalon.excalibur.datasource.DataSourceComponen t.ROLE + "Selector"); Use the selector to select the data source, which is an instance of DataSourceComponent. Use getConnection() to get the database connection. Bart. > -----Original Message----- > From: Martin Rusnak [mailto:mafo@cyberspace.sk] > Sent: Tuesday, September 21, 2004 2:21 PM > To: users@cocoon.apache.org > Subject: Database connection from custom Authenticator class >=20 > Dear All, >=20 > I use my own authenticator class which implements interface: >=20 > org.apache.cocoon.webapps.authentication.components.Authenticator >=20 > I configured it as it is described in the documentation. Here is the > handler configuration: >=20 > > > > >=20 > I want to do custom database query to verify the user credentials, > but I dont know how to obtain the database connection from the pool. >=20 > Martin >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org