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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

android - How to create dynamically Fragment pager adapter -

1111. appearing after print sequence - php -