java - Transaction management Apache Karaf with myBatis -


i'm developing osgi app apache karaf , mybatis. have problem transaction management - how achieve following:

  1. start transaction.
  2. some business methods
  3. some db calls.
  4. transaction commit.

now if happens in point 3. want rollback (db , business method actions).

should use pure jta or other framework?

i've asked google examples based on jpa + jta or spring want omit.

thanks in advance!


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -