Can not Accessing EJB Components in a RemoteApplication server
I want to access a stateless ejb in a remote sun appserver 9 from a standalone client,But I got NameNotFoundException alway, followed is my code:(my client ip is 192.168.52.1)
Properties prop = new Properties();
prop.setProperty("java.naming.factory.initial",
"com.sun.jndi.cosnaming.CNCtxFactory");
prop.setProperty("java.naming.provider.url",
"corbaname:iiop:192.168.52.2:3700");
InitialContext ic = new InitialContext(prop);
obj = ic.lookup("ejb/RemoteSessionBean");
So,I use ic.list("ejb") to check the ejb/RemoteSessionBean's jndi name,But I cannot find it in the list, there is ejb/mgmt/MEJB only, But I can see ejb/RemoteSessionBean at jndi tree via sun appserver 9 admin console.
Why, pls help me!!

