[omniORB] URI-Question

Empting Arnd Arnd.Empting@kst.siemens.de
Fri, 6 Jul 2001 17:15:08 +0200


Hi, 

i seem to make something wrong. 

according to the doc i can define a server with an URI

-ORBInitRef NameService=corbaname::server:port

or with the IOR

-ORBInitRef NameService=IOR:023478518358538093<snip>

i try to do that but cant get the first version work right.

Any suggestions? (As Info - i try to connect to an Orbix-NameService 
but i hope that this makes no different)

Regards

	Arnd


output from the two versions....


==============================1==================================
C:\omni\bin\x86_win32>nameclt -ORBtraceLevel 50 -ORBInitRef
NameService=corbaname::89.5.15.77:4444 list
omniORB: strand Rope::incrRefCount: old value = 0
omniORB: Creating ref to remote: key<0x494e4954>
 target id      : IDL:omg.org/CORBA/Object:1.0
 most derived id: omg.org/CORBA/InitialReferences:1.0
omniORB: The omniDynamic library is not linked.
omniORB: strand Rope::incrRefCount: old value = 0
omniORB: Creating ref to remote: key<0x4e616d6553657276696365>
 target id      : IDL:omg.org/CORBA/Object:1.0
 most derived id:
omniORB: Initial reference `NameService' resolved from -ORBInitRef argument.
omniORB: strand Ripper: start.
omniORB: scavenger : start.
ll_send: 108 bytes
4749 4f50 0100 0100 6000 0000 0000 0000 GIOP....`.......
0100 0000 0100 0000 0b00 0000 4e61 6d65 ............Name
5365 7276 6963 6500 0600 0000 5f69 735f Service....._is_
6100 0000 0700 0000 6e6f 626f 6479 0000 a.......nobody..
2800 0000 4944 4c3a 6f6d 672e 6f72 672f (...IDL:omg.org/
436f 734e 616d 696e 672f 4e61 6d69 6e67 CosNaming/Naming
436f 6e74 6578 743a 312e 3000           Context:1.0.
omniORB: scavenger : scanning connections
omniORB: scavenger : scanning connections
omniORB: scavenger : scanning connections



=======================================2==========================
C:\omni\bin\x86_win32>nameclt -ORBtraceLevel 50 -ORBInitRef
NameService=IOR:0000
00000000002849444c3a6f6d672e6f72672f436f734e616d696e672f4e616d696e67436f6e74
6578
743a312e3000000000010000000000000066000100000000001764656361653633632e6b7374
2e73
69656d6e732e64650000115c00000000003e3a5c64656361653633632e6b73742e7369656d6e
732e
64653a4e533a726f6f743a3a4946523a436f734e616d696e675f4e616d696e67436f6e746578
7400
 list
omniORB: strand Rope::incrRefCount: old value = 0
omniORB: Creating ref to remote: key<0x494e4954>
 target id      : IDL:omg.org/CORBA/Object:1.0
 most derived id: omg.org/CORBA/InitialReferences:1.0
omniORB: The omniDynamic library is not linked.
omniORB: strand Rope::incrRefCount: old value = 0
omniORB: Creating ref to remote:
key<0x3a5c64656361653633632e6b73742e7369656d6e7
32e64653a4e533a726f6f743a3a4946523a436f734e616d696e675f4e616d696e67436f6e746
5787
400>
 target id      : IDL:omg.org/CORBA/Object:1.0
 most derived id: IDL:omg.org/CosNaming/NamingContext:1.0
omniORB: Initial reference `NameService' resolved from -ORBInitRef argument.
omniORB: LocateRequest to remote:
key<0x3a5c64656361653633632e6b73742e7369656d6e
732e64653a4e533a726f6f743a3a4946523a436f734e616d696e675f4e616d696e67436f6e74
6578
7400>
omniORB: strand Ripper: start.
omniORB: scavenger : start.
ll_send: 82 bytes
4749 4f50 0100 0103 4600 0000 0100 0000 GIOP....F.......
3e00 0000 3a5c 6465 6361 6536 3363 2e6b >...:\decae63c.k
7374 2e73 6965 6d6e 732e 6465 3a4e 533a st.siemns.de:NS:
726f 6f74 3a3a 4946 523a 436f 734e 616d root::IFR:CosNam
696e 675f 4e61 6d69 6e67 436f 6e74 6578 ing_NamingContex
7400                                    t.
ll_recv: 20 bytes
4749 4f50 0100 0004 0000 0008 0000 0001 GIOP............
0000 0001                               ....
ll_send: 120 bytes
4749 4f50 0100 0100 6c00 0000 0000 0000 GIOP....l.......
0200 0000 015c 6465 3e00 0000 3a5c 6465 .....\de>...:\de
6361 6536 3363 2e6b 7374 2e73 6965 6d6e cae63c.kst.siemn
732e 6465 3a4e 533a 726f 6f74 3a3a 4946 s.de:NS:root::IF
523a 436f 734e 616d 696e 675f 4e61 6d69 R:CosNaming_Nami
6e67 436f 6e74 6578 7400 0000 0500 0000 ngContext.......
6c69 7374 0000 0000 0700 0000 6e6f 626f list........nobo
6479 0000 0000 0000                     dy......
ll_recv: 189 bytes
4749 4f50 0100 0001 0000 00b1 0000 0000 GIOP............
0000 0002 0000 0000 0000 0000 0000 002a ...............*
4944 4c3a 6f6d 672e 6f72 672f 436f 734e IDL:omg.org/CosN
616d 696e 672f 4269 6e64 696e 6749 7465 aming/BindingIte
7261 746f 723a 312e 3000 436f 0000 0001 rator:1.0.Co....
0000 0000 0000 0065 0001 0000 0000 0017 .......e........
6465 6361 6536 3363 2e6b 7374 2e73 6965 decae63c.kst.sie
6d6e 732e 6465 0000 115c 0000 0000 003d mns.de...\.....=
3a5c 6465 6361 6536 3363 2e6b 7374 2e73 :\decae63c.kst.s
6965 6d6e 732e 6465 3a4e 533a 313a 3a49 iemns.de:NS:1::I
4652 3a43 6f73 4e61 6d69 6e67 5f42 696e FR:CosNaming_Bin
6469 6e67 4974 6572 6174 6f72 00        dingIterator.
omniORB: strand Rope::incrRefCount: old value = 1
omniORB: Creating ref to remote:
key<0x3a5c64656361653633632e6b73742e7369656d6e7
32e64653a4e533a313a3a4946523a436f734e616d696e675f42696e64696e674974657261746
f720
0>
 target id      : IDL:omg.org/CosNaming/BindingIterator:1.0
 most derived id: IDL:omg.org/CosNaming/BindingIterator:1.0
omniORB: LocateRequest to remote:
key<0x3a5c64656361653633632e6b73742e7369656d6e
732e64653a4e533a313a3a4946523a436f734e616d696e675f42696e64696e67497465726174
6f72
00>
ll_send: 81 bytes
4749 4f50 0100 0103 4500 0000 0300 0000 GIOP....E.......
3d00 0000 3a5c 6465 6361 6536 3363 2e6b =...:\decae63c.k
7374 2e73 6965 6d6e 732e 6465 3a4e 533a st.siemns.de:NS:
313a 3a49 4652 3a43 6f73 4e61 6d69 6e67 1::IFR:CosNaming
5f42 696e 6469 6e67 4974 6572 6174 6f72 _BindingIterator
00                                      .
ll_recv: 20 bytes
4749 4f50 0100 0004 0000 0008 0000 0003 GIOP............
0000 0001                               ....
ll_send: 119 bytes
4749 4f50 0100 0100 6b00 0000 0000 0000 GIOP....k.......
0400 0000 015c 6465 3d00 0000 3a5c 6465 .....\de=...:\de
6361 6536 3363 2e6b 7374 2e73 6965 6d6e cae63c.kst.siemn
732e 6465 3a4e 533a 313a 3a49 4652 3a43 s.de:NS:1::IFR:C
6f73 4e61 6d69 6e67 5f42 696e 6469 6e67 osNaming_Binding
4974 6572 6174 6f72 0000 0000 0900 0000 Iterator........
6e65 7874 5f6f 6e65 0000 0000 0700 0000 next_one........
6e6f 626f 6479 00                       nobody.
ll_recv: 60 bytes
4749 4f50 0100 0001 0000 0030 0000 0000 GIOP.......0....
0000 0004 0000 0000 0161 6536 0000 0001 .........ae6....
0000 0009 5365 7276 6963 6573 004e 533a ....Services.NS:
0000 0001 0052 3a43 0000 0001           .....R:C....
Services/