[omniORB] corbaloc/corbaname
bjorn rohde jensen
shamus@tdcadsl.dk
Thu, 07 Feb 2002 00:54:37 +0100
Hi Richard,
You could use a corbaname URI with the eg2 demo this way;
Start a nameservice on the localhost
bjorn@twilight ~ $ /usr/local/omni/src/examples/echo/eg2_impl
then bind the IOR of the object dumped by eg2_impl in the naming graph
under fx test/eg2
bjorn@twilight ~ $ /usr/local/omni/bin/i586_linux_2.0_glibc2.1/nameclt
bind_new_context test
bjorn@twilight ~ $ /usr/local/omni/bin/i586_linux_2.0_glibc2.1/nameclt
bind test/eg2
IOR:010000000d00000049444c3a4563686f3a312e3000000000010000000000000064000000010102000b0000003137322e32322e302e310000a28000000e000000fe6bbd613c000006f7000000000000000200000000000000080000000100000000545441010000001c00000001000000010001000100000001000105090101000100000009010100
then run the eg2_clt using the corbaname
/cpp/corba $ /usr/local/omni/src/examples/echo/eg2_clt
corbaname::localhost/NameService#test/eg2
You could also just fix the server to bind its object in the proper
nameservice on start up. Still, nameclt is sort of a neat tool for
this sort of thing:)
Your sincerely,
bjorn