Exercises

Change the client code of today's example (Client.java) to start a JTA transaction to call the EnrollmentCart EJB. Then change the <transaction-attribute> in the ejb-jar.xml to Never. Rebuild and run the example using the same scripts. Comment on the exceptions that you're getting when running the code.

Where applicable, exercise solutions are offered on the book's Web site at www.ejb21days.com.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.181.36