• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

JTA System Exception in the Rollback block  RSS feed

 
Ranch Hand
Posts: 312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am new to JTA API.In JTA API, UserTransaction.rollback throws javax.transaction.SystemException. In this case, if any SystemException arises what will be the condition of the transaction.
let say utx is the userTransaction Object.
try
{
utx.begin();
.....
some transaction takes place
.....
utx.commit()
}
catch(Exception e)
{
try
{
utx.rollback();
}
catch(javax.transaction.SystemException se)
{
System.out.println("System Exception occured in the Rollback");
}
}
So In this case if any exception occures in the main Block and rollback throws any system exception then what will happen to the transaction.
Regards,
M.S.Raman.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!