Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 62129 invoked from network); 4 May 2006 00:02:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 May 2006 00:02:46 -0000 Received: (qmail 63813 invoked by uid 500); 4 May 2006 00:02:44 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 63785 invoked by uid 500); 4 May 2006 00:02:44 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 63774 invoked by uid 99); 4 May 2006 00:02:44 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 May 2006 17:02:44 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 32.97.182.146 is neither permitted nor denied by domain of Stan.Bradbury@gmail.com) Received: from [32.97.182.146] (HELO e6.ny.us.ibm.com) (32.97.182.146) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 May 2006 17:02:43 -0700 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e6.ny.us.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k4402MJU027114 for ; Wed, 3 May 2006 20:02:22 -0400 Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215]) by d01relay04.pok.ibm.com (8.12.10/NCO/VER6.8) with ESMTP id k4402MMk232524 for ; Wed, 3 May 2006 20:02:22 -0400 Received: from d01av01.pok.ibm.com (loopback [127.0.0.1]) by d01av01.pok.ibm.com (8.12.11/8.13.3) with ESMTP id k4402MCk026162 for ; Wed, 3 May 2006 20:02:22 -0400 Received: from [127.0.0.1] (bradbury-lt1.usca.ibm.com [9.72.133.67]) by d01av01.pok.ibm.com (8.12.11/8.12.11) with ESMTP id k4402Lnj026120 for ; Wed, 3 May 2006 20:02:22 -0400 Message-ID: <44594488.6000008@gmail.com> Date: Wed, 03 May 2006 17:02:16 -0700 From: Stanley Bradbury User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Derby Discussion Subject: Request for comments on deciding between implementing embedded or client-server - (was: [WWD] Review of Final Chapters (5 and 6))] Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Starting New thread from the following : Craig L Russell wrote: > Hi Stan, > > When you get around to discussing architecture issues, you might make > sure you get feedback from the derby experts. My understanding is > that you can use the embedded Derby with both same-vm clients and > outside-vm clients by starting the network server when you start the > embedded database. > > Craig > > On May 3, 2006, at 2:21 PM, Stanley Bradbury wrote: > >> John Embretsen wrote: >> >>> === SNIP === >>> >>> >>> A client program is often created to allow database access and >>> updates from multiple computers on the network. >>> >>> >>> I don't think this statement is correct. It is not the "client >>> program" that allows access from multiple computers, it is the >>> server framework that does this. Would you like to rephrase? >>> >>> >>> >>> Derby's two architectures have caused confusion for some new Derby >>> users. They mistakenly think that embedded is a single user >>> configuration. Not true. The embedded driver supports multiple >>> simultaneous connections, performs locking and provides >>> performance, integrity and recoverability. >>> >>> >>> I think this is still confusing. I think you should add a comment >>> saying that the embedded driver must *not* be used to access the >>> same database from more than one JVM simultaneously. The multi- user >>> capabilities you are describing are (as far as I know) only valid >>> if all users use the same JVM/Derby system (i.e. the same instance >>> of the embedded driver), or if no users using different JVMs/Derby >>> systems access the same database at the same time. >>> >>> >> Hi John - >> Thanks again for your attention and feedback. Both suggestions are >> well taken. The sentence about the reason to create a client program >> is not well constructed and is inaccurate. I also see that it does >> not carry the message I intended and I will rephrase it. >> The other note is what I think of as an 'endorsement of the embedded >> architecture'. I included it to get people thinking / questioning >> along the lines you are, I have been successful in that regard. I >> think it an important endorsement to make because I have seen many >> people new to Derby avoid embedded without really thinking it >> through. It is my sense that the copious warnings about 'double >> booting' scares them away from embedded. After working with Derby >> for awhile these people see that the embedded driver fully supports >> their need and is a cleaner and faster implementation. I wanted to >> plant that seed of an idea. >> >> It is arguable that the topic does not belong in an introductory >> document at all because it deals with system architecture as well as >> the specific meaning of terms like 'single-user', 'client- server', >> 'networking' and 'interprocess communication'. Clearing up the >> confusion is out of the scope of this document. Your suggestion, >> however, has me thinking I should draft a short paper on the topic >> that can be referred to when questions like yours are raised and >> will begin working on this. Do you think this will help with the >> issue you raise? I hesitate to include the standard caution about >> access from multiple-JVMs as I perceive this as contributing to the >> mind-set that using the embedded driver is limiting. >> I would really like to hear your thoughts on this and maybe begin a >> new thread on the topic of when to use Network Server and when the >> embedded driver is sufficient. It seems there is enough in this >> topic for a lively discussion. >> >> >> >> > > Craig Russell > Architect, Sun Java Enterprise System http://java.sun.com/products/jdo > 408 276-5638 mailto:Craig.Russell@sun.com > P.S. A good JDO? O, Gasp! > Hi Craig - You are correct. There is what has been termed the 'embedded server' architecture as well but this is well out of the scope of a introductory document like WWD. However, since I hope to spin-off a thread discussing the various implementation architectures then 'embedded server' should be include. And thanks for the suggestion on including derby-dev - even though this is an implementation architecture issue (hence more germane to derby-user) I think there are derby-dev people who will want to participate. I have sent an invite to join this new thread to derby-dev (I think this topic is worth the cross-post).