new ObjectName("org.apache.qpid:type=VirtualHost.Queue,VirtualHost=\""
+ qpidService.getVirtualHostName() + "\",name=\"" +
Utils.getTenantBasedQueueName(queueName) + "\"");
return mBeanServer.getAttribute(objectName, attributeName);
} catch (MalformedObjectNameException e) {
throw new MessageBoxException("Can not find the mbean for the queue " + queueName);
} catch (InstanceNotFoundException e) {
// if the queue is not found we return 0
return null;
} catch (ReflectionException e) {
throw new MessageBoxException("Can not find the mbean for the queue " + queueName);
} catch (AttributeNotFoundException e) {
throw new MessageBoxException("Can not find the mbean for the queue " + queueName);
} catch (MBeanException e) {
throw new MessageBoxException("Can not find the mbean for the queue " + queueName);
}
}