![]() |
When a CORBA server is started, it initializes itself then calls the method execute_request_loop() specifying a blocking mode (::CORBA::BOA::SOMD_WAIT). This puts the server into an infinite wait loop, during which the ORB can transmit requests to and from the servant object hosted bythe server. Because the execute_request_loop() method never returns, the server can never terminate unless it is forced to. A server shutdown object makes it possible to terminate the server gracefully. The server creates a server shutdown object, giving it a string that is used to shutdown the server.
To stop the server, run the WSStopServer program (provided with WebSphere Application Server enterprise services), which tells the ORB to shut the server down. WSStopServer has the following command syntax:
WSStopServer server_alias
Where server_alias is the server alias (defined in the Implementation Respository).