-
15. Re: Envers not auditing in Seam entityManager manual flush
adamw Feb 24, 2010 3:22 AM (in response to mmagno)Hmm. That's really weird .
I've used Envers with Seam without problems ... there's even a demo app.
I can't think of anything more without looking at the code right now ... Maybe you could create a minimalistic failing example, and send it to me?
Adam
-
16. Re: Envers not auditing in Seam entityManager manual flush
adamw Feb 24, 2010 4:44 AM (in response to adamw)One more thing - are you using MySQL MyISAM? If so, then try changing to InnoDB. MyISAM doesn't support transactions at all.
Adam
-
17. Re: Envers not auditing in Seam entityManager manual flush
mmagno Feb 24, 2010 10:23 AM (in response to adamw)I am using Postgresql, and envers used to work for me as well in a tomcat + hibernate enviromment.
I am going to generate a minimal project and send you latter today.
-
18. Re: Envers not auditing in Seam entityManager manual flush
mmagno Feb 24, 2010 7:34 PM (in response to mmagno)Adam,Please find attached one little project with only one entity. I have tryed to make as simple as possible for you to understand, please, feel free to make any comments os ask what you need.Please note that the project is based on a RESOURCE_LOCAL aproach because I am willing to throw this project in a Toncat in a near feature (but now I am using Jboss 4.2.3 GA), as I already have one project that works well with envers with toncat and RESOURCE_LOCAL aproaches.In time, I was no able to pach the lib folder within the zip, please complete the lib file with the lib dir of any seam 2.2.0 project.Thank you so much for your time.Att,Magno-
opc.zip 520.3 KB
-
-
19. Re: Envers not auditing in Seam entityManager manual flush
adamw Feb 26, 2010 12:04 PM (in response to mmagno)Heh, found the problem. In fact it's quite easy
In your persistence.xml at the end you re-definge the post-* listeners with listeners for Hibernate Search. As they come last, they overwrite the envers listeners and so they don't work. Simply add them to one list .
Adam
-
20. Re: Envers not auditing in Seam entityManager manual flush
mmagno Feb 26, 2010 1:58 PM (in response to adamw)Hey Adam... Thank you so much for your time...
Now its working Like a Charm !!!!!
Kind of tricky this one... isn't it?
Thanks again!