[cdi-dev] [JBoss JIRA] (CDI-205) Invocations of message listener methods of message-driven beans during message delivery should not be business method invocations

Martin Kouba (Reopened) (JIRA) jira-events at lists.jboss.org
Mon Jan 2 05:51:09 EST 2012


     [ https://issues.jboss.org/browse/CDI-205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Kouba reopened CDI-205:
------------------------------



bq. Invocations of MDBs should be intercepted, I don't think there is any doubt of this, given the wording of chapter 9 and 7.2.

bq. Furthermore, I don't see why something being a business method invocation requires something to be a CDI bean?

Ok. My description was not precise. The problem is in following sentence: "When the container invokes a method of a bean, the invocation..." - as MDB is not a CDI bean this should be something like "When the container invokes a method of a bean or Java EE component, the invocation...".

And maybe we should explicitly state that MDB invocations are not decorated as "Decorators may be associated with any managed bean that is not itself an interceptor or decorator or with any EJB session bean."
                
> Invocations of message listener methods of message-driven beans during message delivery should not be business method invocations
> ---------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CDI-205
>                 URL: https://issues.jboss.org/browse/CDI-205
>             Project: CDI Specification Issues
>          Issue Type: Bug
>    Affects Versions: 1.0, 1.1.EDR1
>            Reporter: Martin Kouba
>            Priority: Critical
>
> *7.2. Container invocations and interception* states:
> When the container invokes a method of a bean, the invocation may or may not be treated as a business method invocation:
> * Invocations of message listener methods of message-driven beans during message delivery are business method invocations.
> As MDBs are not CDI beans their methods shouldn't be business invocations (and thus should not pass through method interceptors and decorators).
> If the original intent was to support such use case the spec should be reworded.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the cdi-dev mailing list