Interceptor « Transaction « JPA Q&A





1. Concurrency & ordering guarantees on using the interceptor    forum.hibernate.org

Hi, I have some J2EE apps (using of course JBoss/Hibernate) that required the same master data. The data schemes differs and cannot consolidate with low effort. Therefore I want to nominate one application as master and replicate the changes to the other (slave-)apps. I can successfully retrieve the changeset of a transaction using the Hibernate interceptor and I use JMS topics ...

2. Interceptor.postFlush and rollback    forum.hibernate.org

Hibernate version: 2.1.7 hi there, i've got a for me strange behaviour and i just want to ask, if i'm thinking wrong ... i need to write HistoryLogs to my db, so i use a Interceptor. In the postFlush-method all HistoryLogs are persisted ... To write the insert-statements, i'm using the connection of the current session (for using the same transaction). ...

5. interceptor/ transactions (hib3)    forum.hibernate.org

hi, plain vanilla session-factory-scoped interceptor: is there anyway to participate in the transaction of the caller? e.g. a Report object is being saved. in the onSave method body i would like to insert a record into a dependant ReportInfo table. because of the FK constraint in the dependant ReportInfo table, i can not insert the dependent record unitil the parent record ...

6. Interceptor and Transaction receiving a AssertionFailure    forum.hibernate.org

Hibernate version: Hibernate 3.2 Hi, I am using spring to manage the transaction this way: Code: and I am using an interceptor. The interceptor is meant to do somework when a ...

7. Interceptor wrongly increases optlocking version on rollback    forum.hibernate.org

KEYWORDS: Interceptor, flushDirty, Rollback, Optlocking, Version We are using an Interceptor to add updated by, change informations to our persisted objects. the objects are detatched, updated via session.save(). when we add the interceptor which then adds the change info to the currentState it works fine, except that when we get a StaleObjectException (or other exceptions) the version/optlocking flag is already increased ...