Link to home
Start Free TrialLog in
Avatar of chaitu chaitu
chaitu chaituFlag for India

asked on

Transaction Rollback due to Time Out

Hello,
My problem is i get an error "Transaction Rollback due to Time Out" whenever i have to perform some database operations. Can we specify duration of a Transaction, in an EJB Application.

i am using oc4j server

i didnt find transaction timeout option anywhere in ejb-jar.xml and orion.ejb-jar.xml
Avatar of petmagdy
petmagdy
Flag of Canada image

does this happen while u debug ur application?
if this is not while u debug, then in ur orion-ejb.jar on the session bean descriptor try to use call-timeout parameter (its default value 9000 Milli Second) increase it and retry as explain in the url:
http://www.comp.hkbu.edu.hk/docs/o/dl/web/B10324_01/dtdxml.htm
Avatar of chaitu chaitu

ASKER

while debug my application its coming
ASKER CERTIFIED SOLUTION
Avatar of petmagdy
petmagdy
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
because u r debbuging during a transaction, it expires after 90 second, so increase call-timeout while u r still developing and debbuging and when u go for production return it to default value