users@ejb-spec.java.net

[ejb-spec users] Re: A small interceptor question

From: Marina Vatkina <marina.vatkina_at_oracle.com>
Date: Fri, 26 Oct 2012 12:48:36 -0700

Pete Muir wrote:
> On 26 Oct 2012, at 14:59, Jean-Louis MONTEIRO wrote:
>
>
>> 2012/10/26 Pete Muir <pmuir_at_bleepbleep.org.uk>
>>
>>>> There is a different behavior if the inherited class is a component or a simple class for EJB.
>>>>
>> What is this difference?
>>
>>
>> 4.9.2.1 Session Bean Superclass
>> --> says that no behavior inherited from another component (ie. session bean)
>>
>> 4.9.2 Session Bean Class
>> --> non-component-defining annotations are inherited by the subclass
>>
>> Don't you have the same reading?
>>
>
> Sorry, I was being lazy ;-)
>
> Anyway, this is still not really the issue, AIUI.
>
> We're talking about if a subclass adds an interceptor, is it applied to the methods defined on the superclass, or not?

Yes, if a) the subclass is also an EJB, and b) superclass methods are
part of the subclass bean view or timeout methods.

> (Mark, correct me if I got that wrong).