You probably are not using the correct jndi-name while doing the lookup in the 
client. Use the JNDIView 
http://wiki.jboss.org/wiki/DisplayTheJNDITreeWithTheJMXConsole to list the 
contents of the jndi-tree and see what's the jndi-name for your bean. 

Alternately, you can annotate the bean to use a jndi-name of your choice and 
use that jndi-name in your client lookup.

@Stateless
  | @RemoteBinding(jndiBinding = "MyJNDIName")
  | public class TestMyBean implements MyBeanLocal {

Client code:

MyBeanLocal bean = (MyBeanLocal) ctx.lookup("MyJNDIName");

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149351#4149351

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149351
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to