Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 63442 invoked from network); 20 Oct 2005 12:37:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Oct 2005 12:37:20 -0000 Received: (qmail 72026 invoked by uid 500); 20 Oct 2005 12:37:17 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 71981 invoked by uid 500); 20 Oct 2005 12:37:16 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 71963 invoked by uid 99); 20 Oct 2005 12:37:16 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Oct 2005 05:37:16 -0700 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=MAILTO_TO_SPAM_ADDR,RCVD_IN_SORBS_WEB X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [64.74.244.71] (HELO chi.mobile-health-diary.com) (64.74.244.71) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 20 Oct 2005 05:37:16 -0700 Received: (qmail 9786 invoked from network); 20 Oct 2005 12:37:21 -0000 Received: from blueice2n1.uk.ibm.com (HELO ?9.20.183.64?) (geir@195.212.29.75) by b014.internal.mobile-health-diary.com with SMTP; 20 Oct 2005 12:37:21 -0000 Mime-Version: 1.0 (Apple Message framework v734) In-Reply-To: <20051020111916.97151.qmail@web34913.mail.mud.yahoo.com> References: <20051020111916.97151.qmail@web34913.mail.mud.yahoo.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <7E5390E8-D7E5-4387-8938-B06B13B45C45@4quarters.com> Content-Transfer-Encoding: 7bit From: Geir Magnusson Jr Subject: Re: sorry for spamming the list -- retrieving the datasource Date: Thu, 20 Oct 2005 14:36:56 +0200 To: user@geronimo.apache.org X-Mailer: Apple Mail (2.734) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Tyler, Might I suggest you join us over on the dev list? :) geir On Oct 20, 2005, at 1:19 PM, wrote: > OK, I can verify users against the database using the > SQLLoginModule. I've created a servlet (my first one > ever!) that takes in the user information and stores > it into the same table of the database, and adds an > entry to the groups table, too. They can then go to > the login page, login and they even verify! Cool! Just > what I wanted! > > OK, so David Jencks told me about using: > >> DataSource ds = (DataSource)kernel.invoke(mcfName, >> "$getResource"); >> > > to get the datasource, essentially get the database > connection: > - Now how would I get a handle to the kernel from the > SQLLoginModule? > - Is it statically defined somewhere? > - What is mcfName supposed to be, and what is > $getResource supposed to be? > > This is my current status. I'd like to make my > application better by doing as David Jencks has > suggested, if at all possible. > > Thanks! > Tyler > > > > > __________________________________ > Yahoo! Mail - PC Magazine Editors' Choice 2005 > http://mail.yahoo.com > > -- Geir Magnusson Jr +1-203-665-6437 geir@optonline.net