java - Transaction spanning multiple WARs -


i have 2 wars running on same tomcat server, both using spring transactions , both writing same database. communicate each other through rest calls.

now have business process starts foo.war, calls bar.war, returns foo.war. both of them write same database, not part of 1 transaction, if foo.war fails commit, bar.war doesn't rollback.

how can solve problem without integrating 1 war other?

i though standalone jta implementation might work, since different applications, i'm not sure if will.

i believe use case suited transaction based on tcc architecture. pls find below links details on architecture :- a) link-1 b) link-2


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -