Using Interceptor on Method Inherited From Another Interface Does Not Work (Doc ID 1231387.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Weblogic Server - Version: 10.0 to 10.3
Information in this document applies to any platform.

Symptoms

Problem:

Let’s say we have 2 stateless Session Beans: SessionBeanA and SessionBeanB.

The SessionBeanBRemote interface extends the SessionBeanARemote interface.

One method is defined in the SessionBeanARemote interfae and one method is defined in the SessionBeanBRemote interface:

public interface SessionBeanBRemote extends SessionBeanARemote {
  String getOtherMessage(String name);
}

Methods defined in the Beans interface are intercepted (javax.interceptor.AroundInvoke; @AroundInvoke annotation), but when the getMessage() superinterface method is called from SessionBeanB, it is NOT being intercepted.


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms