[omniORB] Interworking with Java IDL

Olivier Raoul or@axlog.fr
Thu, 23 Jul 1998 11:39:57 +0100


>The bug is on Sun's list at the Java Developer Connection as 4149775,
and is
>reported as fixed in 1.2beta4. Has anyone managed to get hold of this
yet
>and verified whether it now works?

I test only on Win32 plateform (jdk 1.2beta4 and omniORB2.5.0)

  Yes its works!! with the tnameserv (java). But the omniORB Naming
Service doesn't work:
When i do a  org.omg.CORBA.Object objRef =
orb.resolve_initial_references("NameService");
i got a
ERROR : org.omg.CORBA.OBJECT_NOT_EXIST:   minor code: 0  completed: No
org.omg.CORBA.OBJECT_NOT_EXIST:   minor code: 0  completed: No
        at java.lang.Class.newInstance(Native Method)
        at
com.sun.CORBA.iiop.ReplyMessage.getSystemException(ReplyMessage.java:75)

        at
com.sun.CORBA.iiop.ClientResponseImpl.getSystemException(ClientResponseImpl.java:61)

        at com.sun.CORBA.idl.GenericCORBAClientSC.invoke(Compiled Code)
       at
com.sun.CORBA.idl.InitialNamingClient.resolve(InitialNamingClient.java:183)

        at
com.sun.CORBA.idl.InitialNamingClient.cachedInitialReferences(InitialNamingClient.java:262)

        at
com.sun.CORBA.idl.InitialNamingClient.resolve_initial_references(InitialNamingClient.java:171)

        at
com.sun.CORBA.idl.ORB.resolve_initial_references(ORB.java:1095)
        at WinfixClient.main(WinfixClient.java:18)

But the tnameserv changes its IOR at lauch time, i must to update the
registry often. I don't understant why java clients don't need to know
the IOR of the Name service and the omniORB clients need it?