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>>
分享到:
相关推荐
this name in the same directory). For example, (from the installation directory) make a copy of the default.settings.php file with the command: cp sites/default/default.settings....
writes all units in necessary directory, installs packages and help files in IDE. -------------------- 2.2 Installing library manually ------------------- Follow next instructions to install files ...
writes all units in necessary directory, installs packages and help files in IDE. -------------------- 2.2 Installing library manually ------------------- Follow next instructions to install files ...
See the included README-Models.txt in the models directory for more information about the tagsets for the other languages. The tagger is licensed under the GNU General Public License (v2 or later). ...
6. Installing the Software in Interactive Mode 7. Installing the Software in Silent Mode 8. Installing the INF Files Prior to OS Installation 8A. Installing the Windows* 2000 INF Files Prior to OS ...
This directory contains all of the source documents listed in the <docid> attribute for each query in tac_kbp_2011_chinese_entity_linking_evaluation_queries.xml. See section 5 for more ...
Maintaining a uniform style and following conventions means that we can more easily use "pattern-matching" to infer what various symbols are and what invariants are true about them. Creating common, ...
If a path is stored, the file is extracted to the appropriate directory, which must exist. PAQ6 does not create directories. If the file to be extracted already exists, it is not replaced; rather it ...
* If you have updated any Borland packages in the system32 directory with unofficial patches or updates from CodeCentral, MSI might revert (auto-repair) those packages to their previous version ...
Note: To run a system test, you must install the System Test Remote Agent Add-in and the Mercury Quality Center Connectivity Add-in on the machine where the test is to be run. For more information on ...
2.2.1 OK, I’m In. Now What? .............................................25 2.2.2 Just Publish Something! .............................................................25 2.2.3 Go Look At It! ...........