mugle-dev team mailing list archive
-
mugle-dev team
-
Mailing list archive
-
Message #00320
Re: Using the persistence Manager many times in one method
> On that note, dont use them in a for loop either;
> I'm going through and having to change many of the ServerSideImpl to use
> ModelClass.getObject(key.getID()) rather than ModelClass.getObject(pm, key)
> so that the server doesnt crash
Hmm. This seems very wrong; I thought the point of the persistencemanager
was to open a long-term connection to the DB.
In that case, I've done the wrong thing in UploadService. I'll fix it so it
opens a new PM each time it wants to write a file.
Follow ups
References