params.put("BrokerName", broker.getBrokerName());
params.put("Type", "Queue");
params.put("Destination", queueName);
ObjectName queueObjectName = ObjectName.getInstance(amqDomain, params);
ManagementContext mgmtCtx = broker.getManagementContext();
QueueViewMBean queueView = (QueueViewMBean)mgmtCtx.newProxyInstance(queueObjectName, QueueViewMBean.class, true);
Object[] messages = (Object[]) queueView.browse();
LOG.info("+Browsed with JMX: " + messages.length);