How to create threaded ORB under ORBit2



Hi,

Could someone provide me a simple "Hello" CORBA server
to demo how to use threaded ORB under ORBit2.
I add

if (!g_thread_supported ()) g_thread_init (NULL);

in server side and

linc_set_threaded (TRUE);

in client side just before CORBA_ORB_init() and
after CORBA_exception_init(), but nothing work.

I also try use "orbit-local-mt-orb" in CORBA_ORB_init(),
doesn't work neither.

Also, does threaded ORB server work with client written
by other CORBA implementation ? eg MICO, omniORB ?

I'm using RedHat 8.0, ORBit2-2.4.1.



Thanks
Kuang-Chun Cheng
kccheng@openate.com




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