users@glassfish.java.net

Re: lookup problem

From: <glassfish_at_javadesktop.org>
Date: Tue, 21 Jul 2009 13:05:45 PDT

> when i try below code works
>
> Properties props = new Properties();
>
> props.put("java.naming.factory.initial",
>
> com.sun.enterprise.naming.SerialInitContextFactory");
>
> rops.setProperty("org.omg.CORBA.ORBInitialHost",
> "localhost");
>
> rops.setProperty("org.omg.CORBA.ORBInitialPort",
> "3774");
>
> InitialContext _ic = new
> InitialContext(props);
>
> when i try like this not working
>
>
> _props.put(Context.INITIAL_CONTEXT_FACTORY,
>
> om.sun.enterprise.naming.SerialInitContextFactory);
>
> props.put(Context.PROVIDER_URL,iiop://192.168.10.213:3
> 774); //i changed machine name ,localhost
> eventhough not working
>
> what is the reason

That property isn't supported for the Glassfish naming provider. It's specific to the CosNaming provider, which we don't recommend using and won't work for EJB 3.x remote references.


>
> 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 'ksak' (ksak)]

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