What annotation do you have on your interface. It should be:
import javax.ejb.Remote;
| @Remote
| public interface SimpleEJB {
| String sayHello(String name);
| }
Note that SessionEJB is of type NamingContext, so it is not the EJB (or its proxy), but
rather is a directory, hence the reason for the ClassCastException.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957122#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...