Hi all,
Sorry if this is obvious but I've spent 2 days trying to get this to work
and I'm probably missing something obvious.
I'm using jdk1.2.2 and the J2EE-ri as a server.

Running an application on the same machine as the server connects fine with:
Context initial = new InitialContext();

Adding the following lines allows me to connect to the server running on the
machine next to me:
      Properties env = new Properties();
      env.put("org.omg.CORBA.ORBInitialHost", "002224rog");
      env.put("org.omg.CORBA.ORBInitialPort", "1050");
      Context initial = new InitialContext(env);

(I've tried the

env.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.cosnaming
.CNCtxFactory");
      env.put(Context.PROVIDER_URL, "iiop://002224rog:1050");
settings but I get a 'CORBA NO_IMPLEMENT' error)

However when I try to run the same code from the AppletViewer I get the
following error:
java.lang.ExceptionInInitializerError: org.omg.CORBA.INITIALIZE: can't
instantiate default ORB implementation
com.sun.corba.ee.internal.corba.ORBSingleton  minor code: 0  completed: No
        at org.omg.CORBA.ORB.create_impl(ORB.java:305)

Any help/examples of an applet that connects to the reference implementation
would be greatly appreciated - I'm running out of hair!

TIA,

Monica
--------------------------------------------------------------------------------
The information transmitted is intended only for the person or entity to which
it is addressed and may contain confidential and/or privileged material.
Any review, retransmission, dissemination or other use of, or taking of any
action in reliance upon, this information by persons or entities other than the 
intended recipient is prohibited.
If you received this in error, please contact the sender and delete the materialfrom 
any computer.
--------------------------------------------------------------------------------

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to