users@glassfish.java.net

lookup problem

From: <glassfish_at_javadesktop.org>
Date: Tue, 21 Jul 2009 08:46:28 PDT

when i try below code works

Properties props = new Properties();

          props.put("java.naming.factory.initial",
               "com.sun.enterprise.naming.SerialInitContextFactory");
         props.setProperty("org.omg.CORBA.ORBInitialHost", "localhost");
         props.setProperty("org.omg.CORBA.ORBInitialPort", "3774");

        InitialContext _ic = new InitialContext(props);

when i try like this not working


 _props.put(Context.INITIAL_CONTEXT_FACTORY,
        com.sun.enterprise.naming.SerialInitContextFactory);
        _props.put(Context.PROVIDER_URL,iiop://192.168.10.213:3774); //i changed machine name ,localhost eventhough not working

what is the reason

error


WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: localhost; port: 3700"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
[Message sent by forum member 'kalis2050' (kalis2050)]

http://forums.java.net/jive/thread.jspa?messageID=356786