File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transaction Inside Transaction

 
karthik manick
Ranch Hand
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can i have a new transaction inside a transaction.
This is needed since i want to commit only a particluar flow inside a transaction. And later i want to commit the entire outside transaction.(I am using Usertransaction type)
 
karthik manick
Ranch Hand
Posts: 53
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please help me on this.
 
E Armitage
Rancher
Posts: 989
9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can invoke methods that start a new transaction while the first transaction is suspended but you need to explain your requirements more here.
Why are these transactions related? What happens if the second flows fail to commit after the first has already been committed?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic