Return-Path: X-Original-To: apmail-aries-dev-archive@www.apache.org Delivered-To: apmail-aries-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 35DA21151A for ; Thu, 12 Jun 2014 11:43:07 +0000 (UTC) Received: (qmail 14694 invoked by uid 500); 12 Jun 2014 11:43:02 -0000 Delivered-To: apmail-aries-dev-archive@aries.apache.org Received: (qmail 14651 invoked by uid 500); 12 Jun 2014 11:43:02 -0000 Mailing-List: contact dev-help@aries.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aries.apache.org Delivered-To: mailing list dev@aries.apache.org Received: (qmail 14640 invoked by uid 99); 12 Jun 2014 11:43:02 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jun 2014 11:43:02 +0000 Date: Thu, 12 Jun 2014 11:43:02 +0000 (UTC) From: =?utf-8?Q?Jean-Baptiste_Onofr=C3=A9_=28JIRA=29?= To: dev@aries.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ARIES-1208) Forward all javax.persistence.jdbc.* properties to the DataSourceFactory MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ARIES-1208?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1402= 9063#comment-14029063 ]=20 Jean-Baptiste Onofr=C3=A9 commented on ARIES-1208: --------------------------------------------- I agree. > Forward all javax.persistence.jdbc.* properties to the DataSourceFactory > ------------------------------------------------------------------------ > > Key: ARIES-1208 > URL: https://issues.apache.org/jira/browse/ARIES-1208 > Project: Aries > Issue Type: Improvement > Components: JPA > Reporter: Christian Schneider > Assignee: Christian Schneider > > It is already possible to refer to a DataSource in persistence.xml by def= ining > javax.persistence.jdbc.driver instead of a jndi DataSource. > We implement this by looking for a DataSourceFactory service.=20 > The problem is that we only foward three properties to the factory: > url, user and password. > So this is not usable for the derby DataSourceFactory provided by ops4j. = This DataSource requires a DatabaseName and does not work with url, user an= d password. > So I would like to change the code in our DataSourceFactoryDataSource to = accept a complete Properties object. This object will be filled from the pe= rsistence unit by copying all properties that start with javax.persistence.= jdbc and remove this prefix.=20 > So this will allow to do any configuration the DataSourceFactory requires= .=20 > I hope I am not misusing the javax.persistence.jdbc.* property namespace.= So if this is not a good idea please speak up. -- This message was sent by Atlassian JIRA (v6.2#6252)