[ https://issues.apache.org/jira/browse/AMQ-5656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jeff Genender reopened AMQ-5656: -------------------------------- This change breaks the webconsole and is not complete. When selectively allowing JMX entires, the ManagementContext still sends back a list onjects even though those MBeans are not allowed to register. Hence the webconsole blows up with: org.apache.jasper.JasperException: An exception occurred processing JSP page /topics.jsp at line 55 52: <c:forEach items="${requestContext.brokerQuery.topics}" var="row"> 53: <tr> 54: <td><a href="<c:url value="send.jsp"> 55: <c:param name="JMSDestination" value="${row.name}" /> 56: <c:param name="JMSDestinationType" value="topic"/></c:url>"><form:tooltip text="${row.name}" length="50"/></a></td> 57: <td><c:out value="${row.consumerCount}" /></td> 58: <td><c:out value="${row.enqueueCount}" /></td> The mbeans need to be filtered on request for their lists for what is being supressed through the ManagedRegionBroker, or the webconsole will need filtering code everywhere for MBean calls that have no ability to be called. > Support selective MBean creation > -------------------------------- > > Key: AMQ-5656 > URL: https://issues.apache.org/jira/browse/AMQ-5656 > Project: ActiveMQ > Issue Type: Improvement > Components: Broker, JMX > Reporter: Martin Lichtin > Assignee: Gary Tully > Labels: jmx, scalability > Fix For: 5.12.0 > > > A continuation of > http://activemq.2283324.n4.nabble.com/How-to-disable-MBeans-creation-tp4692863p4692904.html > where I asked about a feature to suppress MBean creation for certain > objects, such as sessions, producers, consumers. > Quoting Gary: > {quote} > There is a single code entry point > ([ManagementContext.registerMBean|https://github.com/apache/activemq/blob/master/activemq-broker/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java#L391]) > for all MBean registration in the broker so gating that on a filter or > regexp match may be all that we need. > {quote} -- This message was sent by Atlassian JIRA (v6.3.4#6332)