<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Ejb3 Basics: Bean Managed Transactions</title>
	<atom:link href="http://www.openscope.net/2010/01/14/bean-managed-transactions-bmt/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.openscope.net/2010/01/14/bean-managed-transactions-bmt/</link>
	<description>Practical java, unix, and xml</description>
	<lastBuildDate>Tue, 10 Jan 2012 10:15:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Ant</title>
		<link>http://www.openscope.net/2010/01/14/bean-managed-transactions-bmt/comment-page-1/#comment-611</link>
		<dc:creator>Ant</dc:creator>
		<pubDate>Fri, 11 Feb 2011 16:08:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.openscope.net/?p=272#comment-611</guid>
		<description>That&#039;s what I thought too. I think Andrew was talking about a different boundary later on in the application. I assumed he was talking about right here in the bmt exception context. I guess the problem he&#039;s talking about is more along the lines when you have a mixed case of BMT and CMT. I&#039;ll update the example and make a note.</description>
		<content:encoded><![CDATA[<p>That&#8217;s what I thought too. I think Andrew was talking about a different boundary later on in the application. I assumed he was talking about right here in the bmt exception context. I guess the problem he&#8217;s talking about is more along the lines when you have a mixed case of BMT and CMT. I&#8217;ll update the example and make a note.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carl</title>
		<link>http://www.openscope.net/2010/01/14/bean-managed-transactions-bmt/comment-page-1/#comment-610</link>
		<dc:creator>Carl</dc:creator>
		<pubDate>Fri, 11 Feb 2011 09:39:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.openscope.net/?p=272#comment-610</guid>
		<description>from the javaEE spec:
Methods Not Allowed in Bean-Managed Transactions

Do not invoke the getRollbackOnly and setRollbackOnly methods of the EJBContext interface in bean-managed transactions. These methods should be used only in container-managed transactions. For bean-managed transactions, invoke the getStatus and rollback methods of the UserTransaction interface. 

So if I understand correctly setRollbackOnly is not allowed in the catch...</description>
		<content:encoded><![CDATA[<p>from the javaEE spec:<br />
Methods Not Allowed in Bean-Managed Transactions</p>
<p>Do not invoke the getRollbackOnly and setRollbackOnly methods of the EJBContext interface in bean-managed transactions. These methods should be used only in container-managed transactions. For bean-managed transactions, invoke the getStatus and rollback methods of the UserTransaction interface. </p>
<p>So if I understand correctly setRollbackOnly is not allowed in the catch&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ant</title>
		<link>http://www.openscope.net/2010/01/14/bean-managed-transactions-bmt/comment-page-1/#comment-9</link>
		<dc:creator>Ant</dc:creator>
		<pubDate>Sun, 17 Jan 2010 20:54:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.openscope.net/?p=272#comment-9</guid>
		<description>Awesome! Thanks for the clarification, I&#039;ll update the example with the right method.</description>
		<content:encoded><![CDATA[<p>Awesome! Thanks for the clarification, I&#8217;ll update the example with the right method.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew Lee Rubinger</title>
		<link>http://www.openscope.net/2010/01/14/bean-managed-transactions-bmt/comment-page-1/#comment-8</link>
		<dc:creator>Andrew Lee Rubinger</dc:creator>
		<pubDate>Sun, 17 Jan 2010 20:15:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.openscope.net/?p=272#comment-8</guid>
		<description>In JBoss EJB3, CMT transaction timeouts are a default that are configurable via our vendor-specific APIs:

http://community.jboss.org/wiki/TransactionTimeout

Also, take care when using UserTransaction.rollback; in most cases I find that you&#039;d instead be better off setting the Thread context to rollback at the appropriate boundary (utx.setRollbackOnly()).  Else you may have other code in the call stack expecting a Tx association w/ the current Thread error out.</description>
		<content:encoded><![CDATA[<p>In JBoss EJB3, CMT transaction timeouts are a default that are configurable via our vendor-specific APIs:</p>
<p><a href="http://community.jboss.org/wiki/TransactionTimeout" rel="nofollow">http://community.jboss.org/wiki/TransactionTimeout</a></p>
<p>Also, take care when using UserTransaction.rollback; in most cases I find that you&#8217;d instead be better off setting the Thread context to rollback at the appropriate boundary (utx.setRollbackOnly()).  Else you may have other code in the call stack expecting a Tx association w/ the current Thread error out.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

