VMware Cloud Community
jtravis_hyperic
Hot Shot
Hot Shot

Hibernate Session-fu

I've made some fundamental changes in our Hibernate session and
transaction snatching, today.

We were missing calls to proxied interceptors coming from JBoss,
which I've fixed. All this means, is that we weren't intercepting
all the calls that we would potentially need to, before.

I've also moved the session setup to come before the transactionCMT
interceptor is invoked. This should probably only change
functionality for things not coming from the UI (as the Hibernate
session there is setup in the SessionFilter).

In addition, we only flush our session now, if there wasn't any
exception thrown. This should mean a few less errors in our log
files after a kaboom happens.

-- Jon



0 Kudos
0 Replies