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.
I have read the documention carefully,I have realized that I failed because the client is blocking as described in 220.127.116.11 and 18.104.22.168
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.