<?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: Layered architecture with Hibernate and Spring 3</title>
	<atom:link href="http://carinae.net/2009/11/layered-architecture-with-hibernate-and-spring-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://carinae.net/2009/11/layered-architecture-with-hibernate-and-spring-3/</link>
	<description>Carlos Vara&#039;s writings about software development</description>
	<lastBuildDate>Sat, 17 Mar 2012 14:17:42 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: tejuvenkat</title>
		<link>http://carinae.net/2009/11/layered-architecture-with-hibernate-and-spring-3/comment-page-1/#comment-6692</link>
		<dc:creator>tejuvenkat</dc:creator>
		<pubDate>Fri, 17 Feb 2012 20:56:51 +0000</pubDate>
		<guid isPermaLink="false">http://carinae.net/?p=59#comment-6692</guid>
		<description>Good one.</description>
		<content:encoded><![CDATA[<p>Good one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: christopher</title>
		<link>http://carinae.net/2009/11/layered-architecture-with-hibernate-and-spring-3/comment-page-1/#comment-1680</link>
		<dc:creator>christopher</dc:creator>
		<pubDate>Sat, 08 Jan 2011 04:54:07 +0000</pubDate>
		<guid isPermaLink="false">http://carinae.net/?p=59#comment-1680</guid>
		<description>@Ale You no longer need the TransactionProxyFactoryBean since you already have @Transactional annotation.</description>
		<content:encoded><![CDATA[<p>@Ale You no longer need the TransactionProxyFactoryBean since you already have @Transactional annotation.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacobiroba</title>
		<link>http://carinae.net/2009/11/layered-architecture-with-hibernate-and-spring-3/comment-page-1/#comment-1381</link>
		<dc:creator>Jacobiroba</dc:creator>
		<pubDate>Thu, 16 Dec 2010 16:36:42 +0000</pubDate>
		<guid isPermaLink="false">http://carinae.net/?p=59#comment-1381</guid>
		<description>Fantastic work! thanks.</description>
		<content:encoded><![CDATA[<p>Fantastic work! thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ignatius</title>
		<link>http://carinae.net/2009/11/layered-architecture-with-hibernate-and-spring-3/comment-page-1/#comment-1159</link>
		<dc:creator>Ignatius</dc:creator>
		<pubDate>Mon, 22 Nov 2010 12:11:46 +0000</pubDate>
		<guid isPermaLink="false">http://carinae.net/?p=59#comment-1159</guid>
		<description>I have the same problem. It only works if the services (with @Transactional) are defined as beans in the xml.

Does this works with autowiring and @Service, @Repository... ?</description>
		<content:encoded><![CDATA[<p>I have the same problem. It only works if the services (with @Transactional) are defined as beans in the xml.</p>
<p>Does this works with autowiring and @Service, @Repository&#8230; ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex Rios</title>
		<link>http://carinae.net/2009/11/layered-architecture-with-hibernate-and-spring-3/comment-page-1/#comment-890</link>
		<dc:creator>Alex Rios</dc:creator>
		<pubDate>Wed, 20 Oct 2010 12:36:43 +0000</pubDate>
		<guid isPermaLink="false">http://carinae.net/?p=59#comment-890</guid>
		<description>Very good and lean post, thanks!</description>
		<content:encoded><![CDATA[<p>Very good and lean post, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: akash</title>
		<link>http://carinae.net/2009/11/layered-architecture-with-hibernate-and-spring-3/comment-page-1/#comment-873</link>
		<dc:creator>akash</dc:creator>
		<pubDate>Sun, 17 Oct 2010 20:19:13 +0000</pubDate>
		<guid isPermaLink="false">http://carinae.net/?p=59#comment-873</guid>
		<description>very nice article, thanks...</description>
		<content:encoded><![CDATA[<p>very nice article, thanks&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ale</title>
		<link>http://carinae.net/2009/11/layered-architecture-with-hibernate-and-spring-3/comment-page-1/#comment-841</link>
		<dc:creator>Ale</dc:creator>
		<pubDate>Tue, 12 Oct 2010 12:19:29 +0000</pubDate>
		<guid isPermaLink="false">http://carinae.net/?p=59#comment-841</guid>
		<description>Thanks.....very good article.
Only One question..........how can i use the TransactionProxyFactoryBean in this architecture?</description>
		<content:encoded><![CDATA[<p>Thanks&#8230;..very good article.<br />
Only One question&#8230;&#8230;&#8230;.how can i use the TransactionProxyFactoryBean in this architecture?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: User</title>
		<link>http://carinae.net/2009/11/layered-architecture-with-hibernate-and-spring-3/comment-page-1/#comment-496</link>
		<dc:creator>User</dc:creator>
		<pubDate>Fri, 30 Jul 2010 16:39:29 +0000</pubDate>
		<guid isPermaLink="false">http://carinae.net/?p=59#comment-496</guid>
		<description>A screenshot of project structure will be helpful.</description>
		<content:encoded><![CDATA[<p>A screenshot of project structure will be helpful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SK</title>
		<link>http://carinae.net/2009/11/layered-architecture-with-hibernate-and-spring-3/comment-page-1/#comment-495</link>
		<dc:creator>SK</dc:creator>
		<pubDate>Fri, 30 Jul 2010 16:35:06 +0000</pubDate>
		<guid isPermaLink="false">http://carinae.net/?p=59#comment-495</guid>
		<description>Very useful. Summarized good. thanks.</description>
		<content:encoded><![CDATA[<p>Very useful. Summarized good. thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bo</title>
		<link>http://carinae.net/2009/11/layered-architecture-with-hibernate-and-spring-3/comment-page-1/#comment-458</link>
		<dc:creator>Bo</dc:creator>
		<pubDate>Thu, 22 Jul 2010 08:30:56 +0000</pubDate>
		<guid isPermaLink="false">http://carinae.net/?p=59#comment-458</guid>
		<description>I tried your example and created a controller to test it.

I got an exception &quot;org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here&quot; with the following code. How can I fix it without adding proxy-target-class=”true”? Thanks.



@Controller
public class MyController {

    private UserService userService;

    @Autowired
    public MyController(UserService userService) {
        this.userService = userService;
    }

    @RequestMapping(&quot;/{page}&quot;)
    public ModelAndView category(@PathVariable String page) {
        ModelAndView mav = new ModelAndView();
        mav.addObject(&quot;page&quot;, page);
        userService.createUser(new User(&quot;Dummy&quot;, 30));
        mav.setViewName(&quot;/index&quot;);
        return mav;
    }</description>
		<content:encoded><![CDATA[<p>I tried your example and created a controller to test it.</p>
<p>I got an exception &#8220;org.hibernate.HibernateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here&#8221; with the following code. How can I fix it without adding proxy-target-class=”true”? Thanks.</p>
<p>@Controller<br />
public class MyController {</p>
<p>    private UserService userService;</p>
<p>    @Autowired<br />
    public MyController(UserService userService) {<br />
        this.userService = userService;<br />
    }</p>
<p>    @RequestMapping(&#8220;/{page}&#8221;)<br />
    public ModelAndView category(@PathVariable String page) {<br />
        ModelAndView mav = new ModelAndView();<br />
        mav.addObject(&#8220;page&#8221;, page);<br />
        userService.createUser(new User(&#8220;Dummy&#8221;, 30));<br />
        mav.setViewName(&#8220;/index&#8221;);<br />
        return mav;<br />
    }</p>
]]></content:encoded>
	</item>
</channel>
</rss>

