Re: about jacob and jdk's corba implmentation
- From: Andreas Wollschlaeger <postmaster@xxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 29 Nov 2006 00:29:29 +0100
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
.
- References:
- about jacob and jdk's corba implmentation
- From: david wolf
- about jacob and jdk's corba implmentation
- Prev by Date: Re: How to update a jar file for one source file change?
- Next by Date: Re: JAVA Time Problem: Want to get the current time and perform validation
- Previous by thread: about jacob and jdk's corba implmentation
- Index(es):
Relevant Pages
|