About Name Directory Service (in English)
来源:互联网 发布:开机不显示网络图标 编辑:程序博客网 时间:2024/04/28 06:53
About Name Directory Service
This article is contributed by Wang HaiLong.
Introduction
It seems that all the C/S based systems have similar architectures and work according to similar rules:
1. There are usually 3 parts - client, server, name directory service.
2. Server registers itself in a name directory.
3. Client locates server in a name directory.
This article lists such scenarios from aspects of Middle Ware and Network.
Middle Ware
COM+
A component registers itself in the registry table, while clients locate it from registry table.
An active component registers itself with a Moniker in ROT (Running Object Table), while a client uses the Moniker to find the active component from ROT.
CORBA
Clients can ask services from Interface Repository.
The following code is extracted from <<Core Java 2 Volume II: Advanced Features>>.
ORB orb = ORB.init(args, NULL);
String [] Services = orb.list_initial_services();
org.omg.CORBA.Object object = orb.resolve_initial_references("NameService");
NamingContext namingContext = NamingContexthelper.narrow(objcet);
EJB
JNDI.
rmiregistry for RMI.
The following code is extracted from <<Core Java 2 Volume II: Advanced Features>>.
String url = getCodeBase().getHost();
url = "rmi://" + url;
centralWarehouse = (Warehouse)Naming.lookup(url + "/central_warehouse");
Network
Socket
A server needs to bind itself to port number before a client can connect it.
Name Registration and Resolution
Network programming concerns Address Families, Name Registration and Resolution.
The following table is from << Network Programming for Microsoft Windows >>.
Name Space Description Type
NS_SAP Service Advertising Protocol (SAP) name space; used on IPX networks Dynamic
NS_NDS NetWare Directory Services (NDS) name space; also used on IPX networks Persistent
NS_DNS Domain Name System (DNS) name space; most commonly found on TCP/IP networks and on the Internet Static
ND_NTDS Windows NT domain space; protocol-independent name space found on Windows 2000
Reference
<<Core Java 2 Volume II: Advanced Features>>
<<Network Programming for Microsoft Windows>>
- About Name Directory Service (in English)
- A english name about love
- About English Corner in Shenzhen
- confuse about thinking in English
- about service in android
- "Warning: Duplicate directory name" in Matlab R2007a
- Config windows Service Name in App.config
- english Web about .net
- softs about learning English
- About English URL document
- English expressions about clothes
- Something about English learning
- English about computer 1
- Cannot create directory /tmp. Name node is in safe mode
- about service
- my english name:Kathy
- IT English Collection(31)of About Drawing and Printing in iOS
- The base operation about Metadata Service in sharepoint 2013
- Design Pattern Introduction and Practice
- Exception Rule
- 2 Buzz Words: xml schema and web service
- Ubiquitous Iterator (in English)
- Patterns in Java (in English)
- About Name Directory Service (in English)
- Design Pattern Introduction – catch the core
- Java Thread应该注意的问题
- A Simple Sample for Expression Tree
- Java Thread实现读写同步
- Com Introduction
- Java Thread in JVM
- SAX 实现“增量文件”
- 用SERVLET过滤来实现权限控制