[jboss-user] [EJB 3.0] - Re: Remote Client to EJB 3.0 fail .. :( javax.naming.Communi

PeterJ do-not-reply at jboss.com
Tue Jul 11 15:38:33 EDT 2006


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#3957122

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3957122



More information about the jboss-user mailing list