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

                 Key: OPENEJB-1124
                 URL: https://issues.apache.org/jira/browse/OPENEJB-1124
             Project: OpenEJB
          Issue Type: Bug
          Components: interceptors
    Affects Versions: 3.1.2
         Environment: WinXP / Java 5
            Reporter: Alexander


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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to