README revision ada1678a4262b208a7b87391f520a7767d25287c
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinThis tests the rollback logic of transaction. An EJB webservice is invoked by a servlet. This webservice method uses REQUIRED TX_Attribute.
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinHere is the flow-
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews
f5d30e2864e048a42c4dc1134993ae7efdb5d6c3Mark Andrews1. Standalone client invokes a servlet
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews2. Servlet creates table CUSTOMER_rb1
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews3. Servlet starts a UserTransaction
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews4. Servlet adds a row in the CUSTOMER_rb1 table
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews5. Servlet calls the EJB webservice
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews6. EJB webservice adds a row in the CUSTOMER_rb1 table
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews7. Servlet rollback the transaction
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews8. It is checked that the data is not updated in the table.
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews9. Table CUSTOMER_rb1 is dropped
819fe493f97078521bb6b9a7b97583bef89f5abcMark Andrews