-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Interceptor.afterTransactionBegin callback
PostPosted: Tue Nov 01, 2005 9:48 am 
Newbie

Joined: Wed Aug 10, 2005 12:12 am
Posts: 8
Location: Washington DC
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.1 rc2

Has anyone been using this method? We have an Interceptor instance wired into our Spring LocalSessionFactoryBean and have noticed that:

1) testing with JUnits using the HibernateTransactionManager - this callback is invoked as expected

2) testing using Weblogic's TransactionManager from JNDI - this callback is not invoked. We use this TransactionManager to start a TX via MDB onMessage (CMT) and also for declarative nested transactions via Spring configuration (not CMT). We do not see this callback ever getting called for the nested transactions. Is the reason why the MDB onMessage transaction is not triggering this callback because it is CMT (we saw that in the Interceptor javadoc)? If so, why isn't the other nested transactions being invoked?

Has anyone crafted a solution to ensure that every time a Transaction is started (CMT or non-CMT), that there is an opportunity for code insertion?

Thanks in advance!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 02, 2005 10:07 am 
Newbie

Joined: Wed Aug 10, 2005 12:12 am
Posts: 8
Location: Washington DC
So it does appear that both afterTransactionBegin and afterTransactionCompletion (javadoc needs to be updated) are not invoked when using a TransactionManager other than HibernateTransactionManager. I will look further on the Spring side (since we use that) to see if there is a proven pattern for similar interception upon a Transaction lifecycle.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.