You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by cl...@apache.org on 2016/07/28 15:43:02 UTC

activemq-artemis git commit: fixing management example

Repository: activemq-artemis
Updated Branches:
  refs/heads/master 9a9f23e8a -> 5e631c305


fixing management example


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/5e631c30
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/5e631c30
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/5e631c30

Branch: refs/heads/master
Commit: 5e631c305370b480681483038c52f42b28ba6611
Parents: 9a9f23e
Author: Clebert Suconic <cl...@apache.org>
Authored: Thu Jul 28 11:42:51 2016 -0400
Committer: Clebert Suconic <cl...@apache.org>
Committed: Thu Jul 28 11:42:51 2016 -0400

----------------------------------------------------------------------
 .../org/apache/activemq/artemis/jms/example/ManagementExample.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/5e631c30/examples/features/standard/management/src/main/java/org/apache/activemq/artemis/jms/example/ManagementExample.java
----------------------------------------------------------------------
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 8c780c3..73375d6 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