다음과 같은 EJB 사양 위반 사례를 보고합니다.

예:


@Stateless
public class ExampleBean {

  @Interceptors(GoodInterceptor.class)
  public void getSomeData() { ... }

  @Interceptors(EmptyInterceptor.class)
  public void getSomeData() { ... }
}

class GoodInterceptor {

  @AroundInvoke
  public Object logAll(InvocationContext context) throws Exception { ... }

  @PostConstruct
  public Object logCreate(InvocationContext context) throws Exception { ... }
}

class EmptyInterceptor {} // 오류: 특정 메서드를 포함하지 않는 인터셉터 클래스