[cdi-dev] [JBoss JIRA] (CDI-696) Decorator for MDB is not used

Alexandr Sokolov (JIRA) issues at jboss.org
Fri Mar 10 04:17:00 EST 2017

Alexandr Sokolov created CDI-696:

             Summary: Decorator for MDB is not used
                 Key: CDI-696
                 URL: https://issues.jboss.org/browse/CDI-696
             Project: CDI Specification Issues
          Issue Type: Bug
          Components: Decorators, Java EE integration
            Reporter: Alexandr Sokolov

Guys, I'm using Wildfly 8.2.1.Final
Here is MDB bean:

@MessageDriven(activationConfig = {
        @ActivationConfigProperty(propertyName = "destinationLookup",
                propertyValue = "topic/dse"),
        @ActivationConfigProperty(propertyName = "destinationType",
                propertyValue = "javax.jms.Topic")
public class JobChangedSubscriber implements MessageListener {
    public void onMessage(final Message message) {

And decorator:

public class RetroplannerSubscriber implements MessageListener {
    JobChangedSubscriber jobChangedSubscriber;

    public void onMessage(Message message) {
        //custom code

During deployment, all mistakes about decorator definition are shown. They were fixed. I was sure it would work. But now, only JobChangedSubscriber.onMessage() is invoked.

As a user I want to decorate MDB as an usual CDI bean. What am I doing wrong? 

This message was sent by Atlassian JIRA

More information about the cdi-dev mailing list