Transactional J2EE

We've already discussed EJB in detail, and there is extensive EJB literature available, so we will not belabor its value. J2EE provides EJB as a component translation layer that exists inside a container and provides most middle-tier services such as a transaction management layer, security, remote-client connectivity, and database connection pooling.

Fundamentally, EJB is a rudimentary transactional middleware environment that supports two types of components, or beans: session beans and entity beans. In short, session beans are nonpersistent, or transient, and can only link to one client for one session. An entity bean, by contrast, provides persistence.

If you are interested in mixing transactions and Java, you have JTA ...

Get Next Generation Application Integration: From Simple Information to Web Services 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.