PreviousNext

Using Objects and Groups Together

Servers can associate object UUIDs with a group. Each server exports one or more object UUIDs (without exporting any binding information) to the directory service entry of the group. This involves specifying the NULL interface identifier to the export operation along with the list of object UUIDs. The object UUIDs reside in the directory service entry of the group. If a server stops offering an advertised object, a server must unexport its object UUID from the group entry in order to keep its object list up-to-date.

Clients use objects in a group entry as follows:

1. The client inquires for an object UUID from the group entry by calling the rpc_ns_entry_object_inq_{begin,next,done}( ) routines. This routine selects one object UUID at random and returns it to the client.

2. The client imports binding information for the returned object UUID (and the interface of the called remote procedure), specifying the group for the start of the search.

3. The import operation returns a binding handle that refers to the requested object UUID and binding information for a server that offers the corresponding object.

4. The client issues the remote procedure call by using that binding handle.

5. The server looks up the type of the requested object.

6. The server assigns the remote procedure call to the manager that implements the called remote procedure for that type of object.