About Name Directory Service (in English)
2003-03-07 08:42
369 查看
About Name Directory Service <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
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>>
相关文章推荐
- Hadoop "Cannot create directory .Name node is in safe mode."解决方案
- about service in android
- Error creating bean with name 'userService' defined in file [D:\eclipse-jee-neon-3-win32-x86_64\jav
- nullnullhow to read directory name using std c in the linux
- Directory /usr/local/hadoop/tmp/tmp/hadoop-root/dfs/name is in an inconsistent state: storage directory does not exist or is not accessible
- org.gnome.Terminal 调用 StartServiceByName 出错 (in Fedora)
- Error:(2) Error: "app_name" is not translated in "en" (English) [MissingTranslation]
- Error creating bean with name 'userService' defined in class path resource [beans.xml]: Unsatisfied dependency expressed through
- org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot create directory /user/hive/warehouse/page_view. Name node is in safe mode
- namenode做了ha后kylin出现错误No registered coprocessor service found for name CubeVisitService in region
- [hadoop]Cannot create directory /mdrill/tablelist/fact_seller_all_d. Name node is in safe mode.
- MFC Initilization of General Service Control about InitCommonControls和InitCommonControlsEx(MFC 通用控件的初始化InitCommonControls和InitCo
- hadoop mkdir: Cannot create directory /usr. Name node is in safe mode.
- About English Corner in Shenzhen
- Cannot create directory /tmp. Name node is in safe mode
- How SID is different from Service name in Oracle tnsnames.ora
- hadoop2.7.1java.lang.IllegalArgumentException: The ServiceName: mapreduce.shuffle set in yarn.nodema
- BeanCreationException: Error creating bean with name 'conversionService' defined in class path resou
- how to read directory name using std c in the linux
- About English Corner in Shenzhen