Return-Path: X-Original-To: apmail-aries-user-archive@www.apache.org Delivered-To: apmail-aries-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 591E96F2D for ; Mon, 20 Jun 2011 06:56:58 +0000 (UTC) Received: (qmail 20442 invoked by uid 500); 20 Jun 2011 06:56:58 -0000 Delivered-To: apmail-aries-user-archive@aries.apache.org Received: (qmail 20369 invoked by uid 500); 20 Jun 2011 06:56:55 -0000 Mailing-List: contact user-help@aries.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@aries.apache.org Delivered-To: mailing list user@aries.apache.org Received: (qmail 20354 invoked by uid 99); 20 Jun 2011 06:56:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jun 2011 06:56:54 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of marcel.hanser.work@googlemail.com designates 74.125.82.178 as permitted sender) Received: from [74.125.82.178] (HELO mail-wy0-f178.google.com) (74.125.82.178) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jun 2011 06:56:48 +0000 Received: by wya21 with SMTP id 21so1679233wya.23 for ; Sun, 19 Jun 2011 23:56:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=IDfVS570ilWISEVf2tKGh2KyjQhj8tyhk3RL0p4Pzfc=; b=G9Na8RSS7rluNbv+eUYdXSooOqj86pBuyvQDuUiUKBeu7O4hKUdgRC8mLAHNOkzriK YncSHBWPXwd9avQfNEuy6EDtJt22E1c6WIQcU8tqAiulAY79cziTM/yuEl2r9/QhrE+V ccUfqB6OYTq1LTryanyakxWSTITtvhksdmQUA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=AG6gbCb2/tDI0m2lh8n1pGYXP9lyP4/a1p79JvEVwxISVm5ZldsLfWxaYtucFe0hXV v+OTeaF8KM/PzNdQZNHxfU59GN6mTlqCUf7DGtCsWv5icTOvS0ruVFTl3LVx0PmGV8Rl ECEhTaURTbfq/kqZGFzcTX1PrTbHpJJ2i7ReA= MIME-Version: 1.0 Received: by 10.216.67.72 with SMTP id i50mr1627705wed.21.1308552987953; Sun, 19 Jun 2011 23:56:27 -0700 (PDT) Received: by 10.216.51.5 with HTTP; Sun, 19 Jun 2011 23:56:27 -0700 (PDT) Date: Mon, 20 Jun 2011 08:56:27 +0200 Message-ID: Subject: Attaching jpa persistence.xml via fragments to a persistence bundle From: Marcel Hanser To: user@aries.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi, i would like to attach a persistence.xml, or more percise parts of it, to my jpa persistence bundle, since the concrete provider and DBMS configuration should be chooseable without modify the persistence bundle. I scanned a the aries jpa code and found the org.apache.aries.jpa.container.ManagedPersistenceUnitInfoFactory plug-in point and also the org.apache.aries.jpa.container.impl.PersistenceBundleHelper.locateFile(Bundle, String) method. And now im wondering why using bundle.getEntry(String) instead of bundle.getResource(String). Since fragments are not scanned when using bundle.getEntry(String). So is there already a way for doing that and i just missed it? Thanks in advance. Marcel Hanser