9.5. Bean-managed transaction demarcation

This section describes techniques available to the developer who wants to control transaction boundaries more finely than is possible with container-managed demarcation. Variations of this technique can be used by servlets, JSPs, EJBs (except entity EJBs) and CORBA clients, provided that the RMI protocol supports the passing of transaction context between components.

Gotcha!

In general, if servlets and EJBs are deployed as part of the same application (i.e., in the same EAR file), then it should be possible for servlets to initiate transactions that encompass EJBs (although it may not be advisable). If they are deployed as different applications, and particularly if the servlets and EJBs are hosted by ...

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.