MBeanServer returns MBean names that do not match filter
--------------------------------------------------------
Key: WFLY-5263
URL:
https://issues.jboss.org/browse/WFLY-5263
Project: WildFly
Issue Type: Bug
Components: JMX
Affects Versions: 10.0.0.Beta2
Reporter: Thomas Diesler
Assignee: Kabir Khan
Fix For: 10.0.0.CR1
This code
{code}
MBeanServer server = ManagementFactory.getPlatformMBeanServer();
for (ObjectName oname : server.queryNames(new
ObjectName("*:type=context,*"), null)) {
System.out.println(oname);
}
{code}
gives
{code}
16:51:25,842 INFO [stdout] (pool-3-thread-1)
org.apache.camel:context=swagger-test,type=context,name="swagger-test"
16:51:25,842 INFO [stdout] (pool-3-thread-1)
jboss.jsr77:j2eeType=J2EEServer,name=default
16:51:25,843 INFO [stdout] (pool-3-thread-1)
jboss.jsr77:j2eeType=JVM,name=default,J2EEServer=default
16:51:25,843 INFO [stdout] (pool-3-thread-1)
jboss.jsr77:j2eeType=J2EEDomain,name=jboss.jsr77
{code}