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
本文介绍如何使用TAOORB和JacORB检查CORBA命名服务中的对象是否存在、获取对象的IOR字符串以及验证对象是否活跃。首先配置环境变量,然后通过nslist列出命名服务中的对象,catior命令获取对象的IOR,最后利用pingo工具验证对象状态。
325

被折叠的 条评论
为什么被折叠?



