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

Interceptors not being called for business methods implemented by superclass

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • AS 5.0.0.CR1
    • EJB 3.0 RC5 - PFD
    • None
    • None
    • Workaround Exists
    • Hide

      It is possible to work around this by overriding the methods in the subclass and calling the superclass implementation.

      Show
      It is possible to work around this by overriding the methods in the subclass and calling the superclass implementation.

    Description

      I have an abstract superclass for a number of stateless session beans that provide DAO-like functionality - the superclass provides CRUD functionality for a generic type. I am trying to add external interceptors (that contain @AroundInvoke methods), but the interceptors are not being called for any of the business methods implemented by the super-class (I've tried putting @Interceptors on the subclasses and/or the superclass).

      I think that's a bug - at least it's not what I expected to happen. As far as I can tell the section on interceptors in the ejbcore spec doesn't explicitly state what the behaviour should be.

      This is different to issue EJBTHREE-376 that concerned @AroundInvoke methods in superclasses - and the test cases added for that bug do not include any business methods implemented by the superclass.

      I will attach my simplified test case.

      Attachments

        Activity

          People

            rhn-engineering-cdewolf Carlo de Wolf
            amayingenta_jira Andrew May (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: