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

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

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

javascript - Restarting Supervisor and effect on FlaskSocketIO -