Alejandro Revilla | 1 May 19:14
Favicon

Re: TransactionManager continuations

> 
> The reason I am asking is it would simplify a problem I have if I  
> could shoot off a Context to another TransactionTananger, pause the  
> main transaction,  dittle the Context in the second  
> TransactionManager, and then send it back to the original  
> TransactionManager to continue processing.
> 
If we are talking about just two TMs, you can call Context.resume() from
your second TM, the first paused one should go on from there. 

>
> TestPauseParticipant.java. Is it simply a matter of forwarding it back  
> to the original TransactionManager queue sometime after the PAUASE?
>
Yes, but I suggest to use the Context.resume() that does some sanity
checks in order to avoid resuming the transaction twice.

>
> so, is the whole Context replaced with the new one? How are things  
> matched up? I am having a hard time visualizing the process from  
> looking at the source.
> 
Me too :)

------------------------------------


Gmane