Re: Hi i need help with orbit2 and IIOP



AFAIK, CORBA doesn't specify how client can get IOR file from server.
You can use email, ftp, http ... any method to distribute the IOR file.

Recently, there are a NameService been defined but I don't know how to
use it yet.

For my ORBit2 project, I always save the IOR file on web server then
client can get the IOR file via URL.  So on client side, you can just call

CORBA_ORB_string_to_object(orb, your_URL_here, &ev)

to access the IOR file.

Depend on ORBit2's version, some Linux distribution (eg FC1) will distribute
ORBit2 with "ORBHTTPIORs" disabled by default.   That make the above
method failed ... however, you can use external command "wget" to
fetch the IOR file for you.  In that case, your code will look like:

system("wget ....");
open_ior_file_and_save_contents_to_ior_string_buffer()
CORBA_ORB_string_to_object(orb, ior_string_buf, &ev)


Hope this help.

Regards,
Kuang-Chun Cheng
kccheng openate com



Rodrigo Maldonado wrote:

Hi
i tried to program server in Linux with Orbit2
but all examples saves the IOR in a file , and i need conecting with another
ORB in other operating system.
Please , somebody have a example with Orbit2 using
IIOP for connect another pc in the net?.
Thanks You


_______________________________________________
orbit-list mailing list
orbit-list gnome org
http://mail.gnome.org/mailman/listinfo/orbit-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]