[jboss-user] [EJB 3.0] - EJB2 Client calling EJB3 Bean

tom.iten@gmx.net do-not-reply at jboss.com
Wed Nov 5 05:25:13 EST 2008


Hello everybody

I'm trying to run an EJB2 Client against an EJB3 SLSB, delivering the client 
an EJB2 Home interface with the usage of the @RemoteHome annotation. 

With JBoss 4.2.2.GA the sample is working fine, with JBoss 5.0.0.CR2 i'm
getting the following Message during the deploy:

java.lang.IllegalStateException: EJB 3.0 Core Specification Violation (4.6.7):
The session bean remote interface interface ... must extend the javax.ejb.EJBObject interface.

Remote Interface:

  | @Remote
  | public interface EJB3Remote {
  | 
  | 	public String echo(String message);
  | 
  | }
  | 


Home Interface:

  | public interface EJB3Home extends EJBHome {
  | 
  | 	public EJB3Remote create() throws CreateException, RemoteException;
  | 
  | }
  | 


Bean:

  | @Stateless
  | @RemoteHome(EJB3Home.class)
  | public class EJB3Bean implements EJB3Remote {
  | 
  | 	public String echo(String message) {
  | 
  | 		return "echo from EJB3 Bean <" + message + ">";
  | 	}
  | }
  | 

Thanks for any help.
Tom


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

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



More information about the jboss-user mailing list