]
Xavier Dury commented on WFLY-4580:
-----------------------------------
WELD-1391 is very similar to my issue (and seems to have been fixed before Weld 2.0 final)
but there I see that interceptors are declared via {{@Interceptors}} whereas I'm
declaring them in {{beans.xml}}. Maybe this issue should be transferred to WELD...
Lifecycle interceptors do not work
----------------------------------
Key: WFLY-4580
URL:
https://issues.jboss.org/browse/WFLY-4580
Project: WildFly
Issue Type: Bug
Components: CDI / Weld
Affects Versions: JBoss AS7 7.1.1.Final, 8.2.0.Final
Reporter: Xavier Dury
Assignee: Stuart Douglas
I've been trying to use lifecycle interceptors (intercepting PostConstruct and
PreDestroy, see
https://issues.jboss.org/browse/WELD-1346 for reference) in my project and
those do not seem to work at all (nor on enterprise managed beans nor on regular CDI
managed beans).
I tried on both JBoss AS 7.1.1 and Wildfly 8.2.0 but lifecycle interceptors are never
called while other interceptors (AroundInvoke) are.
I tested the same code on OpenEJB and it works.