Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 49424 invoked from network); 7 Nov 2006 07:44:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Nov 2006 07:44:59 -0000 Received: (qmail 63075 invoked by uid 500); 7 Nov 2006 07:45:09 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 63035 invoked by uid 500); 7 Nov 2006 07:45:09 -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 63026 invoked by uid 99); 7 Nov 2006 07:45:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Nov 2006 23:45:09 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Nov 2006 23:44:54 -0800 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GhLd9-0004SU-WF for derby-dev@db.apache.org; Mon, 06 Nov 2006 23:44:24 -0800 Message-ID: <7213870.post@talk.nabble.com> Date: Mon, 6 Nov 2006 23:44:23 -0800 (PST) From: Suraj Batuwana To: derby-dev@db.apache.org Subject: Re: Can't the embedded mode of a Derby database boot from a dual JVMs In-Reply-To: <45500BD5.6000606@apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: sbatuwana@virtusa.com References: <7212131.post@talk.nabble.com> <45500BD5.6000606@apache.org> X-Virus-Checked: Checked by ClamAV on apache.org I am not sure I got what you tring to say. What is embedded network server ? When I am creating the datasource in Websphere I have used the implementing class as "org.apache.derby.jdbc.EmbeddedConnectionPoolDataSource" implementing class for XA as "org.apache.derby.jdbc.EmbeddedXADataSource" dataSource helper class as "com.ibm.websphere.rsadapter.DerbyDataStoreHelper" and add derby.jar,derbynet.jar and derbytools.jar to the class path. "client application could use the client driver" Is this means to use the org.apache.derby.jdbc.ClientDriver ?, but it is a Derby Network Client driver. At the moment I am using org.apache.derby.jdbc.EmbeddedDriver as my client driver. -Suraj Daniel John Debrunner-2 wrote: > > Suraj Batuwana wrote: >> Hi All, >> I am a derby user but for my application I need some improved version of >> Derby. >> So I thought of writing to this group. >> >> For my application I need to access a single Derby database(using >> Embedded >> mode) from >> 1. Data source( In a Websphere 6.0.2.5) >> 2. Client application >> >> But when try to access the database it will throw exceptions like >> "Caused >> by: java.sql.SQLException: Failed to start database >> 'E:\source\database\TestDB'" from a one of the place. >> >> I know this happens because Embedded, a Derby database can be booted >> only >> from a single JVM, In my case , it is trying to boot from 2 JVMs(client >> JVM >> and server JVM), but when I used the Network mode there is no such an >> issue.Is there a way future Derby (Embedded mode) version can handle the >> above issue or It will remain as it is ? > > You can mix embedded and the network server, so in your case the > WebSphere could be running embedded with an embedded network server. > Then the client application could use the client driver. > > Dan. > > > -- View this message in context: http://www.nabble.com/Can%27t-the-embedded-mode-of-a-Derby-database-boot-from-a-dual-JVMs-tf2586621.html#a7213870 Sent from the Apache Derby Developers mailing list archive at Nabble.com.