File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply 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 ?
     
    Similar Threads
    unable to run select query in frame
    Keep application running
    Getting Name of current Method
    How to Catch Exception
    wants to configure next and previous buttons for database entry !