CORBA NamingService IOR

来源:互联网 发布:新手手机淘宝购物教程 编辑:程序博客网 时间:2024/04/30 10:00

Introduce how to check

1. whether there is a name object existed in NamingService.

2. what is the object's IOR string ?

3. whether the object is active or not ?

 

Pre-condition

We will use TAO ORB and JacORB together.

 

 

Procedures

0. setup execute environment

 

export TAO_HOME=/.../Corba/ACE_TAO
export JACORB_HOME=/.../Corba/JACORB

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$TAO_HOME/lib

export PATH=$PATH:$JACORB_HOME/bin

 

1. List what there are in NamingService

 

$TAO_HOME/bin/nslist /

-ORBInitRef NameService=iioploc://localhost:34000/NameService

 

 

2. List out a object's IOR

$TAO_HOME/bin/catior /

-ORBInitRef NameService=iioploc://localhost:34000/NameService /

-n IpInitial

 

 

3. Whether this object is live

put IOR (get at step 2) into a text file, ie., named ior.txt

$JACORB_HOME/bin/pingo -f ior.txt

 

原创粉丝点击