Author: ataylor
Date: 2011-03-17 09:36:04 -0400 (Thu, 17 Mar 2011)
New Revision: 10341
Modified:
branches/Branch_2_2_EAP/examples/common/src/org/hornetq/common/example/HornetQExample.java
branches/Branch_2_2_EAP/examples/jms/transaction-failover/src/org/hornetq/jms/example/TransactionFailoverExample.java
Log:
fixed tx failover example
Modified:
branches/Branch_2_2_EAP/examples/common/src/org/hornetq/common/example/HornetQExample.java
===================================================================
---
branches/Branch_2_2_EAP/examples/common/src/org/hornetq/common/example/HornetQExample.java 2011-03-17
12:22:19 UTC (rev 10340)
+++
branches/Branch_2_2_EAP/examples/common/src/org/hornetq/common/example/HornetQExample.java 2011-03-17
13:36:04 UTC (rev 10341)
@@ -113,7 +113,7 @@
file.createNewFile();
// Sleep longer than the KillChecker check period
- Thread.sleep(1000);
+ Thread.sleep(3000);
}
protected void stopServer(final int id) throws Exception
Modified:
branches/Branch_2_2_EAP/examples/jms/transaction-failover/src/org/hornetq/jms/example/TransactionFailoverExample.java
===================================================================
---
branches/Branch_2_2_EAP/examples/jms/transaction-failover/src/org/hornetq/jms/example/TransactionFailoverExample.java 2011-03-17
12:22:19 UTC (rev 10340)
+++
branches/Branch_2_2_EAP/examples/jms/transaction-failover/src/org/hornetq/jms/example/TransactionFailoverExample.java 2011-03-17
13:36:04 UTC (rev 10341)
@@ -151,9 +151,10 @@
if (killServer)
{
+ Thread.sleep(2000);
+
killServer(0);
- Thread.sleep(2000);
}
// We send the remaining half of messages