Return-Path: Delivered-To: apmail-openejb-dev-archive@www.apache.org Received: (qmail 99316 invoked from network); 16 Nov 2009 13:22:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Nov 2009 13:22:18 -0000 Received: (qmail 21420 invoked by uid 500); 16 Nov 2009 13:22:18 -0000 Delivered-To: apmail-openejb-dev-archive@openejb.apache.org Received: (qmail 21362 invoked by uid 500); 16 Nov 2009 13:22:17 -0000 Mailing-List: contact dev-help@openejb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openejb.apache.org Delivered-To: mailing list dev@openejb.apache.org Received: (qmail 21352 invoked by uid 99); 16 Nov 2009 13:22:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Nov 2009 13:22:17 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lfpg.dev@gmail.com designates 209.85.220.220 as permitted sender) Received: from [209.85.220.220] (HELO mail-fx0-f220.google.com) (209.85.220.220) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Nov 2009 13:22:09 +0000 Received: by fxm20 with SMTP id 20so5924929fxm.35 for ; Mon, 16 Nov 2009 05:21:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=JcJl58S9EC5+gpBB3gnzWuG3ryGbCNoCubXzDAKMtcI=; b=kgtGEgtI6Sm24n15tCF4g1ZSIX6Mas0EAp2xy0yU0qXYbIgCMazkc0KZiROJpluFg2 /om/zP5f+nJXU0JTY93FSrZVmhzepLgurj/GUf+Jtw+DMOssL/oaUn/ZIHjUgWiMMIRW 84feBJLRFJp/+07tCKc3LoG4cnxAy8YdK8qlE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=fed9Z3R6x+rclqe5i8q7GRGl8iQtruZIYlPuN9ceBE4McWs30AAbPSRURBWbpTHA6+ j/BNEDNHXZLhh+1+bxIaslRiKhraqRiIBK8xvqHG4yTTrnl3w6MjKu3lW1GaLJ4hUAx2 YsZbue92+4egdRxKhvZSL+/UumaUlaV2gNjFo= MIME-Version: 1.0 Received: by 10.204.25.71 with SMTP id y7mr3896210bkb.67.1258377707959; Mon, 16 Nov 2009 05:21:47 -0800 (PST) In-Reply-To: References: <200909301305.39344.lfpg.dev@gmail.com> <06FCEC26-07F1-472B-B485-2B0F7264880C@visi.com> <200910130945.22770.lfpg.dev@gmail.com> Date: Mon, 16 Nov 2009 11:21:47 -0200 Message-ID: Subject: Re: Resolve datasource from the application name From: Luis Fernando Planella Gonzalez To: dev@openejb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Well, assuming that my assumptions are right, I've patched AutoConfig to use the first WebModule's root context name as a guess to the DataSource name. I've attached the patch, as well as complete files for AutoConfig and AutoConfigPersistenceUnitsTest in https://issues.apache.org/jira/browse/OPENEJB-1027 As this is my first code contribution to OpenEJB. So, please, correct me if I did anything wrong... Feedbacks are appreciated. -- Luis Fernando Planella Gonzalez