Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Transaction Management  RSS feed

 
vishal sodani
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i want to develop a client-server application,without using J2EE.How can I manage transactions,if I use RMI and JDBC
thanks
 
Avi Abrami
Ranch Hand
Posts: 1141
1
Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Vishal,
If you're talking about database transaction management, then (in my opinion) a simple form of transaction management is using the methods "setAutoCommit()","commit()" and "rollback()" in class "java.sql.Connection" -- assuming your database and JDBC driver support it.
If I remember correctly, there is an example of using these methods in the Java Tutorial
http://java.sun.com/docs/books/tutorial/jdbc/index.html
Hope this helps you.
Good Luck,
Avi.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!