/** * Returns the result of an operation invocation or an attribute value. * <br> * If an error occurred on the server, {@link #hasOperationSucceeded(Message)} will return {@code false}. * and the result will be a String corresponding to the server exception. */ public static Object getResult(final Message message) throws Exception { return ManagementHelper.getResult(JMSManagementHelper.getCoreMessage(message)); }
managementSession.start(); ClientMessage reply = requestor.request(managementMessage); long queueID = (Integer) ManagementHelper.getResult(reply); logMessage.append(queue).append(", "); buffer.putLong(queueID);