What is JNDI? What is its basic use? When is it used?

前端 未结 9 2004
离开以前
离开以前 2020-11-30 16:21
  • What is JNDI?

  • What is its basic use?

  • When is it used?

9条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-30 16:33

    A naming service associates names with objects and finds objects based on their given names.(RMI registry is a good example of a naming service.) JNDI provides a common interface to many existing naming services, such as LDAP, DNS.

    Without JNDI, the location or access information of remote resources would have to be hard-coded in applications or made available in a configuration. Maintaining this information is quite tedious and error prone.

提交回复
热议问题