I have interceptor class. In it one @PostConstruct method is defined. I am attaching this interceptor class to one stateless session bean. In the Stateless session bean there is also one @PostConstruct method is defined.
When executing both the post construct methods are executing. I want to suppress execution of post construct method in interceptor class, so I use @ExcludeClassInterceptors annotation to the PostConstruct method defined in bean class. But still both method are executing.
Is it a right approach ? Is the @ExcludeClassInterceptors applicable to life-cycle methods, or simply ignored ?