現在、Weblogic 12c を評価していますが、インターセプターは weblogic によって呼び出されません。コードは ear の lib フォルダ内のライブラリに入れられます。インターセプターは、@Extern を使用して ejb モジュール内の EJB にバインドされます。beans.xml で有効にしました。このコードは、Glassfish 3.1.2 および Jboss 7.1.1 で実行されます。weblogic のバグレポートを見つけようとしましたが、問題を正しく説明しているものは見つかりませんでした。なぜこれがバグレポートにならなかったのだろうかと思うので、単に失敗があるかどうかを知りたいだけです。
@Interceptor
@BindOuterScope
public class OuterScopeInterceptor
{
@Inherited
@InterceptorBinding
@Target({TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface BindOuterScope
{
}
@AroundInvoke
public Object invoker(InvocationContext ctx) throws Exception
{
}
}
@Inherited
@InterceptorBinding
@Target({TYPE})
@Retention(RetentionPolicy.RUNTIME)
@BindOuterScope
public @interface Extern
{
}