<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">&lt;<a href="mailto:smarlow@redhat.com" target="_blank">smarlow@redhat.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
&gt;&gt;     &gt; 7. compensating transactions<br>
&gt;&gt;     &gt;<br>
&gt;&gt;<br>
&gt;&gt;     Another huge area.<br>
&gt;&gt;<br>
&gt;&gt;     I would let the use-cases from WildFly/Swarm drive this.<br>
&gt;&gt;<br>
&gt;&gt;     A simple way to start is to have a SPI that apps can implement in case<br>
&gt;&gt;     the transaction is MARKED_FOR_ROLLBACK (hooks to an enlisted<br>
&gt;&gt;     XAResource).<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; We implemented those in IJ (even if in much more standard JCA<br>
&gt;&gt; environment), and maybe we could share and eventually copy/paste some<br>
&gt;&gt; code.<br>
&gt;<br>
&gt; Check out &quot;MongoDB integration test with compensating transactions&quot;<br>
&gt; <a href="https://github.com/scottmarlow/wildfly/commit/9bd67964a9259416add73cac47328cec5127d25c" rel="noreferrer" target="_blank">https://github.com/scottmarlow/wildfly/commit/9bd67964a9259416add73cac47328cec5127d25c</a>,<br>
&gt; which is a good start.  We can work forward from what we have and ideas<br>
&gt; from IJ.<br>
&gt;<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&#39;m not yet used to this Gmail collapse long quoted text &quot;feature&quot;.....</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>