Tomcat深入学习笔记(二):JNDI
关键字: tomcat & jndiJNDI Resources HOW-TO:
JNDI现在一想起JNDI就知道利用它可以配置DataSource,别的还能开啥?不知道了.它本质上是干啥的?DataSource的什么特性与JDNI暗合后造成了现在我这样一提JNDI就只能想到DataSource?
JNDI的产生背景?发展过程?它的利与弊?有没有别的什么替代物?好像跟JDBC有点关系.
The JNDI architecture consists of an API (Application Programming Interface) and an SPI (Service Provider Interface). Java applications use this API to access a variety of naming and directory services. The SPI enables a variety of naming and directory services to be plugged in transparently, allowing the Java application using the API of the JNDI technology to access their services.
看JNDI的API时看到javax.naming.ldap,(Lightweight Directory Access Protocol )也想起来现在项目中的用到了这个ldap.
The JNDI SPI is designed to be used by arbitrary service providers including directory service providers. This enables a variety of directory and naming services to be plugged in transparently to the Java application (which uses only the JNDI API).
A directory object provides an association between attributes and values. Thus, a directory service enables information to be organized in a hierarchical manner to provide a mapping between human understandable names and directory objects.
Naming -- The Foundation:(guide/jndi/spec/jndi/jndi.4.html)
A fundamental facility in any computing system is the naming service - the means by which names are associated with objects, and by which objects are found given their names. In traditional systems, the naming service is seldom a separate service.
Meaningful names can be composed using useful arrangements of naming services reflecting these relationships.
The primary function of a naming system is to map names to objects.
There can be multiple naming systems that can be represented by a composite namespace.
在JavaWorld上找了一个链接http://www.javaworld.com/javaworld/jw-01-2000/jw-01-howto.html,仔细看了看,很好,现在就很是需要这样的介绍性文章,结合实例,深入浅出,又很形象.
评论
需要启动么?还是把Jar包放在某个特定位置就可以了.
发表评论
- 浏览: 29428 次
- 性别:

- 来自: 北京

- 详细资料
搜索本博客
链接
最新评论
-
对浏览器中的context menu ...
Drag dropper
-- by whqida -
Spring中的load-time weav ...
没啥,有些class不在spring的管理之中,通过 load-time wea ...
-- by ray_linn -
对浏览器中的context menu ...
别搞笑了, 这是浏览器的 Context Menu? 这只不过是响应了鼠标右击事 ...
-- by fcoffee -
IE tab在Firefox里开发时 ...
firebug只能用于ff, 并不能用于ff下的ietab, 原因显而易见.如果 ...
-- by fcoffee -
IE tab在Firefox里开发时 ...
还网告知 该如何操作呢 我还是要到ie下再调试啊
-- by jianfeng008cn






评论排行榜