users@glassfish.java.net

Re: JPA - entityManager.flush()

From: <glassfish_at_javadesktop.org>
Date: Wed, 16 May 2007 15:05:02 PDT

Eh,

None of them are good,
I think the best thing I can think of is to:
1) load the entities by the injected EM.
2) perform the entity modifications
3) end the transaction
4) start a new transaction with the next modifications.


But from my understanding, the container start/ends the transaction at the start/end of the method,

Is there any way to start/end transactions manually?

I tried, but I get an exception that user transactions are not allowed in container managed beans,


Is it possible somehow?
[Message sent by forum member 'trouby' (trouby)]

http://forums.java.net/jive/thread.jspa?messageID=217502