From 5e631c305370b480681483038c52f42b28ba6611 Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Thu, 28 Jul 2016 11:42:51 -0400 Subject: [PATCH] fixing management example --- .../apache/activemq/artemis/jms/example/ManagementExample.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/features/standard/management/src/main/java/org/apache/activemq/artemis/jms/example/ManagementExample.java b/examples/features/standard/management/src/main/java/org/apache/activemq/artemis/jms/example/ManagementExample.java index 8c780c36e1..73375d62b3 100644 --- a/examples/features/standard/management/src/main/java/org/apache/activemq/artemis/jms/example/ManagementExample.java +++ b/examples/features/standard/management/src/main/java/org/apache/activemq/artemis/jms/example/ManagementExample.java @@ -87,7 +87,7 @@ public class ManagementExample { Message reply = requestor.request(m); // Step 15. Use a helper class to retrieve the operation result - int messageCount = (Integer) JMSManagementHelper.getResult(reply); + int messageCount = (Integer) JMSManagementHelper.getResult(reply, Integer.class); System.out.println(queue.getQueueName() + " contains " + messageCount + " messages"); // Step 16. Create another JMS message to use as a management message