Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 53501 invoked from network); 3 Nov 2005 21:07:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Nov 2005 21:07:36 -0000 Received: (qmail 20518 invoked by uid 500); 3 Nov 2005 21:07:35 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 20291 invoked by uid 500); 3 Nov 2005 21:07:34 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 20271 invoked by uid 99); 3 Nov 2005 21:07:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2005 13:07:34 -0800 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=FROM_STARTS_WITH_NUMS,SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [24.222.0.30] (HELO smtpout.eastlink.ca) (24.222.0.30) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Nov 2005 13:07:29 -0800 Received: from ip04.eastlink.ca ([24.222.10.20]) by mta01.eastlink.ca (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTP id <0IPE00LYYDCOYB00@mta01.eastlink.ca> for derby-dev@db.apache.org; Thu, 03 Nov 2005 17:07:36 -0400 (AST) Received: from blk-222-80-77.eastlink.ca (HELO [24.222.80.77]) (24.222.80.77) by ip04.eastlink.ca with ESMTP; Thu, 03 Nov 2005 17:07:00 -0400 Date: Thu, 03 Nov 2005 17:06:40 -0400 From: Stephen Fitch <051933f@acadiau.ca> Subject: Re: [jira] Created: (DERBY-646) In-memory backend storage support In-reply-to: <7921d3e40511030705n74cb34a3ve9a24e4260724481@mail.gmail.com> To: derby-dev@db.apache.org Message-id: <436A7BE0.1040907@acadiau.ca> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 8BIT X-Accept-Language: en-us, en X-BrightmailFiltered: true X-Brightmail-Tracker: AAAAAA== References: <1527660289.1130261635642.JavaMail.jira@ajax.apache.org> <43639A55.1020208@sbcglobal.net> <43640D75.907@acadiau.ca> <43662830.9040306@acadiau.ca> <4367696C.2060209@acadiau.ca> <43691BDA.1090604@acadiau.ca> <7921d3e40511030705n74cb34a3ve9a24e4260724481@mail.gmail.com> User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050716) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I agree with Francois. Booting a database with a special client seems needlessly complicated when it can be externally specified outside of an application. I understand where you're coming from now though �ystein. This all started because I was trying to get alternate StorageFactorys working in the network client/server setup. I was looking at it from the perspective that anyone could be connected and doing anything anywhere on the network server at anytime. So, to just assume what StorageFactory is already active is the one you want when you dont specify one may cause unpredictable results in this case. Stephen Francois Orsini wrote: > I agree with Oystein on the principle but at the same time we need to be > consistent in the way we specify properties for a database before it is > booted. (booting properties) - like when booting an encrypted database > you would have to specify the 'bootPassword' property in the jdbc > connection URL. If an application is well-written, it should *not* > hardcode the connection URL but make it either a java property or have > it defined as part of a Datasource so that the application does not get > changed when the connection URL does. > > If we have a separate client to boot a database, IMHO it is going to > cause confusion and we would end-up having 2 different ways of booting a > database which I don't think it's right. > > Just my 0.02 cents... > > --francois > > On 11/3/05, *�ystein Gr�vlen* > wrote: > > >>>>> "SF" == Stephen Fitch <051933f@acadiau.ca > > writes: > > SF> �ystein Gr�vlen wrote: > >> (Connecting without specifying StorageFactory > >> should just use whatever has been booted.) > >> > SF> 3. If a StorageFactory exists and a connection > is attempted WITHOUT > SF> specifying a StorageFactory, and the StorageFactory in use > is NOT the > SF> default (DirStorageFactory), throw an Exception. I think > this would > SF> be preferred behavior because if you > connected with just > SF> jdbc:derby:dbname you would assume it would be using > the default > SF> StorageFactory. > > I do not agree on this. I would like to separate the concerns so that > an application does not need to be rewritten to work with different > storage factories. A special client can be used to boot the database > with the desired StorageFactory. > > -- > �ystein > >