[jboss-jira] [JBoss JIRA] (WFLY-4580) Lifecycle interceptors do not work

Xavier Dury (JIRA) issues at jboss.org
Mon May 4 09:33:45 EDT 2015


    [ https://issues.jboss.org/browse/WFLY-4580?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13065010#comment-13065010 ] 

Xavier Dury commented on WFLY-4580:
-----------------------------------

The problem is indeed coming from the way interceptors are declared (via {{@Interceptors}} they work; via {{beans.xml}} they don't). I opened an other issue for Weld (WELD-1945). This one can be closed.

> 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.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list