Obtaining Network Server properties by using the getCurrent Properties method

The getCurrentProperties method is a Java method that you can use to obtain information about the Network Server. It returns a Properties object with the value of all the Network Server properties as they are currently set.

The signature of this method is:
Properties getCurrentProperties();
For example:
NetworkServerControl server = new NetworkServerControl();
Properties p = server.getCurrentProperties();
p.list(System.out);
System.out.println(p.getProperty("derby.drda.host"));

As shown in the previous example, you can look up the current properties and then work with individual properties if needed by using various APIs on the Properties class. You can also print out all the properties by using the Properties.list() method.

See Managing the Derby Network Server remotely by using the servlet interface for information about obtaining system information using the servlet interface.

Related tasks
Obtaining Network Server runtime information