Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

javax.transaction.TransactionRolledbackException is Session Bean  RSS feed

Ketan Khimani
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Frnds,
I am working on IBM VAJ 3.5.3 and ihd write entity beans.
I am having a session bean (No 1) (for inserting record in DB as three tables r there icn not use directly entity ejb) and from that session bean i am calling another session bean (No 2) which is getting the max value from database for inserting the record. I want this bean for entire application as i wll be generating unique id for each n every table, for that ihd created session bean.
And after getting the max value i am inserting this max value and other data gathered from user in database through two different entity beans.
So now when i am doing this i am getting javax.transaction.TransactionRolledbackException.
But if i am calling only (No 2)bean that for getting max value from database and not intserting record throug entity thn it is working fine , the another bean(No 2 ) is giving the desired result.
And if i am calling only insert operation and not bean (No 2) than also it is working fine.
The problem is that I am doing database operation in My (No 2)bean , doing connection and one select query. if i am commenting it out that whole the thing is working correctly.
The whole error is as follows , if anybody can help me , pls send reply :
Exception is:
javax.transaction.TransactionRolledbackException: CORBA TRANSACTION_ROLLEDBACK 0 No; nested exception is:
void, int,
org.omg.CORBA.portable.OutputStream, org.omg.CORBA.portable.InputStream, org.omg.CORBA.portable.ResponseHandler)
minor code: 0 completed: No
Ketan Khimani
NextGen InfoNET Pvt. Ltd.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!