dcsimg
How to attain Transaction Management in a session bean
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Wednesday, April 10, 2002 06:15 AM

My problem is i have two entity beans updating two different tables, coming under the same transaction.If any one entity bean call fails the whole transaction needs to be rolled back.


i tried this using try catch block with "getSessionContext().setRollBackOnly()".But it is not working. Is there any other way of acheiving this.

Re: How to attain Transaction Management in a session bean

Posted By:   Bozidar_Dangubic  
Posted On:   Wednesday, April 10, 2002 07:19 AM

that is the way to do it. so check your logic again and make sure that the transactional attributes are setup correctly.
About | Sitemap | Contact