复旦大学:《高级Web技术》3-应用web_3-J2EE-组件-服务-通讯_教学课件PPT_Java Naming and Directory Interface JNDI

高级Meb技术 Java 2 Enterprise edtion
高级Web技术 Java 2 Enterprise Edtion

本次课程内容 JNDI 命名服务和目录服务 LDAP JNDI API
本次课程内容 ◼ JNDI ◼ 命名服务和目录服务 ◼ LDAP ◼ JNDI API

JND概述 JNDI Java Naming and Directory Interface) Java Naming and Directory Interface ( UNDD is an API that provides directory and naming functionality to Java applications. It is defined to be independent of any specific directory service implementation: Nds, AdS, Ad, LD AP∴
JNDI概述 ◼ JNDI (Java Naming and Directory Interface): ◼ Java Naming and Directory Interface (JNDI) is an API that provides directory and naming functionality to Java applications. ◼ It is defined to be independent of any specific directory service implementation: NDS,ADS,AD,LD AP…

The Concept of Directory and Naming Every day life Telephone book Shopping catalog Computer and networks Domain Name Service( DNS): Internet Domain name System mappingmachinenames(suchaswww.sun.comtoIp addresses(such as 192.9.48.5) File System maps a filename (for example, c: \ binlautoexec. bat)to a file handle that a program can use to access the contents of the file
The Concept of Directory and Naming ◼ Everyday life ◼ Telephone book ◼ Shopping catalog ◼ Computer and networks ◼ Domain Name Service ( DNS):Internet Domain Name System ◼ mapping machine names (such as www.sun.com) to IP addresses (such as 192.9.48.5) ◼ File System ◼ maps a filename (for example, c:\bin\autoexec.bat) to a file handle that a program can use to access the contents of the file

Directory Service Overview a directory service provides access to diverse kinds of information about users and resources in a network environment It uses a naming system for the purpose of identifying and organizing directory objects to represent this information 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
Directory Service Overview ◼ A directory service provides access to diverse kinds of information about users and resources in a network environment. ◼ It uses a naming system for the purpose of identifying and organizing directory objects to represent this information. ◼ 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

Directory Service Overview What can a directory do? Finding Things Managing Things Lightweight Database Applications Security Applications Why we use Directory Extensibility Distribution scale Replication scale Performance LDAP(Lightweight Directory Access Protocol) OLTP(On-Line Transaction Process) Standards
Directory Service Overview ◼ What can a Directory do? ◼ Finding Things ◼ Managing Things ◼ Lightweight Database Applications ◼ Security Applications ◼ Why we use Directory ◼ Extensibility ◼ Distribution scale ◼ Replication scale ◼ Performance ◼ LDAP(Lightweight Directory Access Protocol ) ◼ OLTP(On-Line Transaction Process) ◼ Standards

Naming convention Every name is generated by a set of syntactic rules called a naming convention An atomic name is an indivisible component of a name. as defined by the naming convention a compound name represents a sequence of zero or more atomic names composed according to the naming convention
Naming Convention ◼ Every name is generated by a set of syntactic rules called a naming convention. ◼ An atomic name is an indivisible component of a name, as defined by the naming convention. ◼ A compound name represents a sequence of zero or more atomic names composed according to the naming convention

Naming convention The UN pathname ■From1 eft to right, is seperated by’/ /usr/hello, for example, names a file hello in the file directory usr, which is located in the root of the file system a The dms naming convention From right to left, is seperated by ." Thus the dNs name sales. Wiz. CoM names a DNS entry with the name sales, relative to the DNs entry wiz. COM. The DNs entry Wiz. COM, in turn, names an entry with the name Wiz in the com entry
Naming Convention ◼ The UNIX pathname: ◼ From left to right,is seperated by ’/’ : /usr/hello, for example, names a file hello in the file directory usr, which is located in the root of the file system. ◼ The DNS naming convention : ◼ From right to left,is seperated by ".". Thus the DNS name sales.Wiz.COM names a DNS entry with the name sales, relative to the DNS entry Wiz.COM. The DNS entry Wiz.COM, in turn, names an entry with the name Wiz in the COM entry

Naming convention Lightweight Directory Access ProtOcOl (LDAP): From left to right, is seperated by,, and takes the form of name=value The ldaP name cn=Rosanna lee 0=Sun, c=US names an LDAP entry cn=Rosanna lee relative to the entry o=Sun, which in turn, is relative to c=us. LDAP store the data in a form of a tree Bindings The association of an atomic name with an object is called a binding. for example: a file name is bound to a file; The DNS contains bindings that map machine names to IP addresses An LDAP name is bound to an ldap entry
Naming Convention ◼ Lightweight Directory Access Protocol (LDAP): ◼ From left to right,is seperated by’ , ’ ,and takes the form of name=value。The LDAP name cn=Rosanna Lee, o=Sun, c=US names an LDAP entry cn=Rosanna Lee, relative to the entry o=Sun, which in turn, is relative to c=us. ◼ LDAP store the data in a form of a tree ◼ Bindings ◼ The association of an atomic name with an object is called a binding. for example:a file name is bound to a file;The DNS contains bindings that map machine names to IP addresses. An LDAP name is bound to an LDAP entry

Naming convention a References and addresses For the objects that cant be stored directly into directory, it needs to find the object by address and then get the content and the status of the object context: a a set ofname-to-object bindings Can be further divided to root context and sub contexto A name in one context object can be bound to another context object(called a subcontext)that has the same naming convention A context provides a lookup (resolution)operation that returns the object and may provide operations such as those for binding names, unbinding names, and listing bound names
Naming Convention ◼ References and Addresses ◼ For the objects that can’t be stored directly into directory, it needs to find the object by address and then get the content and the status of the object. ◼ context: ◼ a set of name-to-object bindings ◼ Can be further divided to root context and sub context。 A name in one context object can be bound to another context object (called a subcontext) that has the same naming convention ◼ A context provides a lookup (resolution)operation that returns the object and may provide operations such as those for binding names, unbinding names, and listing bound names
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 复旦大学:《高级Web技术》3-应用web_3-J2EE-组件-服务-通讯_教学课件PPT_Java Message Service JMS.ppt
- 复旦大学:《高级Web技术》3-应用web_3-J2EE-组件-服务-通讯_教学课件PPT_javabean-javamail-tld-jdbc.ppt
- 复旦大学:《高级Web技术》3-应用web_2-J2EE概述_教学课件PPT_J2EE overview.ppt
- 复旦大学:《高级Web技术》3-应用web_1-分布式计算与中间件概述_教学课件PPT_分布式计算与中间件概述.ppt
- 复旦大学:《高级Web技术》2-Web上的数据标准-XML_6-XML应用_[07级]教学课件PPT_xml应用.ppt
- 复旦大学:《高级Web技术》2-Web上的数据标准-XML_5-XML链接语言-XLL_[07级]教学课件PPT_xml-xll.ppt
- 复旦大学:《高级Web技术》2-Web上的数据标准-XML_4-XML程序接口-java&XML_[07级]教学课件PPT_xml-java.ppt
- 复旦大学:《高级Web技术》2-Web上的数据标准-XML_3-XML转换标准-XSL_[07级]教学课件PPT_xml-xsl.ppt
- 复旦大学:《高级Web技术》2-Web上的数据标准-XML_2-XML描述和验证规范-DTD-SCHEMA_[07级]教学课件PPT_xml-schema.ppt
- 复旦大学:《高级Web技术》2-Web上的数据标准-XML_2-XML描述和验证规范-DTD-SCHEMA_[07级]教学课件PPT_xml-dtd.ppt
- 复旦大学:《高级Web技术》2-Web上的数据标准-XML_1-XML基础—概述与语法_[07级]教学课件PPT_XML改错.ppt
- 复旦大学:《高级Web技术》2-Web上的数据标准-XML_1-XML基础—概述与语法_[07级]教学课件PPT_XML基础—概述与语法.ppt
- 复旦大学:《高级Web技术》1-webapp outline_[07级]教学课件PPT_web app outline.ppt
- 复旦大学:《高级Web技术》0-class intro_[07级]教学课件PPT_class introduction.ppt
- 《高级Web技术》参考资料:4-RESTFUL WEBSERVICES_4-Service web_introduction_of_rest_and_restful_webservices.ppt
- 《高级Web技术》参考资料:3-应用web_5-J2EE框架_阅读参考资料_实用j2ee设计模式编程指南(PDF)_实用J2EE设计模式编程指南.pdf
- 《高级Web技术》参考资料:3-应用web_5-J2EE框架_阅读参考资料_Sun+J2EE+宠物店_宠物店.doc
- 《高级Web技术》参考资料:3-应用web_5-J2EE框架_阅读参考资料_Sun+J2EE+宠物店_原始码追踪记(3)-商业逻辑处理.pdf
- 《高级Web技术》参考资料:3-应用web_5-J2EE框架_阅读参考资料_Sun+J2EE+宠物店_原始码追踪记(2)-Model 篇.pdf
- 《高级Web技术》参考资料:3-应用web_5-J2EE框架_阅读参考资料_Sun+J2EE+宠物店_原始码追踪记(1).pdf
- 复旦大学:《高级Web技术》3-应用web_3-J2EE-组件-服务-通讯_教学课件PPT_servletandjsp.ppt
- 复旦大学:《高级Web技术》3-应用web_4-EJB_教学课件PPT_EJB基础-1-概述.ppt
- 复旦大学:《高级Web技术》3-应用web_4-EJB_教学课件PPT_EJB基础-2-体系结构.ppt
- 复旦大学:《高级Web技术》3-应用web_4-EJB_教学课件PPT_EJB基础-3-主要接口设计原则.ppt
- 复旦大学:《高级Web技术》3-应用web_4-EJB_教学课件PPT_EJB开发-4-创建Session EJB.ppt
- 复旦大学:《高级Web技术》3-应用web_4-EJB_教学课件PPT_EJB开发-5-编写Entity Bean.ppt
- 复旦大学:《高级Web技术》3-应用web_4-EJB_教学课件PPT_EJB开发-6-创建客户程序.ppt
- 复旦大学:《高级Web技术》3-应用web_4-EJB_教学课件PPT_EJB开发-7-部署EJB应用.ppt
- 复旦大学:《高级Web技术》3-应用web_4-EJB_教学课件PPT_EJB高级-10-安全性控制..ppt
- 复旦大学:《高级Web技术》3-应用web_4-EJB_教学课件PPT_EJB高级-11-JavaEE 5、EJB3.ppt
- 复旦大学:《高级Web技术》3-应用web_4-EJB_教学课件PPT_EJB高级-8-资源管理与EJB环境.ppt
- 复旦大学:《高级Web技术》3-应用web_4-EJB_教学课件PPT_EJB高级-9-事务处理.ppt
- 复旦大学:《高级Web技术》3-应用web_5-J2EE框架_spring_教学课件PPT_Introduction to Spring Framework.ppt
- 复旦大学:《高级Web技术》3-应用web_5-J2EE框架_教学课件PPT_J2EE模式与框架struts(J2EE模式与框架简介).ppt
- 复旦大学:《高级Web技术》4-Service web_1-SOA和WS概述_[07级]教学课件PPT_SOA Introduction.ppt
- 复旦大学:《高级Web技术》4-Service web_1-SOA和WS概述_[07级]教学课件PPT_Web Service概述.ppt
- 复旦大学:《高级Web技术》4-Service web_2-soap&wsdl&uddi_[07级]教学课件PPT_SOAP.ppt
- 复旦大学:《高级Web技术》4-Service web_2-soap&wsdl&uddi_[07级]教学课件PPT_Tomcat与SOAP&AXIS集成.ppt
- 复旦大学:《高级Web技术》4-Service web_2-soap&wsdl&uddi_[07级]教学课件PPT_UDDI.ppt
- 复旦大学:《高级Web技术》4-Service web_2-soap&wsdl&uddi_[07级]教学课件PPT_WSDL.ppt