fixing management example

This commit is contained in:
Clebert Suconic 2016-07-28 11:42:51 -04:00
parent 9a9f23e8a5
commit 5e631c3053
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ public class ManagementExample {
Message reply = requestor.request(m); Message reply = requestor.request(m);
// Step 15. Use a helper class to retrieve the operation result // 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"); System.out.println(queue.getQueueName() + " contains " + messageCount + " messages");
// Step 16. Create another JMS message to use as a management message // Step 16. Create another JMS message to use as a management message