jacorb 的使用(五) 解析IOR字符串

本文介绍如何使用JacORB提供的dior命令来解析IOR字符串,并展示了具体的使用方法及解析示例。

1. 解析IOR字符串,需要用到jacorb提供的dior命令。 
dior.bat的内容如下: 
@echo off 
rem decodes and prints the components of a stringified IOR 

IF "%1" == "" GOTO USAGE 

jaco org.jacorb.orb.util.PrintIOR %1 %2 
GOTO EXIT 

:USAGE 
   echo. 
   echo Usage: %0 ^[^<IOR^> ^| -f ^<filename^>^] 

:EXIT 

2. dior 的用法如下: 
Usage: dior [ -i ior_str | -f filename ] 

3. 解析的IOR内容如下: 

D:/jacorb/bin>dior -i IOR:000000000000002B49444C3A6F6D672E6F72672F436F734E616D69 
6E672F4E616D696E67436F6E746578744578743A312E300000000000010000000000000074000102 
000000000C31302E34302E37302E383600270F00000000001F5374616E646172644E532F4E616D65 
5365727665722D504F412F5F726F6F7400000000020000000000000008000000004A414300000000 
010000001C00000000000100010000000105010001000101090000000105010001 
[jacorb.orb.print_ver] INFO : 
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
        JacORB V 2.3.0, www.jacorb.org 
        (C) The JacORB project 17-Feb-2007 
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
[jacorb.orb] INFO : Property "jacorb.hashtable_class" is set to: java.util.HashM 
ap 
[org.jacorb.orb.codes] WARN : Warning - unknown codeset (GBK) - defaulting to IS 
O-8859-1 
[jacorb.orb.intercept] INFO : InterceptorManager started with 0 Server Intercept 
ors, 0 Client Interceptors and 1 IOR Interceptors 
[jacorb.orb.singleton] INFO : created ORBSingleton 
------IOR components----- 
TypeId  :       IDL:omg.org/CosNaming/NamingContextExt:1.0 
TAG_INTERNET_IOP Profiles: 
        Profile Id:             0 
        IIOP Version:           1.2 
        Host:                   10.40.70.86 
        Port:                   9999 
        Object key (URL):       StandardNS/NameServer-POA/_root 
        Object key (hex):       0x53 74 61 6E 64 61 72 64 4E 53 2F 4E 61 6D 65 5 
3 65 72 76 65 72 2D 50 4F 41 2F 5F 72 6F 6F 74 
        -- Found 2 Tagged Components-- 
        #0: TAG_ORB_TYPE 
                Type: 1245790976 (JacORB) 
        #1: TAG_CODE_SETS 
                ForChar native code set Id: ISO8859_1 
                Char Conversion Code Sets: UTF8 
                ForWChar native code set Id: UTF16 
                WChar Conversion Code Sets: UTF8 
[jacorb.orb] INFO : prepare ORB for shutdown... 
[jacorb.orb] INFO : ORB going down... 
[jacorb.orb] INFO : ORB shutdown complete 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值