当前位置:高等教育资讯网  >  中国高校课件下载中心  >  大学文库  >  浏览文档

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

资源类别:文库,文档格式:PPT,文档页数:53,文件大小:704KB,团购合买
◼ 命名服务和目录服务 ◼ LDAP ◼ JNDI API
点击下载完整版文档(PPT)

高级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

点击下载完整版文档(PPT)VIP每日下载上限内不扣除下载券和下载次数;
按次数下载不扣除下载券;
24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
共53页,可试读18页,点击继续阅读 ↓↓
相关文档

关于我们|帮助中心|下载说明|相关软件|意见反馈|联系我们

Copyright © 2008-现在 cucdc.com 高等教育资讯网 版权所有