resolve https://issues.apache.org/activemq/browse/AMQ-2880 - variant of patch applied with test case, added one and two phase variants, context needed to deal with failure as did xa transaction