-->
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: Hibernate not flushing with Spring JTA
PostPosted: Mon Jul 11, 2005 5:51 pm 
Newbie

Joined: Wed Jun 22, 2005 6:38 pm
Posts: 7
Hibernate version: 2.1.8

I'm using Spring in JBoss to manage JTA transactions around my service layer. The problem, I believe, is that the Session isn't being flushed when the JTA is committed, causing all updates to be lost. I can call flush() in my Persistence Managers to work-around this problem. I was hoping setFlushMode(FlushMode.COMMIT) would also fix this, but it doesn't have any effect. I posted to the Spring forum but I thought it might also be an issue with Hibernate not listening for the JTA commit.

Here is the relevant configuration files.

Any help would be appreciated.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 08, 2005 7:49 am 
Expert
Expert

Joined: Sat Oct 25, 2003 8:49 am
Posts: 490
Location: Vrhnika, Slovenia
I also used to use Spring for Hibernate handling.
But when using JBossAS simply use H3 capabilities (SF.getCurrentSession()) and leave all the rest to JBossAS EJB container (and underlaying Hibernate handling).
I'm doing a whole new portal app with EJB3 and haven't had any problems yet - and the code is much more clean than with Spring's XTransactionManager.
But that doesn't stop you from using Spring.
Check out this: http://wiki.jboss.org/wiki/Wiki.jsp?pag ... ntegration

Rgds, Ales

_________________
--------------------------------
Ales Justin
JBoss, a division of Red Hat


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.