Skip to content

Commit 154423f

Browse files
ARTEMIS-565 fixing pre-ack example
1 parent 58253c7 commit 154423f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/features/standard/pre-acknowledge/src/main/java/org/apache/activemq/artemis/jms/example/PreacknowledgeExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private static int getMessageCount(final Connection connection) throws Exception
118118

119119
Message response = requestor.request(m);
120120

121-
int messageCount = (Integer) JMSManagementHelper.getResult(response);
121+
int messageCount = (Integer) JMSManagementHelper.getResult(response, Integer.class);
122122

123123
return messageCount;
124124
}

0 commit comments

Comments
 (0)