[omniORB] Object reference to stringified URI: can it be done?
Duncan Grisby
duncan@grisby.org
Tue Jan 7 11:52:02 2003
On Monday 6 January, matejkenda@volja.net wrote:
> I wanted to implement an operator<< for CORBA objects that would display the
> object references in URI form (giop::iiop::hostname:port/object).
I assume you mean corbaloc::hostname:port/objectkey
> I have tried to find the tips on the Internet and in the Advanced CORBA
> Programming with C++, but with no luck (I'm sure the information is there
> somewhere, but it seems to be well hidden ;) ).
You won't find it in H&V, because it's not something you're meant to
do in CORBA. Object references are opaque things, containing a lot
more information than just the things that can be in a corbaloc URI.
I think you should question whether it really is the right thing for
you to be doing.
That said, you can implement what you want using internal omniORB
APIs. Look at the source of catior.
Cheers,
Duncan.
--
-- Duncan Grisby --
-- duncan@grisby.org --
-- http://www.grisby.org --