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!!

[770 byte] By [robinshang@msn.com] at [2007-11-26 9:27:56]
# 1

First, we don't recommend that you use the cosnaming provider. Use the naming provider in

our appserver instead. See our ejb faq for details :

https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#StandaloneRemoteEJB

How did you assign the global JNDI name for your EJB? Are you sure the ejb deployment

succeeded?The following entry has more on how ejb global JNDI names are defined in

our implementation :

https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html#SessionBeanGlobalJNDINa meAssignment

ksaks at 2007-7-7 0:08:30 > top of Java-index,Application & Integration Servers,Application Servers...