[jboss-jira] [JBoss JIRA] (WFLY-5263) MBeanServer returns MBean names that do not match filter

Kabir Khan (JIRA) issues at jboss.org
Wed Sep 2 10:33:05 EDT 2015


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

Kabir Khan commented on WFLY-5263:
----------------------------------

This turns out to be because the JSR 77 mbean server plugin does not filter out matches which do not match the wildcard (hence the move back to WFLY, I moved it to WFCORE when assuming that )

I am a bit stumped that this works in WF 9.0.0.CR1, since this code has been the same for a long time. Perhaps your config there is not using the jsr77 subsystem?

> 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}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jboss-jira mailing list