Overview | Executes the next pending remote request in a server application. |
Original class | CORBA module: BOA Class |
Exceptions | CORBA::SystemException |
Intended Usage
This method is intended to used by a server application to execute the next remote request received from a remote client, and send the response to the waiting client. Both blocking and non-blocking calls are supported. Requests are executed in first-in-first-out order only. This method should be called only after CORBA::BOA::impl_is_ready has been called successfully.
This method is an IBM extension to the CORBA specification.
Syntax
virtual CORBA::Status execute_next_request (CORBA::Flags waitFlag);
Input parameters
Return values
Example
#include "corba.h" void main(int argc, char* argv[]) { /* Initialize the server's ImplementationDef, ORB, and BOA: */ CORBA::ImplRepository_ptr implrep = new CORBA::ImplRepository; /* Assume dummyServer is already registered in the implementation repository */ CORBA::ImplementationDef_ptr imp = implrep->find_impldef_by_alias ("dummyServer"); extern static CORBA::ORB_ptr op; /* assume previously initialized */ extern static CORBA::BOA_ptr bp; /* assume previously initialized */ bp->impl_is_ready(imp); ... /* Execute the next pending remote request */ while(1) bp->execute_next_request(CORBA::BOA::SOMD_WAIT); ... }
#include "corba.h" void main(int argc, char* argv[]) { /* Initialize the server's ImplementationDef, ORB, and BOA: */ CORBA::ImplRepository_ptr implrep = new CORBA::ImplRepository; /* Assume dummyServer is already registered in the implementation repository */ CORBA::ImplementationDef_ptr imp = implrep->find_impldef_by_alias ("dummyServer"); static CORBA::ORB_ptr op = CORBA::ORB_init(argc, argv, "DSOM"); static CORBA::BOA_ptr bp = op->BOA_init(argc, argv, "DSOM_BOA"); bp->impl_is_ready(imp); ... /* Execute the next pending remote request */ while(1) bp->execute_next_request(CORBA::BOA::SOMD_WAIT); ... }