<?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: Article &#8220;Using Oracle TopLink with the Spring Framework&#8221; published on OTN</title>
	<atom:link href="http://blog.xebia.com/2006/09/26/article-using-oracle-toplink-with-the-spring-framework-published-on-otn/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.xebia.com/2006/09/26/article-using-oracle-toplink-with-the-spring-framework-published-on-otn/</link>
	<description>Software development done right!</description>
	<lastBuildDate>Wed, 08 Feb 2012 14:41:38 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Lonneke Dikmans</title>
		<link>http://blog.xebia.com/2006/09/26/article-using-oracle-toplink-with-the-spring-framework-published-on-otn/#comment-381</link>
		<dc:creator>Lonneke Dikmans</dc:creator>
		<pubDate>Wed, 27 Sep 2006 18:06:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.xebia.com/2006/09/26/article-using-oracle-toplink-with-the-spring-framework-published-on-otn/#comment-381</guid>
		<description>Thanks for the observation: it seems that the wrong version of the sample application was put on the website. It has been corrected, please try and download the sources again.

To answer your question: sharing the transaction between a jdbcTemplate and TopLinkDAO should work fine.  In my example I don&#039;t have any transactions in my unittest configuration. The AbstractTransactionalDataSourceSpringContextTests takes care of the transactions in the testcases. That gives you a hook to test the behaviour of the DAO&#039;s when certain situations occur. For example the unexpected ending of a transaction...</description>
		<content:encoded><![CDATA[<p>Thanks for the observation: it seems that the wrong version of the sample application was put on the website. It has been corrected, please try and download the sources again.</p>
<p>To answer your question: sharing the transaction between a jdbcTemplate and TopLinkDAO should work fine.  In my example I don&#8217;t have any transactions in my unittest configuration. The AbstractTransactionalDataSourceSpringContextTests takes care of the transactions in the testcases. That gives you a hook to test the behaviour of the DAO&#8217;s when certain situations occur. For example the unexpected ending of a transaction&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Maarten Winkels</title>
		<link>http://blog.xebia.com/2006/09/26/article-using-oracle-toplink-with-the-spring-framework-published-on-otn/#comment-375</link>
		<dc:creator>Maarten Winkels</dc:creator>
		<pubDate>Wed, 27 Sep 2006 08:39:49 +0000</pubDate>
		<guid isPermaLink="false">http://blog.xebia.com/2006/09/26/article-using-oracle-toplink-with-the-spring-framework-published-on-otn/#comment-375</guid>
		<description>Lonneke,

Interesting!
One remark: I couldn&#039;t find the calls to setComplete and endTransaction that you refer to in the article in the source code attached. I was triggered to look for these methods, because in our project we do not use this technique. With Spring managed transactions you can make the JdbcTemplate and the Dao&#039;s share the same transaction, this works for Hibernate, does it for TopLink? See Spring&#039;s &lt;a href=&quot;http://springframework.org/docs/api/org/springframework/jdbc/datasource/TransactionAwareDataSourceProxy.html&quot; rel=&quot;nofollow&quot;&gt;TransactionAwareDataSourceProxy&lt;/a&gt; and &lt;a href=&quot;http://springframework.org/docs/api/org/springframework/orm/hibernate3/LocalSessionFactoryBean.html#setUseTransactionAwareDataSource(boolean)&quot; rel=&quot;nofollow&quot;&gt;setUseTransactionAwareDataSource&lt;/a&gt; &lt;a href=&quot;http://springframework.org/docs/api/org/springframework/orm/ibatis/SqlMapClientFactoryBean.html#setUseTransactionAwareDataSource(boolean)&quot; rel=&quot;nofollow&quot;&gt;methods&lt;/a&gt;.

Regards,

-Maarten Winkels</description>
		<content:encoded><![CDATA[<p>Lonneke,</p>
<p>Interesting!<br />
One remark: I couldn&#8217;t find the calls to setComplete and endTransaction that you refer to in the article in the source code attached. I was triggered to look for these methods, because in our project we do not use this technique. With Spring managed transactions you can make the JdbcTemplate and the Dao&#8217;s share the same transaction, this works for Hibernate, does it for TopLink? See Spring&#8217;s <a href="http://springframework.org/docs/api/org/springframework/jdbc/datasource/TransactionAwareDataSourceProxy.html" rel="nofollow">TransactionAwareDataSourceProxy</a> and <a href="http://springframework.org/docs/api/org/springframework/orm/hibernate3/LocalSessionFactoryBean.html#setUseTransactionAwareDataSource(boolean)" rel="nofollow">setUseTransactionAwareDataSource</a> <a href="http://springframework.org/docs/api/org/springframework/orm/ibatis/SqlMapClientFactoryBean.html#setUseTransactionAwareDataSource(boolean)" rel="nofollow">methods</a>.</p>
<p>Regards,</p>
<p>-Maarten Winkels</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- This Quick Cache file was built for (  blog.xebia.com/2006/09/26/article-using-oracle-toplink-with-the-spring-framework-published-on-otn/feed/ ) in 0.42705 seconds, on Feb 9th, 2012 at 10:16 pm UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 9th, 2012 at 11:16 pm UTC -->
