users@glassfish.java.net

Re: Interceptors & inheritance

From: <forums_at_java.net>
Date: Thu, 26 Sep 2013 20:43:53 -0500 (CDT)

If you are looking at the EJB 3.0 spec that the answer is "When annotations
are used, one or more interceptor classes are denoted using the Interceptors
annotation on the bean class itself and/or on business methods of the bean."
I.e. bean superclasses are not processed for the Interceptors annotation. EJB
3.1 clarified this further by specifying: "The session bean class may have
superclasses and/or superinterfaces. If the session bean has superclasses,
the business methods, lifecycle callback interceptor methods, the timeout
callback methods, the methods implementing the optional session
synchronization notifications,,the Init or ejbCreate methods, the Remove
methods, and the methods of the SessionBean interface, may be defined in the
session bean class, or in any of its superclasses." -marina

--
[Message sent by forum member 'mvatkina']
View Post: http://forums.java.net/node/674242