Appendix B. Implementing XA Global Transactions
In Chapter 7, scenario 1, we implemented a sender session bean and receiver MDB. The employee data retrieved by the MDB was destined for a system of record; however, since our implementation was focused on the messaging aspects, we simply printed the received data to the server console. In this appendix we extend our implementation to include a system of record implemented by a database. We use a session bean and entity bean to access the database, and configure the interaction such that the retrieval of the message and the update to the database is done as a single global XA transaction.
In order to execute this tutorial, we need to add a database server to our development ...