|
Novell exteNd Messaging Platform 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Initial References Service (IRS) is an API for setting and getting initial references. It allows you to publish local objects, as well as objects that will be visible via the bootstrap protocol to others. It also allows you to get the InitialReferences object for arbitrary server running on the network so that you can list or get its initial references.
The InitialReferencesService is locality constrained and can be retrieved
from the ORB using the ORB.resolve_initial_references
method
with "InitialReferencesService" as the argument.
// get the initial references object InitialReferencesService insService = (InitialReferencesService) orb. resolve_initial_references("InitialReferencesService"); InitialReferences initialRefs = insService.getInitialReferences( "godel.sssw.com", 2506);
Method Summary | |
void |
bind(String name,
Object object,
boolean local)
Bind an Object Refernce in the local InitialReferences Registry. |
InitialReferences |
getInitialReferences(Object object)
Get the InitialReferences interface for the given Object Reference. |
InitialReferences |
getInitialReferences(String iiopURL)
Get the InitialReferences object from the given server. |
InitialReferences |
getInitialReferences(String host,
int port)
Get the InitialReferences interface for the given host, port. |
Methods inherited from interface org.omg.CORBA.Object |
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override |
Method Detail |
public InitialReferences getInitialReferences(Object object)
public InitialReferences getInitialReferences(String iiopURL)
The host can be a host name or an IP address.
iiopURL
- URL for the server
public InitialReferences getInitialReferences(String host, int port)
public void bind(String name, Object object, boolean local)
name
- name of the objectobject
- the CORBA object to bind as an initial referencelocal
- if true then the binding can be obtained over IIOP
using the iiopboot and iioploc
protocols.
|
Novell exteNd Messaging Platform 5.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |