Return-Path: Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: (qmail 71501 invoked from network); 12 Feb 2010 11:48:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Feb 2010 11:48:13 -0000 Received: (qmail 13525 invoked by uid 500); 12 Feb 2010 11:48:12 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 13452 invoked by uid 500); 12 Feb 2010 11:48:12 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 13442 invoked by uid 99); 12 Feb 2010 11:48:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 12 Feb 2010 11:48:12 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.78.103.231] (HELO vorsha.objectstyle.org) (208.78.103.231) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 12 Feb 2010 11:48:04 +0000 Received: (qmail 3475 invoked from network); 12 Feb 2010 11:47:43 -0000 Received: from unknown (HELO ?IPv6:::1?) (127.0.0.1) by localhost with SMTP; 12 Feb 2010 11:47:43 -0000 Message-Id: From: Andrus Adamchik To: user@cayenne.apache.org In-Reply-To: <995b0fb01002111650k1eb6d76dh7b011bac33c098f7@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: Cayenne Programmatic Configuration Date: Fri, 12 Feb 2010 13:47:42 +0200 References: <995b0fb01002111650k1eb6d76dh7b011bac33c098f7@mail.gmail.com> X-Mailer: Apple Mail (2.936) X-Virus-Checked: Checked by ClamAV on apache.org I suggest that while on 3.0 you keep using 'setDataSourceFactory' (I think I will go as far as removing the deprecated note from the setter in 3.0). > Perhaps the best way to set the Datasource via Spring! You can if you want to, this can still be based on 'setDataSourceFactory' call. Andrus On Feb 12, 2010, at 2:50 AM, Gary Jarrel wrote: > Hi All > > I noticed that the in 3.0 onwards Configuration.setDataSourceFactory > has > been depricated. What are some of the best practices to configure > Cayenne > programmaticly? > > Perhaps the best way to set the Datasource via Spring! > > Thank you > > Gary