Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-1124

@Interceptors not executed if the implemented Local/Remote Interface inherits from another interface

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.1.2
    • None
    • interceptors
    • None
    • WinXP / Java 5

    Description

      Hi Everyone,

      My Stateless EJB registers a simple logging interceptor.

      @Stateless
      public class MyCommandImpl implements MyCommandLocal {

      @Interceptors(CompensationRegistry.class)
      public String execute()

      { return "Some stuff"; }

      }

      Now, if the implemented interface does not inherit from another interface, everything is fine:

      @Local
      public interface MyCommandLocal {
      public String execute();
      }

      But if it inherits from another interface, the interceptor does not get called:

      @Local
      public interface MyCommandLocal extends ICommand {
      public String execute();
      }

      Is this a bug or am I wrong?

      Best regards!
      Alexander

      Attachments

        Activity

          People

            Unassigned Unassigned
            alxp42 Alexander
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: