[hibernate-dev] disabling envers during runtime

Brett Meyer brmeyer at redhat.com
Thu May 7 14:22:42 EDT 2015


In older ORM versions, Envers could be dynamically disabled during runtime by creating an AuditEventListener delegate and surrounding the super calls with custom logic.  Info: https://access.redhat.com/documentation/en-US/JBoss_Enterprise_Application_Platform/6/html/Development_Guide/Enable_or_Disable_Auditing_at_Runtime1.html

Now that the architecture is different (EnversListener), any thoughts on alternatives?  Having trouble finding ideas...

In addition, is there a way to disable envers during SF bootstrapping?  Ie, set some sort of "hibernate.envers.disable" property?


More information about the hibernate-dev mailing list