EJB Exception Handling

Like other Java APIs, using exceptions to report and handle error conditions is an important part of EJB programming. The distributed and transactional nature of EJB actually makes exception handling more of an issue here than with many other areas of Java development. When a remote client communicates with an EJB component, a lot of things have to happen: a network connection is required, the client must be able to locate the component on some remote server, security permissions must be in place to grant access to the client, the data passed between the two must be correctly marshalled, and so on. Although handled transparently to you (for the most part) as an EJB developer, each of these steps is complex and each has ...

Get Special Edition Using Enterprise JavaBeans™ 2.0 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.