[omniORB] setting inital refrence in the code

Thomas Lockhart lockhart at fourpalms.org
Fri Sep 3 13:18:37 BST 2004


...
> Does anyone know how to set your initial reference in the code itself?

If you don't get a better answer, I would try parsing the command line, 
setting parameters, then calling ORB_init() with argv modified with 
extra arguments. You could scan the original argv for instances of 
-ORBInitRef to avoid stomping on an explicit command line setting.

I'd probably do two passes parsing the command line; one pass to get 
your alternate parameters relevant to ORB_init(), then call ORB_init(), 
then do another pass for remaining parameters relevant to other parts of 
your program.

hth

                   - Tom




More information about the omniORB-list mailing list