db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Knut Anders Hatlen <Knut.Hat...@Sun.COM>
Subject Re: derby.drda.startNetworkServer property
Date Wed, 21 Sep 2005 06:38:30 GMT
wolfgang127us@yahoo.co.jp writes:

> Hi Knut,
>
> Thanks for your quick response.
>
> Then, how can I verify whether Derby, started using
> derby.drda.startNetworkServer=true and org.apache.derby.jdbc.EmbeddedDriver, 
> is ready or not to accept clients like NetworkServerControl#ping() ?

Haven't tested, but I think the following should work:

NetworkServerControl nsc = new NetworkServerControl(address, port);
try {
    nsc.ping();
    System.out.println("started");
} catch (Exception e) {
    System.out.println("not started");
}

-- 
Knut Anders


Mime
View raw message