I want to post-process after flushing my context to db, before db transaction commit, and, if SP fails rollback the context to the pre-commitChanges state (at least retain the persistence state, just like it happens when there is a db exception while flushing to the db). If not posible, I'll appreciate any direction to hack the code.
Thanks. Atte. Juan Manuel Díaz Lara