> Hi All,
>
[quoted text clipped - 8 lines]
> 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
david wolf - 01 Dec 2006 17:06 GMT
Hi Andreas,
Thanks for your reply. JDK and Jacorb do have the same qualified class
names starting with org.omg. See following for details.
C:\jdk1.5\jre\lib>jar tvf rt.jar|grep "org/omg/CORBA/ORB"|more
439 Wed May 03 02:00:12 CDT 2006
com/sun/corba/se/org/omg/CORBA/ORB.class
582 Wed May 03 01:29:06 CDT 2006 org/omg/CORBA/ORB$1.class
1469 Wed May 03 01:29:06 CDT 2006 org/omg/CORBA/ORB$2.class
8226 Wed May 03 01:29:06 CDT 2006 org/omg/CORBA/ORB.class
336 Wed May 03 01:29:06 CDT 2006
org/omg/CORBA/ORBPackage/InconsistentTypeCod
e.class
318 Wed May 03 01:29:06 CDT 2006
org/omg/CORBA/ORBPackage/InvalidName.class
C:\JacORB_2.3.0_beta2\lib>jar tvf jacorb.jar|grep "org/omg/CORBA/ORB"
0 Sat Oct 14 21:45:40 CDT 2006 org/omg/CORBA/ORBPackage/
6024 Sat Oct 14 21:47:34 CDT 2006 org/omg/CORBA/ORB.class
424 Sat Oct 14 21:45:38 CDT 2006
org/omg/CORBA/ORBPackage/InconsistentTypeCod
e.class
2006 Sat Oct 14 21:45:38 CDT 2006
org/omg/CORBA/ORBPackage/InconsistentTypeCod
eHelper.class
397 Sat Oct 14 21:47:34 CDT 2006
org/omg/CORBA/ORBPackage/InvalidName.class
1925 Sat Oct 14 21:45:30 CDT 2006
org/omg/CORBA/ORBPackage/InvalidNameHelper.c
lass
I use what you suggested
"System.out.println(myOrb.getClass().getName())", I printed following
info:
11:03:07,978 INFO [STDOUT] com.sun.corba.se.impl.orb.ORBImpl
So I guess I am using sun's implementation. How to switch to Jacorb's
library ? Like I tried before in ant's setting, I am not sure how to
use jacorb's lib since both JDK and jacorb have the same fully
qualified class name.
Thanks,
David
> > Hi All,
> >
[quoted text clipped - 24 lines]
> HTH
> Andreas
david wolf - 01 Dec 2006 17:24 GMT
I found the answer for my own problem.
Here is the answer link I found on the web:
http://www.theaceorb.com/faq/index.html#070
David
> Hi Andreas,
>
[quoted text clipped - 71 lines]
> > HTH
> > Andreas