users@jta-spec.java.net

Re: Issue with JTA and JPA interaction

From: Jonathan Halliday <jonathan.halliday_at_redhat.com>
Date: Wed, 20 Jun 2012 16:10:08 +0100

On 06/20/2012 11:01 AM, Christian Romberg wrote:

> condition A3. Transaction.commit() must execute the following in this
> order:
...
> -implicit ending of XAResources, that have not been ended yet
> -do all the prepare calls

I don't agree with that one. It's valid for the TM to process
XAResources in parallel, provided that for any given resource the
{end,prepare} ordering is serial. res2.end may come after res1.prepare.
Both end and prepare may be remote calls, so it's important from a
performance perspective to be able to handle the set of XAResources
concurrently as much as possible. Why do you require that a given branch
is ended before some other branch is prepared?

Jonathan.

-- 
Registered in England and Wales under Company Registration No. 03798903 
Directors: Michael Cunningham (USA), Mark Hegarty (Ireland), Matt Parson
(USA), Charlie Peters (USA)