I copied your code, ran it, and finally figured out what was wrong. The annotation
@Stateless(name="SimpleEJB") names the EJB, but it does not provide the JNDI
name for the EJB. The JNDI name, by default, is "SimpleEJB/remote" (or
"SimpleEJB/local").
So you can do one of two things.
Change your lookup code to read:
SimpleEJB sessEJBTest = (SimpleEJB)context.lookup("SimpleEJB/remote");
Or add a JBoss-specific annotation to your bean class:
@Stateless(name="SimpleEJB")
| @org.jboss.annotation.ejb.RemoteBinding(jndiBinding="SimpleEJB")
| public final class SimpleEJBBean implements SimpleEJB {
| ...
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957075#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...