<div dir="ltr">no getting multiple resource message, but exactly the warnings he <a href="http://www.jboss.org/feeds/post/transaction_timeouts_and_ejb3_jpa">http://www.jboss.org/feeds/post/transaction_timeouts_and_ejb3_jpa</a> was getting, ("invoked while multiple threads active within..") but i have no idea why it's aborting the transaction, maybe because the 2nd getConnection takes somewhat longer (don't know why, this could be the real problem,) <br>
<br>
<div class="gmail_quote">On Thu, Apr 23, 2009 at 10:59 PM, Chris Bredesen <span dir="ltr"><<a href="mailto:cbredesen@redhat.com">cbredesen@redhat.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">If you're getting the multiple last resources message, then you're not using XA resources. The allowMultipleLastResources setting is a very dangerous thing to use and I would not recommend enabling it.<br>
<br>All that said, I don't understand why there'd be any long timeouts with all of this....<br><br>-Chris<br><br>Elhanan Maayan wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="im">thanks, i've read only half of it and i'll explain why. we had not gotten to actually recovering from a transaction for simple reason that we are unable to actually create one. as soon as we begin a transaction, we get 2 different jdbc data sources to oracle under a stateless session ejb, when we use the 2nd getConnection jboss hangs for a half a minute, and then bombs with unable to enlist data source exception. we tried to walk though the debugger and it seems somethings during the lock of a transaction, (we used jboss 4.2.0 which uses jbossjta 4.2.3 sp3 which we didn't have the source code for, so now we are trying jboss 4.2.3 which uses jbossjta 4.2.3 sp7 which we do have sources for)<br>
before the exception occurs we see 2 warnings from arjuna i18logger about multiple threads, it seems the transaction is aborting (but never got to the code that actually aborted it).<br>the same code worked btw on websphere 6.1<br>
i've seen somewhere that you could use a property called something like allowMultipleResources in jbossjta.properties file , but that didn't work as well.<br> this reminded me of the case in jboss 3.2.5, we used spring 1.2.8 to get jta transaction, but each time we actually got a transaction it was already "dead" because of a time out,even though we just got it from begin transaction method.<br>
<br><br></div>
<div class="im"> On Thu, Apr 23, 2009 at 2:50 PM, John Mazzitelli <<a href="mailto:mazz@redhat.com" target="_blank">mazz@redhat.com</a> <mailto:<a href="mailto:mazz@redhat.com" target="_blank">mazz@redhat.com</a>>> wrote:<br>
<br> > i'm searching for a problem we've been having about opening<br> multiple XA Data sources for oracle,<br> > (opening the second hands jboss and throws an meta-aware<br> exception, this happens in jboss 4.2)<br>
<br> This might help :-)<br><br> <a href="http://management-platform.blogspot.com/2008/11/transaction-recovery-in-jbossas.html" target="_blank">http://management-platform.blogspot.com/2008/11/transaction-recovery-in-jbossas.html</a><br>
<br><br><br></div>------------------------------------------------------------------------
<div class="im"><br><br>_______________________________________________<br>hibernate-dev mailing list<br><a href="mailto:hibernate-dev@lists.jboss.org" target="_blank">hibernate-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/hibernate-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/hibernate-dev</a><br>
</div></blockquote>
<div>
<div></div>
<div class="h5">_______________________________________________<br>hibernate-dev mailing list<br><a href="mailto:hibernate-dev@lists.jboss.org" target="_blank">hibernate-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/hibernate-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/hibernate-dev</a><br>
</div></div></blockquote></div><br></div>