2-25
DSOM Framework Reference
impl_is_ready Method
Purpose
Indicates that the implementation is ready to process requests.
IDL Syntax
void impl_is_ready (
in ImplementationDef impl);
Description
The impl_is_ready method Indicates that the implementation is ready to process requests.
Parameters
receiver A pointer to a BOA (SOMOA) object for the server.
env A pointer to the Environment structure for the method caller.
impl A pointer to the ImplementationDef object indicating which implementation
is ready.
Example
#include <somd.h> /* needed by all servers */
main(int argc, char **argv)
{
Environment ev;
SOM_InitEnvironment(&ev);
/* Initialize the DSOM run–time environment */
SOMD_Init(&ev);
/* Retrieve its ImplementationDef from the Implementation
Repository by passing its implementation ID as a key */
SOMD_ImplDefObject =
_find_impldef(SOMD_ImplRepObject, &ev, argv[1]);
/* Tell DSOM that the server is ready to process requests */
_impl_is_ready(SOMD_SOMOAObject, &ev, SOMD_ImplDefObject);
...
}
Original Class
BOA
Related Information
Methods: deactivate_impl, activate_impl_failed, obj_is_ready, execute_request_loop,
execute_next_request
Kommentare zu diesen Handbüchern