Search code examples
javacorba

Running Java CORBA Client on Unix


I'm trying to run a Java application I wrote to subscribe to a CORBA event service. It runs OK on my Windows machine, but as soon as I deploy it to the UNIX server, it gives me an org.omg.CORBA.NO_IMPLEMENT exception. Any ideas as to why this might be happening? I'm using JacORB on my Windows machine and passing VM arguments to initialize the client ORB, but I'm not sure how to do that on UNIX and if it's even necessary.

Thanks in advance!


Solution

  • The JRE comes with a full Corba implementation and you need to tell it to ignore those and use JacOrb instead.

    On Unix:

    -Xbootclasspath:${JACORB_HOME}/lib/jacorb.jar:${JAVA_HOME}/jre/lib/rt.jar:${CLASSPATH} 
    -Dorg.omg.CORBA.ORBClass=org.jacorb.orb.ORB
    -Dorg.omg.CORBA.ORBSingletonClass=org.jacorb.orb.ORBSingleton
    

    Look up the docs for JacORB It is very well explained. You need to have the jars files installed and you need to point to either the ior or the nameservice passed into your JVM.

    If your question is how to do this in a shell then please comment or rephrase the question.