-
1. Re: Forcing Envers to commit changes with Seam
adamw Jun 23, 2009 7:26 AM (in response to empin1ty)Hello,
well, Envers is actually designed in a way to write the audit entries at the end of the TX (in case the entities are updated are being persisted, for example). If you really want to change that behaviour, look at AuditEventListener and the work units that are created there.
Adam -
2. Re: Forcing Envers to commit changes with Seam
empin1ty Jun 23, 2009 7:58 AM (in response to empin1ty)Tahnks for your reply,
but even if I'm using a Transaction like in saveAlternative(), envers won't commit its entities.
Do you know any other way "finishing the transaction" to trigger envers' commit?
empi -
3. Re: Forcing Envers to commit changes with Seam
adamw Jun 24, 2009 7:05 AM (in response to empin1ty)Hello,
well, maybe your transactions are not configured properly. Do you use BMT or CMT? If it's CMT, than you can't manage transactions in the bean.
Adam -
4. Re: Forcing Envers to commit changes with Seam
empin1ty Jun 24, 2009 8:13 AM (in response to empin1ty)Hi Adam,
thanks for your answer.
since I'm using CMT, I realized now that it's impossible to control the committing.
Anyway, I'm going to assume that the data will be at the right place when I need them during in my applications, without testing the entire process in advance :-/
empi