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 Is ths Transaction Handling Write or Wrong ? 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 "Is ths Transaction Handling Write or Wrong ?" Watch "Is ths Transaction Handling Write or Wrong ?" New topic
Author

Is ths Transaction Handling Write or Wrong ?

dinesh thalis
Ranch Hand

Joined: Nov 19, 2008
Posts: 39
I little bit hesitate about Transaction handling in my application. I want to add data to database, before do this following steps should happen

  • add data to account table
  • update account serial which locate another table
  • add data to monthtrm table
  • update monthtrm serial which locate another table


  • In order to success this step I used container manager transaction below show that code




    Add data to account



    Add data to monthtrn




    Update Account serial




    Update Trnserial



    Exception Class



    Is this way correctly to handle Transaction? If I wrong please give me you're precious advice to improve my program efficiency, please give some comments

     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: Is ths Transaction Handling Write or Wrong ?
     
    It's not a secret anymore!