I am at work and i have created new EJB and deloy it its 1:1 with beffore and JBoss version here is 4.0.4- patch 1 The EJB is @Stateless(name="SimpleEJB") public class SimpleEJBBean implements SimpleEJB { public SimpleEJBBean() { } public String sayHello(String name) { return "Hello "+name; } } the EAR is the same with application.xml in it. and the JNDIView says this : listXML() invoke : 4.0.3 EJB 3 deploy org.jnp.interfaces.NamingContext
SimpleEJB org.jnp.interfaces.NamingContext remote $Proxy65 but in my test client public class TestClient { public static void main(String [] args) { try { final Context context = getInitialContext(); SimpleEJB sessEJBTest = (SimpleEJB)context.lookup("SimpleEJB"); sessEJBTest.sayHello("exxx"); } catch (Exception ex) { ex.printStackTrace(); } } private static Context getInitialContext() throws NamingException { Hashtable environment = new Hashtable(); environment.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); environment.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces"); environment.put(Context.PROVIDER_URL, "jnp://localhost:1099"); return new InitialContext(environment); } } result is the same : javax.naming.NameNotFoundException: SimpleEJB not bound at org.jnp.server.NamingServer.getBinding(NamingServer.java:529) at org.jnp.server.NamingServer.getBinding(NamingServer.java:537) at org.jnp.server.NamingServer.getObject(NamingServer.java:543) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3956857#3956857 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956857 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user