The persistence layer uses lazy-load approach, so when in jsp it tries to
access to entities extracted from the database it throws exception because
the persistence manager is just closed.
So, how to avoid this problem?
so either use eager fetch... not a good idea for large objects.
OR
use a VTO pattern (http://java.sun.com/blueprints/patterns/
TransferObject.html) to populate ur presentation objects.
this enables the persistence layer transaction to be abstracted away
from presentation.
VTO pattern is more usefull.
-lp
--
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.