This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
1. If i use Interceptors in a Session bean or MDB then the interceptors would be applied to all business methods? 2. If i want to apply inteceptors to only one business methods how can i achieve it ?
posted 9 years ago
When the @Interceptors annotation is applied to an individual method, that interceptor is executed only when that particular method is invoked. If you use the @Interceptors annotation on the bean class, all interceptor classes listed will interpose on every method invocation of every business method of the EJB