Hi,Ali
The jndi context and lookup source code are below:
jndiProps = new Hashtable<String, Object>();
jndiProps.put(Context.URL_PKG_PREFIXES, "org.jboss.ejb.client.naming");
InitialContext ctx = new InitialContext(jndiProps);
String ejbname = "ejb:" + appName + "/" + moduleName + "/" + distinctName + "UsersDao!com.hxchn.sms.UsersDaoRemote";
UsersDaoRemote usersDaoRemote=(UsersDaoRemote)ctx.lookup(ejbname);
do you put your Web Project and Ejb Project into one Project?It's very import!
Kola