-
1. Re: The failover in the version of 2.3.BETA3
ataylor Jan 29, 2013 5:40 AM (in response to guangquanhao)Today I want to build up a nfs to implement the transaction-failover with sharing store,first I run the example in the directory of examples/jms,but it shows failure.
Why dont you start by explaining how the example fails, without this we cant really help you. As far as the 2 sec wait this is just there to allow the cluster to form, this is not actually a real worl example. Show us the error and maybe we can help. Oh and if you are using discovery, make sure you have a loopback address configured.
-
2. Re: The failover in the version of 2.3.BETA3
guangquanhao Jan 30, 2013 1:15 AM (in response to ataylor)I have read the documention carefully,I have realized that I failed because the client is blocking as described in 39.2.1.2 and 39.2.1.3
The exception is javax.jms.TransactionRolledBackException or HornetQException.UNBLOCKED.When I use non-transactional and set the property block-on-durable-send false,the I succeed.I think that the examples in hornetq can succeed because the server crashed when there were no flying messages in the network.But when I set the property block-on-durable-send true,I failed, the exception is "HornetQException[errorCode=5 message=Connection failure detected. Unblocking a blocking call that will never get a response]".The documention says we should handle the exceptions with other work,but I dont know how to do.