[ 
https://issues.apache.org/jira/browse/OPENEJB-535?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12893028#action_12893028
 ] 

karan singh malhi commented on OPENEJB-535:
-------------------------------------------

Adding more details from the spec:
"If the session bean implements the SessionBean interface, the PreDestroy 
annotation 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 ejbPassivatemethod. Similar requirements 
apply to use of deployment descriptor metadata as an alternative to the use of 
annotations."

> Validation: beans implementing javax.ejb.SessionBean also using lifecycle 
> annotations
> -------------------------------------------------------------------------------------
>
>                 Key: OPENEJB-535
>                 URL: https://issues.apache.org/jira/browse/OPENEJB-535
>             Project: OpenEJB
>          Issue Type: Sub-task
>          Components: ejb3 simplified
>    Affects Versions: 3.1.x
>            Reporter: David Blevins
>            Assignee: karan singh malhi
>             Fix For: 3.1.x
>
>
> Doing this would be a big no-no

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to