1 Reply Latest reply on Nov 16, 2006 1:09 PM by Robert Benkovitz

    Exposing EJB3.0 SLSB to an EJB2.1 Client

    Robert Benkovitz Newbie

      Hello:

      I realize this is theoretically possible - however, I am having trouble putting it into practice. The included tutorial http://docs.jboss.org/ejb3/app-server/tutorial/ejb21_client_adaptors/ejb21_client_adaptors.html is painfully thin on detail. Has anyone succeeded in deploying one?

      Some questions:

      1) Does the remote home (declared via the @RemoteHome annotation) class need to be a concrete class, or just an interface?
      2) Does the container class that implements the remote interface have to provide the implementation of the javax.ejb.EJBObject?
      3) does anyone have a concrete example, with all necessary interfaces/classes?

      Thanks for any help.

        • 1. Re: Exposing EJB3.0 SLSB to an EJB2.1 Client
          Robert Benkovitz Newbie

          Another question - I'm assuming that the EJB2.1 clients will NOT need the jboss-ejb3-client.jar (that would kind of defeat the purpose).

          When I deploy the annotated bean and try to look it up, I keep getting the following exception:

          java.lang.ClassNotFoundException: org.jboss.ejb3.stateless.StatelessRemoteProxy (no security manager: RMI class loader disabled)


          Obviously my client would not have this class, not being EJB3 enabled.