Hi Tom, I always call close() on an PersistenceManager instance once I have finished with it, be it using or not using a transaction.
In my jdoconfig.xml, I use the setting <property name="datanucleus.DetachAllOnCommit" value="true"/> so I can call PersistenceManager#close() with confidence that I am not mucking anything up. I cannot think of a reason why examples do not mention close(). I use this to release resources for re-use or garbage collection. Regards, Ian On Feb 22, 7:54 am, Tom Fishman <tom.fish...@dishcrunch.com> wrote: > In almost every example code I can see, the PersistenceManager is never > closed ( call close() ) with JDO transaction operation. > What's the reason of that? ( In other cases, close() is always called in > finally clause ) > > My code has both transaction and non-transaction operations, the entity > returned from transaction operation always have JDO state and JDO manager > attached which I want to remove so they have identical pattern for both > cases. > > -Tom. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.