<?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: Spring: OpenSessionInViewInterceptor &amp; OpenSessionInViewFilter Examples</title>
	<atom:link href="http://72miles.com/blog/spring-opensessioninviewinterceptor-opensessioninviewfilter-examples/feed/" rel="self" type="application/rss+xml" />
	<link>http://72miles.com/blog/spring-opensessioninviewinterceptor-opensessioninviewfilter-examples/</link>
	<description></description>
	<lastBuildDate>Sun, 27 Feb 2011 22:42:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Mike</title>
		<link>http://72miles.com/blog/spring-opensessioninviewinterceptor-opensessioninviewfilter-examples/comment-page-1/#comment-1118</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sun, 27 Feb 2011 22:42:52 +0000</pubDate>
		<guid isPermaLink="false">http://72miles.com/blog/?p=26#comment-1118</guid>
		<description>Thanks.</description>
		<content:encoded><![CDATA[<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pieno</title>
		<link>http://72miles.com/blog/spring-opensessioninviewinterceptor-opensessioninviewfilter-examples/comment-page-1/#comment-1109</link>
		<dc:creator>Pieno</dc:creator>
		<pubDate>Sun, 11 Jul 2010 11:52:13 +0000</pubDate>
		<guid isPermaLink="false">http://72miles.com/blog/?p=26#comment-1109</guid>
		<description>In Spring 3 you can use the  tag to use the OpenSessionInViewInterceptor. There is an example on my blog: http://www.pieno.be/content/2010/opensessioninviewinterceptor-example-spring-3-web-mvc</description>
		<content:encoded><![CDATA[<p>In Spring 3 you can use the  tag to use the OpenSessionInViewInterceptor. There is an example on my blog: <a href="http://www.pieno.be/content/2010/opensessioninviewinterceptor-example-spring-3-web-mvc" rel="nofollow">http://www.pieno.be/content/2010/opensessioninviewinterceptor-example-spring-3-web-mvc</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://72miles.com/blog/spring-opensessioninviewinterceptor-opensessioninviewfilter-examples/comment-page-1/#comment-1107</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Tue, 13 Oct 2009 13:25:06 +0000</pubDate>
		<guid isPermaLink="false">http://72miles.com/blog/?p=26#comment-1107</guid>
		<description>&lt;a href=&#039;#comment-1105&#039; rel=&quot;nofollow&quot;&gt;@David Newcomb&lt;/a&gt; - The post isn&#039;t really about how to set mappings. But you&#039;ll want something like

&lt;prop key=&quot;/install.html&quot;&gt;installController&lt;/prop&gt;

which maps a request URI to a controller. Here are some examples...

http://www.google.com/search?q=SimpleUrlHandlerMapping+example</description>
		<content:encoded><![CDATA[<p><a href='#comment-1105' rel="nofollow">@David Newcomb</a> &#8211; The post isn&#8217;t really about how to set mappings. But you&#8217;ll want something like</p>
<prop key="/install.html">installController</prop>
<p>which maps a request URI to a controller. Here are some examples&#8230;</p>
<p><a href="http://www.google.com/search?q=SimpleUrlHandlerMapping+example" rel="nofollow">http://www.google.com/search?q=SimpleUrlHandlerMapping+example</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Newcomb</title>
		<link>http://72miles.com/blog/spring-opensessioninviewinterceptor-opensessioninviewfilter-examples/comment-page-1/#comment-1106</link>
		<dc:creator>David Newcomb</dc:creator>
		<pubDate>Mon, 12 Oct 2009 17:51:56 +0000</pubDate>
		<guid isPermaLink="false">http://72miles.com/blog/?p=26#comment-1106</guid>
		<description>Also urlMapping doesn&#039;t work if you are using annotations.
If you are using annotations you should probably go for the OpenSessionInViewFilter otherwise there is a rats nest of other support classes you need. Just spent the day reading all about it and I have lost the will to live :(</description>
		<content:encoded><![CDATA[<p>Also urlMapping doesn&#8217;t work if you are using annotations.<br />
If you are using annotations you should probably go for the OpenSessionInViewFilter otherwise there is a rats nest of other support classes you need. Just spent the day reading all about it and I have lost the will to live <img src='http://72miles.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Newcomb</title>
		<link>http://72miles.com/blog/spring-opensessioninviewinterceptor-opensessioninviewfilter-examples/comment-page-1/#comment-1105</link>
		<dc:creator>David Newcomb</dc:creator>
		<pubDate>Mon, 12 Oct 2009 16:29:37 +0000</pubDate>
		<guid isPermaLink="false">http://72miles.com/blog/?p=26#comment-1105</guid>
		<description>Your xml for urlMapping is incomplete! No value is set for:
 property name=&quot;mappings&quot;
and the &quot;property&quot; is not closed. What is it supposed to be?</description>
		<content:encoded><![CDATA[<p>Your xml for urlMapping is incomplete! No value is set for:<br />
 property name=&#8221;mappings&#8221;<br />
and the &#8220;property&#8221; is not closed. What is it supposed to be?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Newcomb</title>
		<link>http://72miles.com/blog/spring-opensessioninviewinterceptor-opensessioninviewfilter-examples/comment-page-1/#comment-1104</link>
		<dc:creator>David Newcomb</dc:creator>
		<pubDate>Mon, 12 Oct 2009 16:28:02 +0000</pubDate>
		<guid isPermaLink="false">http://72miles.com/blog/?p=26#comment-1104</guid>
		<description>Your xml for urlMapping is incomplete! No value is set for:



and the property is closed. What is it supposed to be?</description>
		<content:encoded><![CDATA[<p>Your xml for urlMapping is incomplete! No value is set for:</p>
<p>and the property is closed. What is it supposed to be?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Allen</title>
		<link>http://72miles.com/blog/spring-opensessioninviewinterceptor-opensessioninviewfilter-examples/comment-page-1/#comment-38</link>
		<dc:creator>Dan Allen</dc:creator>
		<pubDate>Sat, 24 May 2008 20:21:17 +0000</pubDate>
		<guid isPermaLink="false">http://72miles.com/blog/?p=26#comment-38</guid>
		<description>You should read Spring in Seam, Part 3 (http://www.javaworld.com/javaworld/jw-05-2008/jw-05-spring-seam3.html) and chapters 8 and 9 of Seam in Action to discover why this Spring filter/interceptor is essential a huge *hack*. The persistence manager (Hibernate Session/JPA EntityManager) was designed to be extended across a series of requests, not be relegated to a single request or worse service layer call. LazyInitializationExceptions happen because the persistence manager is scoped incorrectly.</description>
		<content:encoded><![CDATA[<p>You should read Spring in Seam, Part 3 (<a href="http://www.javaworld.com/javaworld/jw-05-2008/jw-05-spring-seam3.html" rel="nofollow">http://www.javaworld.com/javaworld/jw-05-2008/jw-05-spring-seam3.html</a>) and chapters 8 and 9 of Seam in Action to discover why this Spring filter/interceptor is essential a huge *hack*. The persistence manager (Hibernate Session/JPA EntityManager) was designed to be extended across a series of requests, not be relegated to a single request or worse service layer call. LazyInitializationExceptions happen because the persistence manager is scoped incorrectly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: delta one</title>
		<link>http://72miles.com/blog/spring-opensessioninviewinterceptor-opensessioninviewfilter-examples/comment-page-1/#comment-37</link>
		<dc:creator>delta one</dc:creator>
		<pubDate>Sat, 24 May 2008 19:53:07 +0000</pubDate>
		<guid isPermaLink="false">http://72miles.com/blog/?p=26#comment-37</guid>
		<description>Excellent example!</description>
		<content:encoded><![CDATA[<p>Excellent example!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anonymous</title>
		<link>http://72miles.com/blog/spring-opensessioninviewinterceptor-opensessioninviewfilter-examples/comment-page-1/#comment-35</link>
		<dc:creator>Anonymous</dc:creator>
		<pubDate>Sat, 24 May 2008 19:51:53 +0000</pubDate>
		<guid isPermaLink="false">http://72miles.com/blog/?p=26#comment-35</guid>
		<description>For those of you using the Persistence API, there is also an EntityManager version:

org.springframework.orm.jpa.support.OpenEntityManagerInViewInterceptor

Thanks for your example, Chris

PS I would put an example - but seems the comments box does not allow it :(</description>
		<content:encoded><![CDATA[<p>For those of you using the Persistence API, there is also an EntityManager version:</p>
<p>org.springframework.orm.jpa.support.OpenEntityManagerInViewInterceptor</p>
<p>Thanks for your example, Chris</p>
<p>PS I would put an example &#8211; but seems the comments box does not allow it <img src='http://72miles.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cookie</title>
		<link>http://72miles.com/blog/spring-opensessioninviewinterceptor-opensessioninviewfilter-examples/comment-page-1/#comment-34</link>
		<dc:creator>cookie</dc:creator>
		<pubDate>Sat, 24 May 2008 19:51:23 +0000</pubDate>
		<guid isPermaLink="false">http://72miles.com/blog/?p=26#comment-34</guid>
		<description>Hi Mike,
Kudos on the great explanations and examples.

I am a newbie to Spring (as well as Java :P). I have a question regarding OpenSessionInViewInterceptor/ Filter.

I have a Spring app that only selective controllers requires open sessions. Can I selectively &quot;hook-up&quot; the interceptor to those controllers?

Thanks a lot.

YS</description>
		<content:encoded><![CDATA[<p>Hi Mike,<br />
Kudos on the great explanations and examples.</p>
<p>I am a newbie to Spring (as well as Java <img src='http://72miles.com/blog/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> ). I have a question regarding OpenSessionInViewInterceptor/ Filter.</p>
<p>I have a Spring app that only selective controllers requires open sessions. Can I selectively &#8220;hook-up&#8221; the interceptor to those controllers?</p>
<p>Thanks a lot.</p>
<p>YS</p>
]]></content:encoded>
	</item>
</channel>
</rss>

