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
Post a Comment