Hi! I have a doubt of since administering a Persistence manager for
an application(for example web). When close the persistence manager?
When commit the transaction? The pattern singleton the example?
Because if I continue the help of google, the pattern, close a
persitence manager, for example:
PersistenceManager pm = PMF.get().getPersistenceManager();
Employee e = new Employee("Alfred", "Smith", new Date());
try {
pm.makePersistent(e);
} finally {
pm.close(); //I accede again for the system, it is going
to give mistake because it is closed
}
The standard errors that happen to me are:
1- "Object whit id "model.fe...@cf17c3" is handled for other
ObjectManager".
2-"The persistent manager is closed".
3- "The transaction is active still. You must close the transactions
using the methods
commit() o rollback()."
Regards
--
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.