The following example shows you how to get the ServerContext instance for a DBConnectionContext and shut down the server.
Note
This example assumes you have a DBConnectionContext instance called _cc.
// A method that uses an instance of the ServerContext to shut down the server
public void shutDownServer() {
ServerContext context = _cc.getServerContext();
context.shutdown();
}