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

Missing interpretation of EJB-Annotation results in wrong call of dynamic method

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • trunk
    • core
    • None
    • Hide

      Invoke a method remotely via a plain interface on an annotated Session-Bean which implements the interface. The interface has multiple methods each having the same number of parameters (e.g. none) . The bean must not implement EJBObject.

      Show
      Invoke a method remotely via a plain interface on an annotated Session-Bean which implements the interface. The interface has multiple methods each having the same number of parameters (e.g. none) . The bean must not implement EJBObject.

    Description

      when looking up a method for invocation in StatefulContainer.dynamicInvoke():522 jboss tries to determine if it's an EJB-Object-Method via SessionSpecContainer.isEjBObjectMethod(). This results wrongly in "false" if the class in question doesn't implement EJBObject but has e.g. a @Stateful annotation.

      Futher the method EJBContainer.getNonBridgeMethod() seems to be rather optimistic in trying to find the correct method only according to the number of parameters.

      This was tested with jboss-6.0.0.M1, but the corresponding code in trunk seems to be the same.

      Attachments

        Issue Links

          Activity

            People

              jaikiran Jaikiran Pai (Inactive)
              tobiasgrundmann Tobias Grundmann (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: