<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-4699667848216680716.post433069077084869031..comments</id><updated>2010-11-24T09:53:45.034+02:00</updated><category term='apache'/><category term='pitfalls'/><category term='click dating'/><category term='logging'/><category term='facebook'/><category term='data recovery'/><category term='flash'/><category term='hibernate'/><category term='javascript'/><category term='java'/><category term='php'/><category term='bugs'/><category term='howto'/><category term='Music'/><category term='junit'/><category term='AppEngine'/><category term='jdo'/><category term='video dating'/><category term='last.fm'/><category term='gwt'/><category term='flv'/><category term='metacafe.com'/><category term='tomcat'/><category term='slf4j'/><category term='offtopic'/><category term='google chrome'/><category term='log4j'/><category term='blind dating'/><category term='mobiledev'/><category term='Open Graph Protocol'/><category term='android'/><category term='blogger'/><category term='css'/><category term='guice'/><category term='wicket'/><category term='persistence'/><category term='unit testing'/><category term='video'/><category term='windows'/><category term='design'/><category term='codeark'/><category term='swf'/><category term='usb drive'/><category term='dating'/><category term='MySpace.com'/><category term='disk crash'/><category term='blogs'/><category term='google'/><title type='text'>Comments on Head to screen collision (H2SC): Lightweight JDO Persistence Filter using Guice</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://blog.yanivkessler.com/feeds/433069077084869031/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4699667848216680716/433069077084869031/comments/default'/><link rel='alternate' type='text/html' href='http://blog.yanivkessler.com/2010/06/lightweight-jdo-persistence-filter.html'/><author><name>Yaniv Kessler</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='23' src='http://4.bp.blogspot.com/-Xw3LFq0Pknk/TaIYJFZ_uYI/AAAAAAAABP0/h-JwcNsmBr4/s220/15027_323422707324_625752324_3011633_5781459_n.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4699667848216680716.post-4877771154864842371</id><published>2010-11-24T09:53:45.034+02:00</published><updated>2010-11-24T09:53:45.034+02:00</updated><title type='text'>In this particular scenario the guice provider is ...</title><content type='html'>In this particular scenario the guice provider is simply a wrapper for the PersistenceManagerFactory, there is no telling whats going on inside there, its possible one is created for each request or not. The filter code doesn&amp;#39;t do that, anyways.&lt;br /&gt;&lt;br /&gt;As for an &amp;quot;off the shelf&amp;quot; product, try the new &lt;a href="http://code.google.com/p/google-guice/wiki/GuicePersist" rel="nofollow"&gt;Guice 3.0 persist module&lt;/a&gt;. Guice 3.0 is still in an &amp;quot;unreleased&amp;quot; state thought.&lt;br /&gt;&lt;br /&gt;If you work on app engine, I suggest you take a look at other alternatives to JDO, like objectify.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4699667848216680716/433069077084869031/comments/default/4877771154864842371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4699667848216680716/433069077084869031/comments/default/4877771154864842371'/><link rel='alternate' type='text/html' href='http://blog.yanivkessler.com/2010/06/lightweight-jdo-persistence-filter.html?showComment=1290585225034#c4877771154864842371' title=''/><author><name>Yaniv Kessler</name><uri>http://www.blogger.com/profile/04361523048975960236</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='28' height='32' src='http://1.bp.blogspot.com/_XnhytjnfyaU/TIQjtckdW2I/AAAAAAAABLw/p37Tnv5cUmI/S220/34158_374017232324_625752324_3638594_6589510_n.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.yanivkessler.com/2010/06/lightweight-jdo-persistence-filter.html' ref='tag:blogger.com,1999:blog-4699667848216680716.post-433069077084869031' source='http://www.blogger.com/feeds/4699667848216680716/posts/default/433069077084869031' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1038858657'/></entry><entry><id>tag:blogger.com,1999:blog-4699667848216680716.post-4456250797058456715</id><published>2010-11-24T01:38:09.778+02:00</published><updated>2010-11-24T01:38:09.778+02:00</updated><title type='text'>Would using OpenPersistenceManagerInView be as sim...</title><content type='html'>Would using OpenPersistenceManagerInView be as simple as changing from Request to Session scope?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4699667848216680716/433069077084869031/comments/default/4456250797058456715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4699667848216680716/433069077084869031/comments/default/4456250797058456715'/><link rel='alternate' type='text/html' href='http://blog.yanivkessler.com/2010/06/lightweight-jdo-persistence-filter.html?showComment=1290555489778#c4456250797058456715' title=''/><author><name>Sir Christopher</name><uri>http://www.blogger.com/profile/03600139814092755398</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_0VJPBXwDhjQ/TE-0OIS2g_I/AAAAAAAAAFY/3GrxxaQurFU/S220/chrisNoBg.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.yanivkessler.com/2010/06/lightweight-jdo-persistence-filter.html' ref='tag:blogger.com,1999:blog-4699667848216680716.post-433069077084869031' source='http://www.blogger.com/feeds/4699667848216680716/posts/default/433069077084869031' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-284522547'/></entry><entry><id>tag:blogger.com,1999:blog-4699667848216680716.post-3310083653789005351</id><published>2010-11-24T00:58:08.590+02:00</published><updated>2010-11-24T00:58:08.590+02:00</updated><title type='text'>Is that using an open PersistenceManager per sessi...</title><content type='html'>Is that using an open PersistenceManager per session or does it create a new one for each individual request?&lt;br /&gt;&lt;br /&gt;Opening up a new one for each request means that there is no caching of objects in the L1 cache between requests - which can reduce performance if each session has lots of objects.&lt;br /&gt;&lt;br /&gt;I have a home grown filter which does keep the PM open for the life of a session and the performance is excellent. I&amp;#39;m just looking around for third party &amp;#39;off the shelf&amp;#39; alternatives.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4699667848216680716/433069077084869031/comments/default/3310083653789005351'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4699667848216680716/433069077084869031/comments/default/3310083653789005351'/><link rel='alternate' type='text/html' href='http://blog.yanivkessler.com/2010/06/lightweight-jdo-persistence-filter.html?showComment=1290553088590#c3310083653789005351' title=''/><author><name>Sir Christopher</name><uri>http://www.blogger.com/profile/03600139814092755398</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://4.bp.blogspot.com/_0VJPBXwDhjQ/TE-0OIS2g_I/AAAAAAAAAFY/3GrxxaQurFU/S220/chrisNoBg.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.yanivkessler.com/2010/06/lightweight-jdo-persistence-filter.html' ref='tag:blogger.com,1999:blog-4699667848216680716.post-433069077084869031' source='http://www.blogger.com/feeds/4699667848216680716/posts/default/433069077084869031' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-284522547'/></entry><entry><id>tag:blogger.com,1999:blog-4699667848216680716.post-3890976040815843452</id><published>2010-08-31T01:18:20.220+03:00</published><updated>2010-08-31T01:18:20.220+03:00</updated><title type='text'>Sessions expire after a timeout. If you wish to ex...</title><content type='html'>Sessions expire after a timeout. If you wish to expire a session deliberately, you should call &lt;a href="http://download.oracle.com/docs/cd/E17802_01/products/products/servlet/2.2/javadoc/javax/servlet/http/HttpSession.html#invalidate()" rel="nofollow"&gt;HttpSession.invalidate()&lt;/a&gt; in your logout code. &lt;br /&gt;&lt;br /&gt;Also there are some restrictions on sessions in AppEngine, for additional details, please read &lt;a href="http://code.google.com/appengine/docs/java/config/appconfig.html#Enabling_Sessions" rel="nofollow"&gt;this section&lt;/a&gt; in AppEngine docs</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4699667848216680716/433069077084869031/comments/default/3890976040815843452'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4699667848216680716/433069077084869031/comments/default/3890976040815843452'/><link rel='alternate' type='text/html' href='http://blog.yanivkessler.com/2010/06/lightweight-jdo-persistence-filter.html?showComment=1283206700220#c3890976040815843452' title=''/><author><name>Yaniv Kessler</name><uri>http://www.blogger.com/profile/04361523048975960236</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='30' src='http://3.bp.blogspot.com/_XnhytjnfyaU/TAvuOhVnOoI/AAAAAAAABIo/A0d6weor8a4/S220/smaller.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.yanivkessler.com/2010/06/lightweight-jdo-persistence-filter.html' ref='tag:blogger.com,1999:blog-4699667848216680716.post-433069077084869031' source='http://www.blogger.com/feeds/4699667848216680716/posts/default/433069077084869031' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1038858657'/></entry><entry><id>tag:blogger.com,1999:blog-4699667848216680716.post-8610817936297906014</id><published>2010-08-30T18:14:14.001+03:00</published><updated>2010-08-30T18:14:14.001+03:00</updated><title type='text'>Great article!
I had a problem with session scoped...</title><content type='html'>Great article!&lt;br /&gt;I had a problem with session scoped objects, which Guice (or Appengine) didn&amp;#39;t wanted to store in a session. It happened only with objects, which  were injected in a class together with UserService. And injection of session scoped provider for User instead of UserService really helped me. &lt;br /&gt;&lt;br /&gt;But another problem occured. After user has logged out using UserService logout URL, injected User object still contains user info. It happens because User is now a session scoped object and guice doesn&amp;#39;t inject a new User object, which suppose to be null. Session doesn&amp;#39;t expire after user has logged out. Is there any workaround for that?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4699667848216680716/433069077084869031/comments/default/8610817936297906014'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4699667848216680716/433069077084869031/comments/default/8610817936297906014'/><link rel='alternate' type='text/html' href='http://blog.yanivkessler.com/2010/06/lightweight-jdo-persistence-filter.html?showComment=1283181254001#c8610817936297906014' title=''/><author><name>Dmitri Semirenko</name><uri>http://www.blogger.com/profile/15057657468102061770</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='28' src='http://3.bp.blogspot.com/_4ylA5ZEozmU/SX-LhjaPsAI/AAAAAAAABk0/kE5QF0RQ0O0/S220/avatar.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://blog.yanivkessler.com/2010/06/lightweight-jdo-persistence-filter.html' ref='tag:blogger.com,1999:blog-4699667848216680716.post-433069077084869031' source='http://www.blogger.com/feeds/4699667848216680716/posts/default/433069077084869031' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-379326083'/></entry></feed>
