Discussion:
[omniORB] Question related to ORB_init
Nilanjan Sarkar
2006-11-20 19:20:53 UTC
Permalink
Hi,

We are currently integrating with omniORB (version 4.0.7). We want to
use the ORB_init parameters mainly like ,
" -ORBInitialHost 192.168.1.50 -ORBInitialPort 2809". But we are getting
the exception "omniORB: ORB_init failed: unknown option
(-ORBInitialHost) in -ORB arguments"

We followed the documents
"<http://www.cl.cam.ac.uk/research/dtg/attarchive/omniORB/doc/2.8/omniOR
B2/node5.html#omniorbapioptions>"
for ORBInitialHost and ORBInitialPort .

By adding the parameters (ORBInitialHost and ORBInitialPort ) in
omniORB.cfg, after starting 'omniNames' we were successfully able to
connect from our Java ORB Client using, "ORBInitialHost and
ORBInitialPort ".

But if we try to add as a command line arguments (ORBInitialHost and
ORBInitialPort ) to the Servant program, we got the above exception
"omniORB: ORB_init failed: unknown option (-ORBInitialHost) in -ORB
arguments".

If anybody can tell me, how to pass "ORBInitialHost and ORBInitialPort
" in "CORBA::ORB_init(argc, argv)", we will be very helpful.

Thanks in advance.
Regards,
Nilanjan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20061120/b0c5ed8d/attachment.htm
Lars Immisch
2006-11-21 05:04:43 UTC
Permalink
Hi,
Post by Nilanjan Sarkar
We followed the documents
"<http://www.cl.cam.ac.uk/research/dtg/attarchive/omniORB/doc/2.8/omniORB2/node5.html#omniorbapioptions>"
for ORBInitialHost and ORBInitialPort .
You are reading the documentation for omniORB 2.8.

Read the documentation for omniORB 4, unless you *do* use 2.8:

http://omniorb.sourceforge.net/docs.html

ORBInitialHost is deprecated. I think it's ORBendpoint these days.

- Lars
Stefan Näwe
2006-11-21 15:22:17 UTC
Permalink
Post by Nilanjan Sarkar
Hi,
We are currently integrating with omniORB (version 4.0.7). We want to
use the ORB_init parameters mainly like ,
" -ORBInitialHost 192.168.1.50 -ORBInitialPort 2809". But we are getting
the exception "omniORB: ORB_init failed: unknown option
(-ORBInitialHost) in -ORB arguments"
We followed the documents
"<http://www.cl.cam.ac.uk/research/dtg/attarchive/omniORB/doc/2.8/omniORB2/node5.html#omniorbapioptions>"
That's ancient!

Read the docs here:

http://omniorb.sourceforge.net/omni41/omniORB/
Post by Nilanjan Sarkar
for ORBInitialHost and ORBInitialPort .
By adding the parameters (ORBInitialHost and ORBInitialPort ) in
omniORB.cfg , after starting 'omniNames' we were successfully able to
connect from our Java ORB Client using, " ORBInitialHost and
ORBInitialPort ".
But if we try to add as a command line arguments (ORBInitialHost and
ORBInitialPort ) to the Servant program, we got the above exception
"omniORB: ORB_init failed: unknown option (-ORBInitialHost) in -ORB
arguments".
If anybody can tell me, how to pass "ORBInitialHost and ORBInitialPort
" in "CORBA::ORB_init(argc, argv)", we will be very helpful.
HTH
Stefan
--
----------------------------------------------------------------------
Stefan Naewe ATLAS Elektronik GmbH
Dept.: NUS T4
phone: +49-(0)421-457-1378 Sebaldsbruecker Heerstr. 235
fax: +49-(0)421-457-3913 28305 Bremen
Loading...