-
1. Re: Issue with Transaction Timeout and MDB's
timfox Apr 16, 2010 4:52 AM (in response to ataylor)This wait is valid for non XA rollback since it's illegal for rollback to be called from a different thread.
However for XA rollback, which is what is occurring in this case, it's legal for the tx mgr to call this on a a different thread, and I don't think it's necessary to wait for onMessage in this case.
It would a simple change in ClientSessionImpl::rollback(Xid xid) to pass a flag to consumer.clear() to determine whether to wait for on message or not.
-
2. Re: Issue with Transaction Timeout and MDB's
ataylor Apr 16, 2010 5:01 AM (in response to timfox)Tim Fox wrote:
This wait is valid for non XA rollback since it's illegal for rollback to be called from a different thread.
However for XA rollback, which is what is occurring in this case, it's legal for the tx mgr to call this on a a different thread, and I don't think it's necessary to wait for onMessage in this case.
It would a simple change in ClientSessionImpl::rollback(Xid xid) to pass a flag to consumer.clear() to determine whether to wait for on message or not.
Ok, I thought about this but wasn't sure whether it was viable. I will make the changes, cheers.