When a client performs a lookup for an object how does he know the jndi name of the object?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   dinesh_yenupuri
Posted On:   Monday, February 21, 2005 07:01 AM

When a client performs a lookup for an object how does he know the jndi name of the object? Does he have access to the deployment descriptors on the server?

Re: When a client performs a lookup for an object how does he know the jndi name of the object?

Posted By:   Shaun_Childers  
Posted On:   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.
About | Sitemap | Contact