Hello,
While toying with interceptors I constated that my method level interceptors were not called if no class level interceptor is defined.
So this doesn't work:
@Stateless
@Remote(TestStateless.class)
public class TestStatelessBean implements TestStateless {
@EJB
private EJBSec secBean;
@Interceptors({TracingInterceptor.class})
public String callMe(int x) {
System.out.println("some test: " + x);
return "tata " + secBean.sayHello("one!");
}
@Interceptors({TracingInterceptor.class})
public void callMeToo(int x) {
System.out.println("call me too");
}
}fixed in latest downloadable bundle. See RC4 announcement for details.