This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies 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 » Java » EJB and other Java EE Technologies
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

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

Sanju Sharma

Joined: Mar 02, 2005
Posts: 3

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)

Here is the stack trace for the Exception ::::
va:5 at at So
urce)se at
rocessT at
rocessT at
[3/2/05 at enlist caug
ht java at$
while trying to enlist resources from datasource jdbc/skeds with the Transactio
n Manager for the current transaction, and threw a Exception.

[3/2/05 at
know at at
va:568) at
rocessT at
rocessT at Error u
sing ad at$
---- Begin backtrace for nested exception
known Source)
Exte at at So
urce) at
rocessT at
rocessT at
know at at
va:5 at at So
urce)sT at
Exte at at So
urce)Be at
rocessT at
rocessT at
rsisten at or execute a
n Inter at$

[3/2/05 16:45:22:348 GMT] 327473 ExceptionUtil E CNTR0020E: Non-application ex
ception occurred while processing method "save" on bean "BeanId(SKEPersistence#S
KEPersistenceEJB.jar#SKEPersistence, null)". Exception data: javax.ejb.Transacti
onRolledbackLocalException: ; nested exception is: javax.ejb.EJBException: nest
ed exception is: P
MGR6022E: Error using adapter to create or execute an Interaction.

Thanks for helping in advance


[ March 03, 2005: Message edited by: Sanju Sharma ]
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17271

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.


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Problem during save (SessionBean + DAO+Entity Bean) in websphere 5.0.2
It's not a secret anymore!