3.7.1.1.1 ServerBase Interface

The serverBase interface allows you to take full advantage of multithreading capabilities. You can create your own Server classes that inherit from the ServerBase class. This provides you with the following:

  • The create_servant_with_id() method to support implementations requiring knowledge of the target object during the creation of a servant
  • Support for user-supplied thread initialization and release handlers

The ServerBase class provides the same operations that were available in the Server class in earlier releases. The Server class inherits from the ServerBase class.

These methods can be used with single-threaded and multithreaded applications:

  • Server::create_servant()
  • Server::initialize()
  • Server::release()
  • Server::initialize()
  • Server::release()
  • ServerBase::create_servant_with_id()

These methods can be used with multithreaded server applications only:

  • ServerBase:: thread_initialize()
  • ServerBase::thread_release()

Note:

Programmers must provide definitions of the Server class methods. The ServerBase class methods have default implementations.