<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 13 Sep 2010, at 18:03, Manik Surtani wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 13 Sep 2010, at 17:00, Mircea Markus wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>Thinking some more about batching API(thanks galder!) I think its main benefit it brings is allowing users to use transactions without having to set up/download an TransactionManager.</div></div></blockquote><div><br></div><div>Nope. &nbsp;The main benefit is atomic grouping of tasks. &nbsp;This is less than full blown JTA (no coordination between multiple data sources).</div></div></div></blockquote>Nope :) For grouping of task, batching starts a JTA&nbsp;tx&nbsp;under the hood. The behaviour is the same, API is different.</div><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Very similar to what Brian was describing here:&nbsp;<a href="http://community.jboss.org/wiki/BatchModeTransactionManager">http://community.jboss.org/wiki/BatchModeTransactionManager</a></div><div>"<span class="Apple-style-span" style="border-collapse: collapse; color: rgb(91, 91, 91); font-family: 'Lucida Sans Unicode', 'Lucida Grande', Geneva, Verdana, Arial, sans-serif; font-size: 12px; ">This is all great, but there are uses cases where it's nice to have many of these benefits without the involvement of a JTA Transaction</span>"</div><div><br></div><div>I think we should allow people a similar approach, having our own&nbsp;<span class="Apple-style-span" style="border-collapse: collapse; color: rgb(91, 91, 91); font-family: 'courier new', courier; font-size: 12px; ">BatchModeTransactionManagerLookup and&nbsp;</span><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(91, 91, 91); font-family: 'courier new', courier; font-size: 12px; ">BatchModeTransactionManager.&nbsp;</span></div><div><font class="Apple-style-span" color="#5B5B5B" face="'courier new', courier"><span class="Apple-style-span" style="border-collapse: collapse;">Again, this is something to be used when users don't need distributed transactions, and don't want to get their hands dirty with setting up a TM.&nbsp;</span></font></div></div></blockquote><div><br></div><div>Not sure I understand this statement - what is it that you want to do here? &nbsp;And why? &nbsp;</div></div></div></blockquote>I got now. I thought that, besides specifying&nbsp;setInvocationBatchingEnabled one also needs to specify a TM for batch support. I was wrong, the confusion in this email. Hope I'll make up by updating the documents correctly :)</div><div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><font class="Apple-style-span" color="#5B5B5B" face="'courier new', courier"><span class="Apple-style-span" style="border-collapse: collapse;"><br></span></font></div><div><font class="Apple-style-span" color="#5B5B5B" face="'courier new', courier"><span class="Apple-style-span" style="border-collapse: collapse;">Instead of&nbsp;</span></font><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(91, 91, 91); font-family: 'courier new', courier; font-size: 12px; ">BatchModeTransactionManager we can use Britronix JTA[1] as it is a "</span><span class="Apple-style-span" style="font-family: Helvetica, Arial, sans-serif; font-size: 13px; line-height: 17px; ">a simple but complete implementation of the JTA 1.1 API</span><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(91, 91, 91); font-family: 'courier new', courier; font-size: 12px; ">". Drools is using that and they are happy with it. Actually what about replacing our DummyTM with this one? Less code to maintain and our tests would be run with a more-close-to-spec TM.</span></div></div></blockquote><div><br></div><div>It's another dep that we really don't need. &nbsp;If people want to use BTM they can always do so without a problem.</div><div><br></div><div>The DummyTM is a couple of classes and very few LOC that hasn't changed in a long while. &nbsp;What maintenance? &nbsp;:-)</div><br><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(91, 91, 91); font-family: 'courier new', courier; font-size: 12px; "><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(91, 91, 91); font-family: 'courier new', courier; font-size: 12px; ">Wdyt?</span></div><div><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(91, 91, 91); font-family: 'courier new', courier; font-size: 12px; ">Cheers</span></div><div><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(91, 91, 91); font-family: 'courier new', courier; font-size: 12px; "><br></span></div><div><span class="Apple-style-span" style="border-collapse: collapse; color: rgb(91, 91, 91); font-family: 'courier new', courier; font-size: 12px; ">[1]&nbsp;</span><a href="http://docs.codehaus.org/display/BTM/Home">http://docs.codehaus.org/display/BTM/Home</a></div><div><br></div><div><br></div><div>&nbsp;&nbsp;</div></div>_______________________________________________<br>infinispan-dev mailing list<br><a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/infinispan-dev">https://lists.jboss.org/mailman/listinfo/infinispan-dev</a></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--</div><div>Manik Surtani</div><div><a href="mailto:manik@jboss.org">manik@jboss.org</a></div><div>Lead, Infinispan</div><div>Lead, JBoss Cache</div><div><a href="http://www.infinispan.org/">http://www.infinispan.org</a></div><div><a href="http://www.jbosscache.org/">http://www.jbosscache.org</a></div><div><br></div></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br></div>_______________________________________________<br>infinispan-dev mailing list<br><a href="mailto:infinispan-dev@lists.jboss.org">infinispan-dev@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/infinispan-dev</blockquote></div><br></body></html>