[cdi-dev] self interception for CDI beans

Mark Struberg struberg at yahoo.de
Wed Jan 9 05:39:26 EST 2013


For EJBs there is a 'self-interception' defined. E.g.

public class MyEjb {
 public String someBusinessMehod() {
  returns "Schneewittchen";

 public Object interceptMe(InvocationContext ic) throws Exception {
  System.out.println("got intercepted");

  return ic.proceed();


But should the same trick also work for CDI beans when replacing @Stateless with @SessionScoped ?


More information about the cdi-dev mailing list