Details
Description
If an XA prepare() raises an exception back to the client it results in the warning
WARN FailoverTransport - Transport (tcp://127.0.0.1:61249) failed, reason: java.io.IOException: Unexpected error occured: java.lang.ClassCastException: org.apache.activemq.command.ExceptionResponse cannot be cast to org.apache.activemq.command.IntegerResponse, attempting to automatically reconnect
which triggers a failover reconnect and a replay of the transaction which then causes
2013-12-20 13:38:12,581 [main] - WARN TransactionContext - prepare of: XID:[86,globalId=00000001,branchId=00000001] failed with: javax.jms.JMSException: Cannot call prepare now.