From ea1651b6639972b2937f8fedcca175d4b55b248c Mon Sep 17 00:00:00 2001 From: Clebert Suconic Date: Thu, 28 Jul 2016 17:32:01 -0400 Subject: [PATCH] ARTEMIS-565 fixing pre-ack example --- .../activemq/artemis/jms/example/PreacknowledgeExample.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/features/standard/pre-acknowledge/src/main/java/org/apache/activemq/artemis/jms/example/PreacknowledgeExample.java b/examples/features/standard/pre-acknowledge/src/main/java/org/apache/activemq/artemis/jms/example/PreacknowledgeExample.java index 834b54a778..5c809f8de2 100644 --- a/examples/features/standard/pre-acknowledge/src/main/java/org/apache/activemq/artemis/jms/example/PreacknowledgeExample.java +++ b/examples/features/standard/pre-acknowledge/src/main/java/org/apache/activemq/artemis/jms/example/PreacknowledgeExample.java @@ -118,7 +118,7 @@ public class PreacknowledgeExample { Message response = requestor.request(m); - int messageCount = (Integer) JMSManagementHelper.getResult(response); + int messageCount = (Integer) JMSManagementHelper.getResult(response, Integer.class); return messageCount; }