Reputation: 41
We have Multiple Tomcat providing web services for our internal product.
Tomcat, Active MQ servers are different
Web services call sequence
Generate certain events & push in queue (Active MQ)
Start JMS Transaction
Push in queue
Commit JMS
Execute other business logic
(other business logic may generate another event for JMS)
Commit DB.
So what i want is to start Global Transaction which should take care of committing respective transaction in sequence.
JMS should only get commit if DB is getting commit.
Is it possible with JTA??????
Your suggestions are welcome.
Upvotes: 2
Views: 1680
Reputation: 24040
Yes. See these posts:
Configuring Spring and JTA without full Java EE
Configuring ActiveMQ transactions in Spring
Upvotes: 1