Can you post some code? It sounds like you are instantiating a
PersistenceManagerFactory instead of doing it once and referencing the
singleton.

On Tue, Mar 16, 2010 at 9:54 AM, david jones <[email protected]> wrote:
> hey, i'm pretty new to the app engine, and basically i'm in the middle
> of creating something whereby i need multiple pages with seperate
> comment systems using PMF. if i try to use my PMF on more than 1 page,
> though, i get an error saying
>
> Caused by: javax.jdo.JDOFatalUserException: Application code attempted
> to create a PersistenceManagerFactory named transactions-optional, but
> one with this name already exists!  Instances of
> PersistenceManagerFactory are extremely slow to create and it is
> usually not necessary to create one with a given name more than once.
> Instead, create a singleton and share it throughout your code.  If you
> really do need to create a duplicate PersistenceManagerFactory (such
> as for a unittest suite), set the
> appengine.orm.disable.duplicate.pmf.exception system property to avoid
> this error.
>        at
> org.datanucleus.store.appengine.jdo.DatastoreJDOPersistenceManagerFactory.getPersistenceManagerFactory(DatastoreJDOPersistenceManagerFactory.java:
> 135)
>
> now i can create a PMF named something seperate and it all works fine
> except it uses the exact same comments that have been posted - not
> exactly what i'm after! so i was wondering if anyone knows how to get
> around this e.g. how to set the
> appengine.orm.disable.duplicate.pmf.exception or something else?
>
> thanks,
> david
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google App Engine" 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?hl=en.
>
>



-- 
Ikai Lan
Developer Programs Engineer, Google App Engine
http://googleappengine.blogspot.com | http://twitter.com/app_engine

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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?hl=en.

Reply via email to