Details
-
Bug
-
Resolution: Done
-
Major
-
7.1.1.Final
-
None
Description
In case that ejbPassivate (or ejbActivate etc.) method is defined in a superclass than it's not invoked on passivation event.
I suppose that this is slightly related to JBPAPP-8540 but in this case the method from parent class should be invoked. It's mentioned in EJB3 4.9.3
Compatibility Note: If the PostConstruct lifecycle callback interceptor method is the ejbCreate method, if the PreDestroy lifecycle callback interceptor method is the ejbRemove method, if the PostActivate lifecycle callback interceptor method is the ejbActivate method, or if the PrePassivate lifecycle callback interceptor method is the ejbPassivate method, these callback methods must be implemented on the bean class itself (or on its superclasses). Except for these cases, the method names can be arbitrary, but must not start with "ejb" to avoid conflicts with the callback methods defined by the javax.ejb.EnterpriseBean interfaces.
Please check my test: https://github.com/ochaloup/jboss-as/commit/ab1e4f27565e5c8989aa16a45a0f38d9bad8bf67