Exercise

Modify today's example to include a distributed transaction in the JMS consumer. This requires modifying the message-driven bean RegistrarMDB by adding a JDBC connection to the database styejbDB. Updating the data element is_registered to be 'T' of same record received in the table StudentCourse is also required.

Get Sams Teach Yourself EJB in 21 Days now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.