dcsimg
Invoking UserTransaction.begin multiple Times..
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   amish_mehta
Posted On:   Thursday, February 6, 2003 01:36 PM

Hi, I have a piece of logic that needs to perform several Transactions in the same call... Process Data Set One..... Get User Transaction.... (Jndi lookup to get UserTransaction [ut]) Begin Transaction (ut.begin) Update Data Set One (several database updates) if no error... commit (ut.commit) if error... roolback (ut.rollback) proceed to ,, (next DataSet) In a single method call, there are several transactions that need to be covered. The Transaction boundaries being the datasets. The problem I am facing with JTA is, if one data   More>>

Hi,


I have a piece of logic that needs to perform several Transactions in the same call...





Process Data Set One.....


Get User Transaction.... (Jndi lookup to get UserTransaction [ut])


Begin Transaction (ut.begin)


Update Data Set One (several database updates)


if no error... commit (ut.commit)


if error... roolback (ut.rollback)


proceed to ,, (next DataSet)






In a single method call, there are several transactions that need to be covered. The Transaction boundaries being the datasets.





The problem I am facing with JTA is, if one dataset is rolledback, the next call to get the UserTransaction object, gets a UserTransaction object in the "Marked For Rollback" state.


The Application is Deployed on Weblogic 6.1 Service Pack 4.


Regards,


Amish Mehta    <<Less
About | Sitemap | Contact