javaee7-samples
javaee7-samples copied to clipboard
Arquillian test for JMS XA
Add integration test showing XA Datasource+JMS.
Scenario: When user registers account then a record in DB must be created and email must be sent. Email must be send through JMS queue so in case the mail server is down we get redelivery and DLQ ultimately.
Test should show that if persisting to db fails (transaction gets rolled back) the message is not delivered via JMS.
Would you like to add this test ?
Sure, once I figure it out :)