`
k_lb
  • 浏览: 834029 次
  • 性别: Icon_minigender_1
  • 来自: 郑州
社区版块
存档分类
最新评论
  • kitleer: 据我所知,国内有款ETL调度监控工具TaskCTL,支持ket ...
    kettle调度

About Name Directory Service (in English)

 
阅读更多

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

分享到:
评论

相关推荐

    drupal 6.12

    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....

    EhLib 9.1.024

    writes all units in necessary directory, installs packages and help files in IDE. -------------------- 2.2 Installing library manually ------------------- Follow next instructions to install files ...

    ehlib_vcl_src_9_3.26

    writes all units in necessary directory, installs packages and help files in IDE. -------------------- 2.2 Installing library manually ------------------- Follow next instructions to install files ...

    stanford tagger

    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). ...

    联想旭日420AXP系统芯片组驱动

    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 ...

    Chinese Entity Linking Comprehensive

    This directory contains all of the source documents listed in the &lt;docid&gt; attribute for each query in tac_kbp_2011_chinese_entity_linking_evaluation_queries.xml. See section 5 for more ...

    Google C++ Style Guide(Google C++编程规范)高清PDF

    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, ...

    kgb档案压缩console版+源码

    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 ...

    Delphi7.1 Update

    * 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 ...

    Digging into WordPress.pdf

    2.2.1 OK, I’m In. Now What? .............................................25 2.2.2 Just Publish Something! .............................................................25 2.2.3 Go Look At It! ...........

Global site tag (gtag.js) - Google Analytics