Author: ataylor
Date: 2011-03-07 07:06:25 -0500 (Mon, 07 Mar 2011)
New Revision: 10294
Modified:
branches/Branch_2_2_EAP/examples/jms/paging/src/org/hornetq/jms/example/PagingExample.java
Log:
tweaked paging example to run quicker
Modified:
branches/Branch_2_2_EAP/examples/jms/paging/src/org/hornetq/jms/example/PagingExample.java
===================================================================
---
branches/Branch_2_2_EAP/examples/jms/paging/src/org/hornetq/jms/example/PagingExample.java 2011-03-07
11:37:16 UTC (rev 10293)
+++
branches/Branch_2_2_EAP/examples/jms/paging/src/org/hornetq/jms/example/PagingExample.java 2011-03-07
12:06:25 UTC (rev 10294)
@@ -86,8 +86,8 @@
// Step 12. We don't need persistent messages in order to use paging. (This
step is optional)
messageProducer.setDeliveryMode(DeliveryMode.NON_PERSISTENT);
- // Step 13. Send the message for about 30K, which should be over the memory
limit imposed by the server
- for (int i = 0; i < 30000; i++)
+ // Step 13. Send the message for about 1K, which should be over the memory limit
imposed by the server
+ for (int i = 0; i < 1000; i++)
{
messageProducer.send(message);
}
@@ -106,7 +106,7 @@
// paging
// until messages are ACKed
- for (int i = 0; i < 30000; i++)
+ for (int i = 0; i < 1000; i++)
{
message = (BytesMessage)messageConsumer.receive(3000);
Show replies by date