[jboss-user] [EJB/JBoss] - Transaction Issue in JBOSS

udith do-not-reply at jboss.com
Fri Mar 9 07:17:38 EST 2007


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 



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4026580#4026580

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4026580



More information about the jboss-user mailing list