File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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: 17259
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem during save (SessionBean + DAO+Entity Bean) in websphere 5.0.2