ClientSessionInternal sessionInternal = (ClientSessionInternal) xaResource;
try
{
//this resets any tx stuff, we assume here that the tm and jca layer are well behaved when it comes to this
sessionInternal.resetIfNeeded();
}
catch (HornetQException e)
{
log.warn("problem resetting HornetQ xa session after failure");
}