Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.0 » MobiLink - Server Administration » MobiLink Server APIs » Writing synchronization scripts in Java » MobiLink server API for Java Reference » DBConnectionContext interface

 

getServerContext method

Syntax
public ServerContext getServerContext( )
Remarks

Returns the ServerContext for this MobiLink server.

Returns

The ServerContext for this MobiLink server.

See also
Example

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();
}

// ...