Return-Path: X-Original-To: apmail-openjpa-users-archive@minotaur.apache.org Delivered-To: apmail-openjpa-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3B10FBB82 for ; Mon, 2 Jan 2012 23:24:03 +0000 (UTC) Received: (qmail 76130 invoked by uid 500); 2 Jan 2012 23:24:02 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 76072 invoked by uid 500); 2 Jan 2012 23:24:02 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 76064 invoked by uid 99); 2 Jan 2012 23:24:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jan 2012 23:24:02 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of pawel.veselov@gmail.com designates 209.85.212.46 as permitted sender) Received: from [209.85.212.46] (HELO mail-vw0-f46.google.com) (209.85.212.46) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jan 2012 23:23:55 +0000 Received: by vbbfc26 with SMTP id fc26so17107222vbb.33 for ; Mon, 02 Jan 2012 15:23:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=nB19tzp3xr3yApZS66QV8R/Bwebn7lUfJKRYdfU/gTc=; b=d+bzD+77WpuGUkek8ZhbCKAtuOQJAT5w4exy5tu010wS4Hm7cowuODPWlhTODm5Knj VNH87OlZEVL9SfnpBzwRTSQqm0fwNArk/+lwuAwWn3Q6DWvq1VHPrskBPzmTN4sQhzKQ jiNAQmchVX+m4GKh+eCgf6kV+VxTBnH9a0Sr4= Received: by 10.52.22.138 with SMTP id d10mr15900368vdf.64.1325546614179; Mon, 02 Jan 2012 15:23:34 -0800 (PST) MIME-Version: 1.0 Received: by 10.52.114.137 with HTTP; Mon, 2 Jan 2012 15:23:13 -0800 (PST) In-Reply-To: <1325540472360-7144915.post@n2.nabble.com> References: <1325540472360-7144915.post@n2.nabble.com> From: Pawel Veselov Date: Mon, 2 Jan 2012 15:23:13 -0800 Message-ID: Subject: Re: changing specific openjpa.jdbc.DBDictionary To: users@openjpa.apache.org Content-Type: multipart/alternative; boundary=20cf307d072c1247c804b593df85 X-Virus-Checked: Checked by ClamAV on apache.org --20cf307d072c1247c804b593df85 Content-Type: text/plain; charset=UTF-8 On Mon, Jan 2, 2012 at 1:41 PM, Pinaki Poddar wrote: > Nope, sorry. > For a different database (with a different URL), you will require a > different persistence.xml anyway. > > I disagree. There is nothing in persistence.xml that requires to hardcode the database URL. It's actually quite a bad taste to do so (IMHO). Persistence.xml supposedly points to the JNDI name that will resolve to a data source, which is configured outside of application. It would be nice if it were to be possible to specify properties for a specific dictionary. The same way OpenJPA supports multiple databases, a portable J2EE application should be able to too :) --20cf307d072c1247c804b593df85--