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

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

javascript - Create a stacked percentage column -