Re: When a client performs a lookup for an object how does he know the jndi name of the object?
Monday, February 21, 2005 08:58 AM
No, the client does not have access to the deployment descriptors on the server (or at least shouldn't have access). There are 2 ways the client knows the JNDI name:
1. The client has been given the JNDI information from the 3rd party.
2. The client knows the IP address of the 3rd party and uses one of many JNDI tools to determine a list of services and selects the one.
The thing to note here is that JNDI is not the equivalent of the UDDI registry in web servies whereas the client can "discover" the service. The client must have prior knowledge of the JNDI information in order to access the object.