9

Another day, another task that requires magic. I'm stuck trying to connect hibernate envers and tomcat. Both work fine on their own, but now envers needs session data and i see no way to make that work because THAT GODDAMN ENVERS-LISTENER HAS NO WAY OF ACCESSING THAT INFORMATION WITHOUT GODAWFUL INSTABLE HACKS.

Comments
  • 1
    Update: I now have a working solution (hack) that is safe as long as

    1. every object is saved separately

    2. we always remember to set the global variables before the save and unset them after the save

    3. hibernate run event listeners in the same thread it does the save-operations in

    otherwise were screwed because if there is a bug we will never notice it until it causes big time problems.
Add Comment