2 Replies Latest reply on Dec 7, 2013 6:14 AM by Jeff Bride

    policy-transaction quickstart:  message always sent to queueB

    Jeff Bride Novice

      Hi.

        I'm going through the demo/policy-transaction quickstart from latest FSW beta.

        The results of various scenarios i've tried all make sense with the exception of when i execute the following:

       

      mvn exec:java -Dexec.args="rollback.B policyQSTransacted"

       

      I do see in the server log the following message:

       

      TaskBService :: Marked transaction to rollback!

       

      My expectation would be that the initial global transaction commits (it does) and that the local transaction specific to TaskBServiceBean would rollback and subsequently a new message would not be enqueued into queueB.

      However, what i'm observing is that a new message is enqueued.

       

      Is my reasoning/expectations regarding this scenario incorrect ?

      What would it take to prevent a message from being enqueued into queueb.

       

      thank you!

      jeff