-
1. Re: policy-transaction quickstart: message always sent to queueB
igarashitm Dec 7, 2013 1:13 AM (in response to jbride)Hi Jeff, welcome back to the SwitchYard
Nope, message is sent to the queueB even if the transaction for the TaskBService is rolled back. TaskBServiceBean has a reference to the StoreBService, which send a message to the queueB, has "suspendsTransaction" policy, so the transaction sending JMS message doesn't synchronize with TaskBServiceBean.
I know it's a bit confusing and actually some people have asked exactly same question, but I wanted to demonstrate the managedTransaction.Local policy there
Thanks,
Tomo
-
2. Re: policy-transaction quickstart: message always sent to queueB
jbride Dec 7, 2013 6:14 AM (in response to igarashitm)ahh, yes. thanks Tomo! completely overlooked the SUSPENDS_TRANSACTION on StoreBService. Makes complete sense why message is enqueued to queueB.
and, when the trnx policy on StoreBService is switched to PROPOGATE_TRANSACTION, the message is not enqueued on queueB . perfect.
like always ... thanks Tomo!
jeff