Yes, you can do this. getTransaction returns the transaction in the current
thread, so just keep that in mind.

On Mon, Jul 19, 2010 at 8:13 AM, coltsith <[email protected]> wrote:

> (PMF = PersistenceManagerFactory instance)
>
> PersistenceManager pm1 = PMF.get().getPersistenceManager();
>
> PersistenceManager pm2 = PMF.get().getPersistenceManager();
>
> Is this a strict no no? I want to use it so I can have two
> transactions in a single method on different objects.
>
> Thanks
>
> --
> 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]<google-appengine%[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
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

-- 
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