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