• Post Reply Bookmark Topic Watch Topic
  • New Topic

Transactions in a J2EE environment  RSS feed

 
dominicv Kumar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Folks,
I had a question regarding handling transactions in a J2EE environment.Lets say that I have three tables to be updated-Employee,Department and Emp-Dep.How do I implement the transaction logic for this-ensuring that department table gets updated only when the Employee table gets updated successfully.Else the entire transaction needs to be rolled back.Please advise.

Thanks
Dominic
 
Scott Selikoff
author
Bartender
Posts: 4081
21
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While this sounds like a case of DoYourOwnHomework, I'm going to go out on a limb and say, why don't you provide an outline of what you think the solution should be, and we can advise from there.
[ May 04, 2008: Message edited by: Scott Selikoff ]
 
dominicv Kumar
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply.I did have an idea as to how to go about this.Plain JDBC code or the JTA API could be used if bean transactions are being used.If container managed transactions are being used,then we could let the container handle the transactions.

Thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!