java - Is it possible access other transaction? -


i developing web application using spring, mybatis. want commit or rollback other transaction in transaction.

is possible sharing transaction object throw seperated transactions?

this answer may not informative it's best of knowledge.

a transaction indivisible unit of work. shouldn't remain open long time eats resources plus keeps object in inconsistent state. 1 should best let framework transaction manager manage transactions until & unless writing own management logic imperative. besides, keeping mind, spring provides 2 ways of implementing transactions declarative & programmatic.

programmatic provides greater control on transactions. there many transaction design patterns, this & this excellent resources if want read in depth designing transactions in java spring.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -