Description
Trying to get the "deliveryModes2 from an Address by using the management queue from a client causes the following exception:
AMQ222112: exception while retrieving attribute deliveryModes on address.8c7fdeb1-7b6d-4a62-ba46-ebc9 eption: AMQ119034: Params for management operations must be of the following type: int long double String boolean Map or array thereof but found java.util.HashSet
Session sessionJMS = ... Queue managementQueue = ActiveMQJMSClient.createQueue("activemq.management"); QueueRequestor requestorJMS = new QueueRequestor((QueueSession) sessionJMS, managementQueue); Message m = sessionJMS.createMessage(); JMSManagementHelper.putAttribute(m, ResourceNames.BROKER, "addressNames"); Message r = requestorJMS.request(m); Object t = JMSManagementHelper.getResult(r); for (Object o : (Object[]) t) { String adressName = (String) o; m = sessionJMS.createMessage(); JMSManagementHelper.putAttribute(m, ResourceNames.ADDRESS + adressName, "deliveryModes"); r = requestorJMS.request(m); // Fails with AMQ119034 }
(I will attach the full stack trace separatly)
Attachments
Attachments
Issue Links
- is related to
-
ARTEMIS-1075 Add Routing Type to QueueControl management API
- Closed
- links to