-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
Hi,
On Fri, 17 Sep 1999, Greg Matthews wrote:
> How do I set the classpath so that I can force some
> Visibroker jar files to appear before the JDK 1.2 runtime jar
> (that also contains some CORBA classes).
>
> When I use JavaWebServer I can use the -Xbootclasspath
> java VM parameter and my servlet can use the bind method
> in Visibroker.
There's a better way than classpath hacks. You can set some java
properties that tell the JDK where to look for your favorite ORB. For
Orbacus and JDK 1.2, I initialize the ORB with the following piece of
code:
java.util.Properties props = System.getProperties();
props.put("org.omg.CORBA.ORBClass", "com.ooc.CORBA.ORB");
props.put("org.omg.CORBA.ORBSingletonClass",
"com.ooc.CORBA.ORBSingleton");
System.setProperties(props);
orb_ = org.omg.CORBA.ORB.init(args, props);
boa_ = ((com.ooc.CORBA.ORB)orb_).BOA_init(args, props);
I hope this helps.
Ciao
Peter
--
URBAN Peter Mail: [EMAIL PROTECTED]
Federal Institute of Technology WWW: http://lsewww.epfl.ch/urban
EPFL-DI-LSE, office INF 233 Phone: (+41 21) 693 5354
CH-1015 Lausanne, Switzerland Fax: (+41 21) 693 6770
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]