Return-Path: Delivered-To: apmail-cayenne-commits-archive@www.apache.org Received: (qmail 78319 invoked from network); 1 Mar 2010 07:47:09 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Mar 2010 07:47:09 -0000 Received: (qmail 30235 invoked by uid 500); 28 Feb 2010 13:00:29 -0000 Delivered-To: apmail-cayenne-commits-archive@cayenne.apache.org Received: (qmail 30212 invoked by uid 500); 28 Feb 2010 13:00:29 -0000 Mailing-List: contact commits-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list commits@cayenne.apache.org Received: (qmail 30203 invoked by uid 99); 28 Feb 2010 13:00:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Feb 2010 13:00:29 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Feb 2010 13:00:27 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C737E234C48D for ; Sun, 28 Feb 2010 13:00:05 +0000 (UTC) Message-ID: <1464261995.19801267362005814.JavaMail.jira@brutus.apache.org> Date: Sun, 28 Feb 2010 13:00:05 +0000 (UTC) From: "Andrus Adamchik (JIRA)" To: commits@cayenne.apache.org Subject: [jira] Closed: (CAY-1394) DI-based replacement for JNDI hack In-Reply-To: <374728181.419041266747027869.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CAY-1394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrus Adamchik closed CAY-1394. -------------------------------- Resolution: Fixed Fix Version/s: 3.1M1 > DI-based replacement for JNDI hack > ---------------------------------- > > Key: CAY-1394 > URL: https://issues.apache.org/jira/browse/CAY-1394 > Project: Cayenne > Issue Type: Task > Components: Core Library > Affects Versions: 3.1M1 > Reporter: Andrus Adamchik > Assignee: Andrus Adamchik > Fix For: 3.1M1 > > > Cayenne up to 3.0 supported emulation of JNDI DataSource for local work based on the Modeler preferences (aka "JNDI hack"): > http://cayenne.apache.org/doc30/using-jndi.html > In 3.1, Modeler preferences are implemented differently, using "java.util.prefs", and instead of porting the JNDI hack to the new mechanism, I will provide a more sensible replacement, based on JVM startup properties. The name of the new DS factory will be PropertyDataSourceFactory. PropertyDataSourceFactory will be used to override not only JNDI DataSources, but any other DataSource configured in the Modeler. > The property names will be the same as the properties used in unit testing: > http://cayenne.apache.org/running-unit-tests.html > But with a few changes: > * we'll support dot notation, not capitalized notation. Dot notation is traditional Java property naming approach, while capitalized notation was introduced to be able to run unit tests on Hudson that breaks on dot notation. > * property names will allow an (optional) suffix with . to make sure multiple connections can be specified per JVM. > * cayenne.jdbc.driver[.domain_name.node_name] > * cayenne.jdbc.url[.domain_name.node_name] > * cayenne.adapter[.domain_name.node_name] > * cayenne.jdbc.username[.domain_name.node_name] > * cayenne.jdbc.password[.domain_name.node_name] > * cayenne.jdbc.min.connections[.domain_name.node_name] > * cayenne.jdbc.max.conections[.domain_name.node_name] > At the minimum, cayenne.jdbc.url and cayenne.jdbc.driver must be present for the overrides to kick in. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.