<?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: Hibernate and the famous LazyInitializationException</title>
	<atom:link href="http://www.redstream.nl/2007/03/06/hibernate-and-the-infamous-lazyinitializationexception/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.redstream.nl/2007/03/06/hibernate-and-the-infamous-lazyinitializationexception/</link>
	<description>Pragmatic Integrators</description>
	<lastBuildDate>Tue, 18 Oct 2011 12:18:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: nikhil</title>
		<link>http://www.redstream.nl/2007/03/06/hibernate-and-the-infamous-lazyinitializationexception/comment-page-1/#comment-433</link>
		<dc:creator>nikhil</dc:creator>
		<pubDate>Tue, 25 Nov 2008 23:29:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.pascalalma.net/?p=18#comment-433</guid>
		<description>somehow...config didn&#039;t appear after posting the comment

&lt;aop:pointcut id=&quot;serviceMethods&quot; expression=&quot;execution(*c.*.*(..))&quot; /&gt;</description>
		<content:encoded><![CDATA[<p>somehow&#8230;config didn&#8217;t appear after posting the comment</p>
<p>&lt;aop:pointcut id=&#8221;serviceMethods&#8221; expression=&#8221;execution(*c.*.*(..))&#8221; /&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nikhil</title>
		<link>http://www.redstream.nl/2007/03/06/hibernate-and-the-infamous-lazyinitializationexception/comment-page-1/#comment-432</link>
		<dc:creator>nikhil</dc:creator>
		<pubDate>Tue, 25 Nov 2008 23:27:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.pascalalma.net/?p=18#comment-432</guid>
		<description>Hi there,

Nice article although didn&#039;t solve my problem ;) I&#039;ve the same situation as you have but I&#039;m still without any soln. I&#039;ve no problem regarding the TestCases as I have a &#039;setup&#039; which can help me there.

		sessionFactory = (SessionFactory) beanFactory.getBean(&quot;sessionFactory&quot;);
		Session session = SessionFactoryUtils.getSession(sessionFactory, true);
		TransactionSynchronizationManager.bindResource(sessionFactory, new SessionHolder(session));

This essentially keeps the hibernate session open till the testCase executes... so no problem there... The problem appears when I deploy my application in Tomcat. Somehow even specifying the following in my applicationContext-aop.xml has not proved to be 100% successful.


		&lt;aop:pointcut id=&quot;serviceMethods&quot;
			expression=&quot;execution(*c.*.*(..))&quot; /&gt;













Do you face this problem when you start you app in the app server? If yes, then how did you solve it...I would really appreciate if you can help me out as I&#039;m stuck here for quite some time now.

Thanks
-nikhil</description>
		<content:encoded><![CDATA[<p>Hi there,</p>
<p>Nice article although didn&#8217;t solve my problem ;) I&#8217;ve the same situation as you have but I&#8217;m still without any soln. I&#8217;ve no problem regarding the TestCases as I have a &#8216;setup&#8217; which can help me there.</p>
<p>		sessionFactory = (SessionFactory) beanFactory.getBean(&#8220;sessionFactory&#8221;);<br />
		Session session = SessionFactoryUtils.getSession(sessionFactory, true);<br />
		TransactionSynchronizationManager.bindResource(sessionFactory, new SessionHolder(session));</p>
<p>This essentially keeps the hibernate session open till the testCase executes&#8230; so no problem there&#8230; The problem appears when I deploy my application in Tomcat. Somehow even specifying the following in my applicationContext-aop.xml has not proved to be 100% successful.</p>
<p>		&lt;aop:pointcut id=&#8221;serviceMethods&#8221;<br />
			expression=&#8221;execution(*c.*.*(..))&#8221; /&gt;</p>
<p>Do you face this problem when you start you app in the app server? If yes, then how did you solve it&#8230;I would really appreciate if you can help me out as I&#8217;m stuck here for quite some time now.</p>
<p>Thanks<br />
-nikhil</p>
]]></content:encoded>
	</item>
</channel>
</rss>

