Return-Path: X-Original-To: apmail-myfaces-dev-archive@www.apache.org Delivered-To: apmail-myfaces-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 5786F736E for ; Tue, 1 Nov 2011 16:45:54 +0000 (UTC) Received: (qmail 8777 invoked by uid 500); 1 Nov 2011 16:45:53 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 8713 invoked by uid 500); 1 Nov 2011 16:45:53 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 8645 invoked by uid 99); 1 Nov 2011 16:45:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2011 16:45:53 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Nov 2011 16:45:52 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B9DCB32CD8D for ; Tue, 1 Nov 2011 16:45:32 +0000 (UTC) Date: Tue, 1 Nov 2011 16:45:32 +0000 (UTC) From: "Mark Struberg (Created) (JIRA)" To: dev@myfaces.apache.org Message-ID: <1023507920.46330.1320165932762.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (EXTCDI-236) add ConfigurableDataSource MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 add ConfigurableDataSource -------------------------- Key: EXTCDI-236 URL: https://issues.apache.org/jira/browse/EXTCDI-236 Project: MyFaces CODI Issue Type: New Feature Components: JEE-JPA1-Module Affects Versions: 1.0.1 Reporter: Mark Struberg Assignee: Mark Struberg configuring the database connection in JPA persistence.xml is always ever a pain. Either you add you maintain multiple persistence.xml or you use JNDI for getting the underlying database connection for different Servers and ProjectStages. The solution is to introduce an own DataSource which can be configured in persistence.xml. This 'ConfigurableDataSource' knows itself where to get the settings from. In our case this will get configured via standard CDI mechanisms, e.g. @ProjectStageActivated and @ExpressionActivated. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira