[cdi-dev] [JBoss JIRA] (CDI-203) Decorator support for @MessageDriven bean MessageListener interface

Martin Kouba (JIRA) jira-events at lists.jboss.org
Mon Sep 24 11:13:35 EDT 2012


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

Martin Kouba commented on CDI-203:
----------------------------------

Hm, I always thought MDB is not a bean... so that it cannot have any bean types/qualifiers.

1.2.2. Relationship to EJB:
{quote}
Message-driven and entity beans are by nature non-contextual objects and may not be injected into other objects.
...
The container performs dependency injection on all session and message-driven bean instances, even those which are not contextual instances.
{quote}
                
> Decorator support for @MessageDriven bean MessageListener interface
> -------------------------------------------------------------------
>
>                 Key: CDI-203
>                 URL: https://issues.jboss.org/browse/CDI-203
>             Project: CDI Specification Issues
>          Issue Type: Feature Request
>          Components: Decorators, Java EE integration
>    Affects Versions: 1.1 (Proposed)
>            Reporter: David Blevins
>            Assignee: Pete Muir
>             Fix For: 1.1 (Proposed)
>
>
> Interceptors for message-driven beans are explicitly mentioned as supported in CDI 1.0, but decorator support appears to be left out.  Decorators that implement the message listener interface would be very useful.  As well, most contains have one stack now that does both interceptors and decorators, so enabling this for MDBs would be quite easy.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the cdi-dev mailing list