Why should it be stated clearer?
The bean class implementing the SessionBean interface or not is
completely unrelated to anything defined on the interceptor classes.
I think it would only complicate understanding to imply such a relationship.
Carlo
On 09/07/2011 03:46 AM, Marina Vatkina wrote:
> Experts,
>
> Please advise on the following clarification request marked as XXX
> under section 4.3.5 The SessionBean Interface
>
> Q Would interceptor classes apply as well? If yes, how it should be
> stated?
>
> "If the session bean implements the SessionBean interface, the
> PreDestroy annotation on the bean class can only be applied to the
> ejbRemove method; the PostActivate annotation can only be applied to
> the ejbActivate method; the PrePassivate annotation can only be
> applied to the ejbPassivate method. Similar requirements apply to use
> of deployment descriptor metadata as an alternative to the use of
> annotations. "
>
> thanks,
> -marina