I resolved my problem.
> protected Context getNamingContext() throws NamingException {
> org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
> if( orb != null ) {
> Hashtable env = new Hashtable();
Here I should have put also:
env.put("org.omg.CORBA.ORBInitRef",
"NameService=corbaloc::localhost:2809/NameService");
> env.put("java.naming.corba.orb", orb);
> env.put(Context.INITIAL_CONTEXT_FACTORY,
> "com.sun.jndi.cosnaming.CNCtxFactory");
> env.put(Context.PROVIDER_URL, "iiop://localhost:2809");
> Context ic = new InitialContext(env);
> return ic;
> } else
> return null;
> }
Now it works :-)
Best regards,
Pawel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]