Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
public ServerContext getServerContext( )
为 MobiLink 服务器返回 ServerContext。
此 MobiLink 服务器的 ServerContext。
以下示例显示如何获取 DBConnectionContext 的 ServerContext 实例并关闭服务器。
此示例假定您拥有一个名为 _cc 的 DBConnectionContext 实例。
// A method that uses an instance of the ServerContext to shut down the server public void shutDownServer() { ServerContext context = _cc.getServerContext(); context.shutdown(); }