[appengine-java] What's the right way to use PersistenceManager?

2009-12-07 Thread Fan Lin
Hi, I'm new in JDO, so I think this problem may sounds stupid... I'm working on my application on App-engine, and feel really confused about how to use the PersistenceManager in my app... 1) At the very beginning I tried to maintain only one static pm instance in my app, but I found that when I tr

Re: [appengine-java] What's the right way to use PersistenceManager?

2009-12-08 Thread Rusty Wright
My understanding is that the persistence manager factory can be a single instance that's shared, but the persistence manager, which the persistence manager factory produces, must not be shared. Your DaoBase can have a setter for the persistence manager factory, but not for the persistence manag