About Name Directory Service (in English)

原创 2003年03月07日 08:42:00

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

 

A english name about love

A different English name, I will be happy forever because it.  I don’t forget anything about that ti...
  • ivan22
  • ivan22
  • 2010年05月19日 15:00
  • 175

The best way to improve your listening

What's the best way to improve your listening? In this video, I'm going share with you the techniqu...
  • luckystar_99
  • luckystar_99
  • 2017年09月16日 09:33
  • 323

poj1862 哈夫曼水题

Our chemical biologists have invented a new very useful form of life called stripies (in fact, they ...
  • tianyuhang123
  • tianyuhang123
  • 2017年05月21日 18:09
  • 107

自己编写的linux的service脚本启动报错:No such file or directory

在windows中写好的服务脚本,通过xftp传到服务器,执行下面命令: 发现service服务脚本找不到脚本里面的目录,于是,就检查脚本是否有错误 结果发现找不到脚本里用到的/etc/rc....
  • farYang
  • farYang
  • 2016年08月28日 21:42
  • 1839

cf(思维题)

B. Rebranding time limit per test 2 seconds memory limit per test 256 megabytes inp...
  • martinue
  • martinue
  • 2015年10月30日 14:22
  • 363

invalid resource directory name 无效的资源目录名

在编写android时,给res中添加了文件夹,然后就报错了。 invalid resource directory name 无效的资源目录名 百度之后,发现错误原因: android的re...
  • u013009808
  • u013009808
  • 2015年12月15日 21:05
  • 1039

expected an absolute directory name for --prefix=./dir

在configure 时出现 expected an absolute directory name for --prefix=./dir 错误担示,将./dir改成绝对路径即可 --prefix=...
  • yuanya
  • yuanya
  • 2017年03月03日 20:05
  • 2362

Android studio 安装配置记录

可以上官网下载也可以到apkbus这里下载 下载链接:http://www.apkbus.com/portal.php?mod=topic&topicid=27 安装完成后: 修改 ...
  • Rodulf
  • Rodulf
  • 2016年01月10日 09:29
  • 1233

Error: Invalid resource directory name

出现这个问题是编写了系统不认同的资源文件,我出现的错误是把values-v21 写成了values-21,系统不认识。...
  • GEM_yaorao
  • GEM_yaorao
  • 2015年09月23日 15:31
  • 751

解决bug:在eclipse中导入Android项目时报错: “invalid resource directory name bin/res/crunch”

Bug:“invalid resource directory name bin/res/crunch” 1.原因分析: 2.解决方法一: 3.解决方法二:...
  • Sun_2134
  • Sun_2134
  • 2015年03月26日 15:50
  • 2089
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:About Name Directory Service (in English)
举报原因:
原因补充:

(最多只允许输入30个字)