In the documentation I've read that I have to use a singleton instance here
you have the source code, perhaps i have here the error?
public class PersistenceManagerHelper {
/* the singleton instance */
private static PersistenceManager instance = null;
/**
* Hide the constructor.
*/
private PersistenceManagerHelper() {
}
/**
* Gets the singleton instance of the PersistenceManager
*
* @return the singleton instance of the PersistenceManager
*/
public static PersistenceManager getPersistenceManager() {
if (instance == null) {
instance =
JDOHelper.getPersistenceManagerFactory("transactions-optional")
.getPersistenceManager();
}
return instance;
}
}
Thanks.
2010/7/12 boustanihani <[email protected]>
> Could you paste the source of "PersistenceManagerHelper" ?
> Are you sure you are getting a new PersistenceManager ?
>
> --
> 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]<google-appengine-java%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>
--
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.