Re: about jacob and jdk's corba implmentation



david wolf wrote:
Hi All,

I am using java to connect to a CORBA Service. I used to use jdk's
corba implementation to connect to the service. Now I swithed to
Jacorb. Since Jacor and JDK both have corba implementation, when I use
ant to compile my code, how to make sure my code actually use JACORB's
implementation instead of JDK's (I checked, the classes related to
corba in both implementation has the same fully qualified class names).

I quoted a piece of code from my ant build.xml. I put jacorb's lib in
the front, while java's lib (that is, ${myjava.home}/lib) later. Will
this do what I want?


Usually, your code would use the classes under org.OMG.... , coming with the SDK. The actual ORB implementation is then chosen at *runtime*, defined by the java properties org.omg.CORBA.ORBClass and org.omg.CORBA.ORBSingletonClass (see docs for org.omg.CORBA.ORB)
If jacorb really comes with the org.OMG.** classes packed inside, i'd consider this as a misfeature :-(

You might verify the correct use of jacorb by issuing some

System.out.println(myOrb.getClass().getName())

on your ORB instance, just to sure...

HTH
Andreas
.



Relevant Pages

  • Re: about jacob and jdks corba implmentation
    ... JDK and Jacorb do have the same qualified class ... use jacorb's lib since both JDK and jacorb have the same fully ... Since Jacor and JDK both have corba implementation, ...
    (comp.lang.java.programmer)
  • Re: about jacob and jdks corba implmentation
    ... JDK and Jacorb do have the same qualified class ... Since Jacor and JDK both have corba implementation, ...
    (comp.lang.java.programmer)
  • about jacob and jdks corba implmentation
    ... I am using java to connect to a CORBA Service. ... Since Jacor and JDK both have corba implementation, ... I quoted a piece of code from my ant build.xml. ... the front, while java's lib later. ...
    (comp.lang.java.programmer)