7.9. JNDI lookups across servers

We now have the information we need to implement a client that can use JNDI to look up an EJB using a directory on a specified remote server. We simply need to specify an appropriate (vendor-specific) context factory and the URL that references the directory server. It is important to remember that if the name lookup is being done from within an EJB or a servlet, for example, the client should not have to worry about this. The server should initialize the naming system so that its defaults are correct. The issue should only ever arise when a standalone program is calling into an EJB server. In addition, the client is locating the directory, not the EJB. There is no J2EE-compliant way for the client to locate ...

Get Applied Enterprise JavaBeans™ Technology now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.