mirror of
https://github.com/apache/activemq.git
synced 2025-02-16 23:16:52 +00:00
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:
parent
44493e4997
commit
b402c79da1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user