18.6. Transaction management

The quote server resource manager presented above has no transactional semantics; it is meaningless to talk of ‘rolling back’ this server. In practice, many EIS implementations that will be supported by resource adapters will be transactional. A client will be able to carry out operations grouped into a single transaction, such that if one operation fails, the earlier operations can be rolled back.

If the resource adapter is integrated into an EJB container, and the container is managing transactions, then the container needs to get access to the transaction infrastructure of the external resource.

Consider the case where an entity EJB is using a resource adapter for access to its persistent storage. In its ejbStore() ...

Get Applied Enterprise JavaBeans™ Technology 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.