Hi Tim, It sounds like you need to detach the fetched entities so that they can still be accessed once the pm is closed. You can configure JDO to do this for you automatically using:
<prop key="datanucleus.DetachOnClose">true</prop> Could I see your jdo config file? You might need to detach each member of the result collection manually. At one point I seem to recall that the entities had to be moved into a collection from the result set but I need to confirm that this is correct. Also, this question might be better suited for the Google App Engine for Java forum: http://groups.google.com/group/google-appengine-java Thank you, Jeff On Tue, Jun 9, 2009 at 12:15 PM, Tim Wickstrom <timwickst...@gmail.com>wrote: > > Hello, > > I am building a function that queries the datastore and returns the > results of the query. The basic structure of the function is as > follows: > > 1. Get the persistenceManager pm from the factory > 2. Execute a query string with pm.newQuery(queryString).execute() > 3. Close pm > 4. Return results of the query execution > > The results from the query execution aren't available after closing > the pm. Do I need to make a manual copy of the results before closing > the pm so that I can use/display that data? > > Thanks, > Tim > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---