-->
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: afterTransactionBegin and afterTransactionCompletion issues
PostPosted: Mon Mar 19, 2007 11:25 am 
Newbie

Joined: Mon Mar 19, 2007 11:10 am
Posts: 1
I have created a Hibernate interceptor which has overridden the EmptyInterceptor callback methods afterTransactionBegin(Transaction) and afterTransactionCompletion(Transaction).

I have found that the interceptor methods I listed above are never called when a transaction is initiated and closed. I have validated that other callback methods are called: beforeTransactionCompletion(Transaction), instantiate(...), preFlush(..), onPrepareStatement(...), etc...

I am somewhat puzzled over this. Anyone have any ideas what would cause beforeTransactionCompletion(...) to be called, but not afterTransactionCompletion(...) or beforeTransactionBegin(...)?

Some details (let me know if you need more):

I have registered this interceptor declaratively in the persistence.xml file:

Code:
<persistence-unit name="coreArchive" transaction-type="JTA">
        <properties>
            <property name="hibernate.archive.autodetection" value="none" />
       <property name="hibernate.ejb.interceptor"
        value="my.package.MyInterceptor" />
        </properties>
    </persistence-unit>


I am using WebLogic 9.1 and Spring2 to manage the transactions. I am also using Spring's WebLogicJtaTransactionManager to manage the transactions.

Any suggestions greatly appreciated!

-Kyle
Code:


Top
 Profile  
 
 Post subject: Re: afterTransactionBegin and afterTransactionCompletion issues
PostPosted: Mon Aug 18, 2014 5:48 pm 
Newbie

Joined: Mon Aug 18, 2014 5:45 pm
Posts: 1
I am using Hibernate 4.3.5.Final and still having the same behavior. We are under JTA in a Glassfish4 (JEE7) container.

afterTransactionBegins(...) does not get called.

Anyone had any luck with this?


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.