A CORBA naming service holds CORBA object references.
A CORBA server puts references to CORBA objects inside a naming service so that clients can query the naming service and obtain the object reference, then call operations on the CORBA objects. Typically, a client queries the naming service once, then caches the object reference.
A CORBARequest node is a CORBA client; therefore, when it is deployed, the node contacts a naming service to obtain an object reference. If the object reference is not in the naming service at deployment time, or the naming service that is configured on the node is unavailable, the CORBARequest node issues a warning, and attempts to contact the naming service to get the object reference when it receives a message. If an object reference cannot be acquired from the naming service when the node receives a message, an error is issued. You can specify the location of an object reference by using the properties on the CORBARequest node, or by using the CORBA configurable service. For more information, see CORBARequest node and Defining where the CORBARequest node gets the object reference.
Each object in a naming service has a unique name. You must use this name when you configure the Object reference name property on the CORBARequest node.
Naming services are typically arranged in a hierarchy so that names can be given context or scope. The initial naming context is at the top of the hierarchy. Object references can be added to the initial naming context, and additional contexts can exist below it. The number of levels in the hierarchy is unlimited.
Object references and contexts can be assigned a kind to facilitate grouping. The kind is appended to the context in the format context.kind. If you are using IBM® Integration Bus to access an external CORBA application, you need to know the location of the naming service and the name of the object reference in the naming service. The following example shows how to determine the exact string representation of the name.
Object | Object reference name |
---|---|
Factory | Factory |
Bank | Asia.region/Bank.object |
Asia.region/Mail.object | |
StockExchange | America.region/StrockExchange.object |
Market | Europe.region/Market.object |
Calculator | Europe.region/England.country/Calculator |