Java ORB to omniORB?

Lars Immisch lars@ibp.de
Tue, 1 Jul 97 13:49:45 +0200


Thomas Wenger wrote to me in private:

> Ich versuche seit Tagen JavaIDL zum Arbeiten mit dem omniORB und seinem
> Naming zu bewegen. Ich habe auch schon die Aenderung mit "omg.org"
> eingetragen. Nur das hat nichts geaendert...

For the benefit of all - Thomas cannot get JavaIDL Naming to work with  
omniORB naming although he has added the omg.org prefix:

If you use Windows NT for omniORB, then there is a simple explanation: the  
Naming stubs have no dependency from Naming.idl in the NT version of the  
makefiles. So if you add the #prefix "omg.org" to Naming.idl and recompile  
omniORB, this will do nothing.

You can easily check if the prefix is present by having a look [with catior  
-x] at the IOR omniNames announces. The Type ID must start with "IDL:omg.org".

To get around this problem, you can compile the stubs yourself, but then, you  
must rename and modify them to work around the VC++ nested classes bug. You  
can also get the edited stubs from me. Send email to remind me. I also sent  
them to orl, just in case.

Two more points: to get omniORB to use the JavaIDL name service, enter the  
IOR from the java name service into the Registry. Be aware that this IOR  
changes with every start of the name server (different BOA activation policy,  
I would guess without thinking).

To get the JavaIDL use the omniORB name service, specifying -ORBInitialHost  
and -ORBInitialPort (or what it was) does not help. I did it by getting a  
reference to the nameservice by doing a ORB::string_to_object on the IOR from  
omniNames, followed by the appropiate narrow.

Hope this helps,

Lars Immisch
--
lars@ibp.de