<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 11, 2016 at 4:48 PM, Scott Marlow <span dir="ltr"><<a href="mailto:smarlow@redhat.com" target="_blank">smarlow@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
>> > 7. compensating transactions<br>
>> ><br>
>><br>
>> Another huge area.<br>
>><br>
>> I would let the use-cases from WildFly/Swarm drive this.<br>
>><br>
>> A simple way to start is to have a SPI that apps can implement in case<br>
>> the transaction is MARKED_FOR_ROLLBACK (hooks to an enlisted<br>
>> XAResource).<br>
>><br>
>><br>
>> We implemented those in IJ (even if in much more standard JCA<br>
>> environment), and maybe we could share and eventually copy/paste some<br>
>> code.<br>
><br>
> Check out "MongoDB integration test with compensating transactions"<br>
> <a href="https://github.com/scottmarlow/wildfly/commit/9bd67964a9259416add73cac47328cec5127d25c" rel="noreferrer" target="_blank">https://github.com/scottmarlow/wildfly/commit/9bd67964a9259416add73cac47328cec5127d25c</a>,<br>
> which is a good start. We can work forward from what we have and ideas<br>
> from IJ.<br>
><br>
<br>
</span>Stefano, Could you please post github links to some of the IJ<br>
compensating code? It would be great to express the idea of what is<br>
being accomplished in IJ (with regard to compensating transactions), as<br>
well.<br><br></blockquote><div><br></div><div><br></div><div>Hi Scott,</div><div>I take a mistake inserting my comment in previous mail. My comment was referring on your point 6 (for which Jesper already provided code)....sorry I'm not yet used to this Gmail collapse long quoted text "feature".....</div><div>Regarding point 7, I agree use-cases from WildFly/Swarm are a good start.</div><div><br></div><div>regards</div><div>S.</div></div></div></div>