/** * Stores a resource attribute in a JMS message to retrieve the value from the server resource. * * @param message JMS message * @param resourceName the name of the resource * @param attribute the name of the attribute * @throws JMSException if an exception occurs while putting the information in the message * * @see ResourceNames */ public static void putAttribute(final Message message, final String resourceName, final String attribute) throws JMSException { ManagementHelper.putAttribute(JMSManagementHelper.getCoreMessage(message), resourceName, attribute); }
ManagementHelper.putAttribute(managementMessage, "core.queue." + queue, "ID"); managementSession.start(); ClientMessage reply = requestor.request(managementMessage);