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

TimeoutMethodCallbackRequirements doesn't take into account the timeout method parameters

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • depchain-1.0.0-alpha-4
    • EJB3_1 1.0.7, bom-eap5-0.1.2
    • timeout
    • None
    • jboss-ejb3-timeout:0.2.1

    Description

      Consider the following base class:
      public class Base
      {

      protected void onTimeout()

      { ... }

      }

      and a EJB impl class which extends it:

      @Stateless
      public class Bean extends Base
      {

      protected void onTimeout(Timer timer)

      { // This one should *not* be picked up, based on the ejb-jar.xml }

      }

      and the corresponding ejb-jar.xml which marks the onTimeout() method (the one in Base class without any params) as the timeout callback method:

      <timeout>

      <method-name>onTimeout</method-name>
      <method-params>
      </method-params>
      </timeout>

      Based on this configuration and code, the Base.onTimeout() method must be chosen as the timeout callback method, but because of the lack of information of method param types, the TimeoutMethodCallbackRequirements, incorrectly, ends up picking the Bean.onTimeout(Timer timer) method as the timeout callback method.

      Attachments

        Activity

          People

            jaikiran Jaikiran Pai (Inactive)
            jaikiran Jaikiran Pai (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: