switched away from using the MBeans due to strangeness when used in JSP EL on some JVMs

git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@399301 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
James Strachan 2006-05-03 13:40:37 +00:00
parent 44493e4997
commit b402c79da1

View File

@ -76,6 +76,8 @@ public class BrokerFacade {
}
// TODO - we should not have to use JMX to implement the following methods...
/*
public Collection getQueues() throws Exception {
BrokerView broker = brokerService.getAdminView();
if (broker == null) {
@ -84,6 +86,15 @@ public class BrokerFacade {
ObjectName[] queues = broker.getQueues();
return getManagedObjects(queues, QueueViewMBean.class);
}
*/
public Collection getQueues() throws Exception {
ManagedRegionBroker broker = getManagedBroker();
if (broker == null) {
return new ArrayList();
}
return broker.getQueueRegion().getDestinationMap().values();
}
public Collection getTopics() throws Exception {
BrokerView broker = brokerService.getAdminView();
@ -119,10 +130,6 @@ public class BrokerFacade {
}
/**
* public Collection getQueues() throws Exception { ManagedRegionBroker
* broker = getManagedBroker(); if (broker == null) { return new
* ArrayList(); } return
* broker.getQueueRegion().getDestinationMap().values(); }
*
*
* public Collection getTopics() throws Exception { ManagedRegionBroker