Name space federation
Federating name spaces involves binding contexts from one name space into another name space.
For example, assume that a name space, Name Space 1, contains a context under the name a/b. Also assume that a second name space, Name Space 2, contains a context under the name x/y. (See the following illustration.) If context x/y in Name Space 2 is bound into context a/b in Name Space 1 under the name f2, the two name spaces are federated. Binding f2 is a federated binding because the context associated with that binding comes from another name space. From Name Space 1, a lookup of the name a/b/f2 returns the context bound under the name x/y in Name Space 2. Furthermore, if context x/y contains an Enterprise JavaBeans (EJB) home bound under the name ejb1, the EJB home could be looked up from Name Space 1 with the lookup name a/b/f2/ejb1. Notice that the name crosses name spaces. This fact is transparent to the naming client.
In a WAS name space, one can create federated bindings with the following restrictions:
- Federation is limited to CosNaming name servers. A WebSphere Application Server name server is a Common Object Request Broker Architecture (CORBA) CosNaming implementation. We can create federated bindings to other CosNaming contexts. We cannot, for example, bind contexts from an LDAP name server implementation.
- If you use JNDI to federate the name space, use WebSphere Application Server's initial context factory to obtain the reference to the federated context. If you use some other initial context factory implementation, you either may not be able to create the binding, or the level of transparency may be reduced.
- A federated binding to a non-WebSphere Application Server naming context has the following functional limitations:
- JNDI operations are restricted to the use of CORBA objects. For example, one can look up EJB homes, but we cannot look up non-CORBA objects such as data sources.
- JNDI caching is not supported for non-WebSphere Application Server name spaces. This restriction affects the performance of lookup operations only.
- If security is enabled, WAS does not support federated bindings to non-WebSphereApplication Server name spaces.
- Do not federate two WAS stand-alone server name spaces. Incorrect behavior may result. If you want to federate WebSphere Application Server name spaces, you should use servers running under the Network Deployment or Enterprise packages of WebSphere Application Server.
See Also
Naming
Related Tasks
Configuring and viewing name space bindings
Using naming