activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From clebertsuco...@apache.org
Subject activemq-artemis git commit: fixing management example
Date Thu, 28 Jul 2016 15:43:02 GMT
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 <clebertsuconic@apache.org>
Authored: Thu Jul 28 11:42:51 2016 -0400
Committer: Clebert Suconic <clebertsuconic@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


Mime
View raw message