You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by "Jonathan Gallimore (Jira)" <ji...@apache.org> on 2022/04/04 13:06:00 UTC

[jira] [Created] (TOMEE-3889) Invalid ObjectName for MDB listening to wildcard destination

Jonathan Gallimore created TOMEE-3889:
-----------------------------------------

             Summary: Invalid ObjectName for MDB listening to wildcard destination
                 Key: TOMEE-3889
                 URL: https://issues.apache.org/jira/browse/TOMEE-3889
             Project: TomEE
          Issue Type: Bug
            Reporter: Jonathan Gallimore
            Assignee: Jonathan Gallimore


The following MDB will work ok, but fail to register a JMX MBean as the MBean ObjectName cannot contain an asterisk:

 

@MessageDriven(
activationConfig = {
@ActivationConfigProperty(propertyName = "destination", propertyValue = "dest.*.event"),
@ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Topic"),
}
)
public static class WildcardMdb implements MessageListener {
@Override
public void onMessage(final Message message) {
System.out.println("Message received");
}
}

 

 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)