Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 29335 invoked from network); 29 Oct 2009 12:25:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Oct 2009 12:25:58 -0000 Received: (qmail 67655 invoked by uid 500); 29 Oct 2009 12:25:58 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 67622 invoked by uid 500); 29 Oct 2009 12:25:58 -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 67614 invoked by uid 99); 29 Oct 2009 12:25:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Oct 2009 12:25:58 +0000 X-ASF-Spam-Status: No, hits=-6.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [192.18.6.21] (HELO gmp-eb-inf-1.sun.com) (192.18.6.21) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Oct 2009 12:25:55 +0000 Received: from fe-emea-10.sun.com (gmp-eb-lb-1-fe1.eu.sun.com [192.18.6.7] (may be forged)) by gmp-eb-inf-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n9TCPU7V010998 for ; Thu, 29 Oct 2009 12:25:30 GMT MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; CHARSET=US-ASCII; format=flowed Received: from conversion-daemon.fe-emea-10.sun.com by fe-emea-10.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) id <0KS900C00YYI1W00@fe-emea-10.sun.com> for derby-user@db.apache.org; Thu, 29 Oct 2009 12:25:20 +0000 (GMT) Received: from [129.159.139.223] ([unknown] [129.159.139.223]) by fe-emea-10.sun.com (Sun Java(tm) System Messaging Server 7u2-7.04 64bit (built Jul 2 2009)) with ESMTPSA id <0KS900F5NZTS7MF0@fe-emea-10.sun.com> for derby-user@db.apache.org; Thu, 29 Oct 2009 12:25:05 +0000 (GMT) Date: Thu, 29 Oct 2009 13:22:48 +0100 From: Kristian Waagan Subject: Re: Problem with Derby Embedded Server In-reply-to: <26111840.post@talk.nabble.com> Sender: Kristian.Waagan@Sun.COM To: Derby Discussion Message-id: <4AE98918.20901@Sun.COM> References: <26109306.post@talk.nabble.com> <26111840.post@talk.nabble.com> User-Agent: Thunderbird 2.0.0.22 (X11/20090818) balcerman wrote: > OK I did it :D > > > the problem is that setting the property > derby.drda.startNetworkServer=true > > doesnt work to me, but when I added the following lines to my application: > > import org.apache.derby.drda.NetworkServerControl; > import java.net.InetAddress; > NetworkServerControl server = new NetworkServerControl > (InetAddress.getByName("localhost"),1527); > server.start(null); > Hi, Good to see that you made it work :) I believe it should work by setting the properties as well. Did you specify the property (or properties) in the derby.properties file, or as Java system properties (either on the command line or using System.setProperty *before* the JDBC driver is loaded)? If you used the file, maybe it was located in the wrong place such that the properties in it didn't get loaded? Regards, -- Kristian > > the Derby started to work as embedded server (which means that it is started > by the application that contains these lines above and stopped while this > application disconnects from Derby) but additionally you can connect to it > via the port 1527, as in Network Server case :) > > So the problem is solved to me. >