Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 11471 invoked from network); 3 Feb 2011 08:15:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Feb 2011 08:15:21 -0000 Received: (qmail 86520 invoked by uid 500); 3 Feb 2011 08:15:21 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 86316 invoked by uid 500); 3 Feb 2011 08:15:18 -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 86309 invoked by uid 99); 3 Feb 2011 08:15:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Feb 2011 08:15:17 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of johnemb@gmail.com designates 74.125.82.172 as permitted sender) Received: from [74.125.82.172] (HELO mail-wy0-f172.google.com) (74.125.82.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Feb 2011 08:15:08 +0000 Received: by wyf23 with SMTP id 23so881145wyf.31 for ; Thu, 03 Feb 2011 00:14:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:reply-to:user-agent :mime-version:to:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=w8Ot/fjpTLJ/ikiWl4zpQJoPs8mEvyLzGWgxH3Vh330=; b=B1TdUXohjsEBG2Ofe/TibByZIHHVyF1skkSBlWeAOw4ZioTmSa81kiP05iUSljaYMM 9JEceJMbrS5ukl16mI2Eo55a09fDu7kK06Rtjjrdq1yr758LyIYbgZyhqlzyQcQ16c0/ AwrDx7fh4wKF4fYmMUYqRN4Zukfx6tViIQH/4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=JNkLbTyGQYLZz1zK9oOZW+rGpDRdd7MFQyq12DjNukbJPCNo9BHXLszG3Z1DoPSgu3 xUo+47dIF280ymPSfdqBRbJw7pwQjx9Z8WgtSPh3dmzPttdAp8SA1Z6kCTGKMfQhNWBk olSTSSoyUd+t/Kp7aRaughCiPOM82ksovk1kY= Received: by 10.227.156.21 with SMTP id u21mr4913663wbw.228.1296720887442; Thu, 03 Feb 2011 00:14:47 -0800 (PST) Received: from [129.159.112.187] (gmp-ea-fw-1b.sun.com [192.18.8.1]) by mx.google.com with ESMTPS id w25sm389378wbd.23.2011.02.03.00.14.45 (version=SSLv3 cipher=RC4-MD5); Thu, 03 Feb 2011 00:14:46 -0800 (PST) Message-ID: <4D4A63EF.8040403@gmail.com> Date: Thu, 03 Feb 2011 09:14:39 +0100 From: "John H. Embretsen" Reply-To: derby-dev@db.apache.org User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.1.9) Gecko/20100318 Lightning/1.0b1 Thunderbird/3.0.4 MIME-Version: 1.0 To: derby-dev@db.apache.org Subject: Re: Retrieving value of derby.drda.host from currently running system References: <9892EC6224DBC54598164D1F77721D754E6AC33F@IBIUSMBSB.ibi.com> In-Reply-To: <9892EC6224DBC54598164D1F77721D754E6AC33F@IBIUSMBSB.ibi.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org On 02/02/11 20:38, Logan, Douglas wrote: > Hello, > > I have the network client of Derby running as a service on a Windows > machine. From another machine, I�d like to connect to a Derby database > and query the value of �derby.drda.host� as is set within the > derby.properties file. [snip] > Does anyone have an idea on how I can get this value? You may want to check out Derby's JMX monitoring capabilities. The NetworkServerMBean has an attribute called "DrdaHost" that you can read in order to get the value of derby.drda.host that the server is currently using. (At least in theory, it has been a long time since I actually tried this). See http://db.apache.org/derby/javadoc/publishedapi/jdbc4/org/apache/derby/mbeans/drda/NetworkServerMBean.html#getDrdaHost%28%29 For more info on using JMX with Derby, see http://wiki.apache.org/db-derby/DerbyJMX http://wiki.apache.org/db-derby/DerbyJMXQuickStart http://db.apache.org/derby/javadoc/publishedapi/jdbc4/ Hope it helps, -- John