Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-1071

Business Interface must not extend EJBObject or EJBLocalObject

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • AS 5.0.0.Beta3
    • None
    • None
    • None

      EJB3 Spec 4.6.6 Bullet 1:

      "The following are the requirements for the session bean's business interface:

      • The interface must not extend the javax.ejb.EJBObject or javax.ejb.EJBLocalObject interface."

      ...thus the following construct:

      public interface StatefulRemote extends EJBObject

      {...}

      ...and:

      @Stateful
      @Remote(StatefulRemote.class)
      @RemoteBinding(jndiBinding = StatefulRemote.JNDI_NAME_REMOTE)
      public class StatefulRemoteBean

      ...should fail with a deployment exception referencing the specification.

            arubinge@redhat.com Andrew Rubinger (Inactive)
            arubinge@redhat.com Andrew Rubinger (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: