This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Cattle Drive and the fly likes Problem during save (SessionBean + DAO+Entity Bean) in websphere 5.0.2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "Problem during save (SessionBean + DAO+Entity Bean) in websphere 5.0.2" Watch "Problem during save (SessionBean + DAO+Entity Bean) in websphere 5.0.2" New topic
Author

Problem during save (SessionBean + DAO+Entity Bean) in websphere 5.0.2

Sanju Sharma
Greenhorn

Joined: Mar 02, 2005
Posts: 3
Hi

I am using the websphere 5.0.2. I am doing the transaction which has sequence :
SessionBean+DAO+Entity bean calls ,The problem is coming when inside session bean i am calling the entity bean (Session bean is running in trnsaction mode as "REQUIRED" but before saving i am getting the Sequenec ID from the database using the DAO(DAO has to statement one is Update+ Select), After getting the SeqID when i call the entity bean for saving the Data i get the Transaction Rollback Excption.
( Also i am not using the XA data source)

Thanks for helping in advance

Regards
Sanjeev
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

OK, i am going to move this to the more appropriate EJB forum. This is about Transaction demarkations, and what Rolls back the Transaction within an EJB, and are we sure where you see this exception, is actually where it is being thrown.

I think you will need to paste your stack trace here for us to get a better look.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
Consider Paul's rocket mass heater.
 
subject: Problem during save (SessionBean + DAO+Entity Bean) in websphere 5.0.2
 
Similar Threads
Bean Packaging
Using transaction with Websphere...
WSAD / Optimistic Update Failed Exception
Problem during save (SessionBean + DAO+Entity Bean) in websphere 5.0.2
BMP transaction in DAO