-->
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.  [ 1 post ] 
Author Message
 Post subject: Transaction Issue
PostPosted: Fri Mar 09, 2007 8:22 am 
Newbie

Joined: Fri Mar 09, 2007 8:10 am
Posts: 2
Hi,

I am using EJB,Hibernate and postgresql for my project and the server is JBoss. i have handled Transactions at EJB level as shown below. but there is a issue when multiple treads are running

Below is what happens in the EJB methods

(1) Method abc(){ //ejb transaction type is 'RequiresNew'

(2) Method ccc (){} // ejb transaction type is 'Required'

}


(2) Method ccc (){

Save to table 1 //using hibernate

Save to table 2 //using hibernate

Save to table 3 //using hibernate

}


But the first table doesn't update properly. Other two tables are updated properly.

Ex: - if the Method abc() is called from a loop which is 100. the tables are updated as below.


table 1 - 85

table 2 - 100

table 3 - 100

like to know how to overcome this problem as soon as possible,

............
thanks


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

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.