try { Properties props = new Properties();
props.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
props.setProperty("java.naming.provider.url", "localhost:1099");
InitialContext jndiContext;
jndiContext   =   new   InitialContext(props);
SearchRemote search = (SearchRemote)jndiContext.lookup("search");
用localhost可以不报错,但是改为我的ip后报错search not bound;但是jndi中有search;启动jboss也是改为0.0.0.0了
各位大侠帮帮忙啊