[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.rt.eclipselink] Re: Persistence context lost after rollback
|
- From: pentike@xxxxxxxxx (Gabor Pentek)
- Date: Mon, 6 Jul 2009 15:09:01 +0000 (UTC)
- Newsgroups: eclipse.rt.eclipselink
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
tbee wrote:
I've written an extention on the entitymanager that registers any persist,
merge or delete action and holds those until the commit is executed. Then it
re-applies these actions.
This because I ran into the same situation as you did, so now it can survive
a SQLException. Simply change the entiies so it won't fail and commit again.
I don't think I clearly understand you. The first part is ok, keep my own
history of the changes, but what do you mean by "re-applies"? Do you mean
applying the operations right before the commit? I don't see how would it
help restoring the context.
Could you explain this a bit detailed?
Thanks,
Ga'bor