Spring, iBatis, MySQL - how to manage transactions?

Hello, I am building a web application with spring ibatis and mysql.

I am going to use mysql stored procedures and I will call them using ibatis. My question is how to manage transactions. Should I manage transactions inside stored procedures either with spring / ibatis or with both?

+3
source share
2 answers

Using Ibatis and preserving prose quite happily, I do not see anything unfavorable in this approach.

Ibatis is great for conveniently passing parameters to your change data handlers and for correctly processing the results of get-data data handlers.

Ibatis , procs .

: . autocommit, , , proc . , , , "" . , , , , .

, Spring - , , , , , , .

- , .. app/ Spring, , procs, COMMIT , "" "" ( , , ).

- , , COMMIT -. , Oracle, , COMMIT COMMIT, , , procs, , , .

+1

, . , , iBatis .

, Spring iBatis, Spring , .

, Spring, , NO.

+1

Source: https://habr.com/ru/post/1721607/


All Articles