The Purpose of the Restrictions

The restrictions that are placed on business methods of enterprise beans are there according to the EJB specification, to ensure that the bean is portable across different EJB 2.0 containers. Now portability is very important; however, it’s not the only reason to adhere to these restrictions. The EJB server and container are designed for autonomy. In other words, the EJB server is reliant on itself to manage the resources and security for the environment. The purpose of this independence is to remove the necessity of the bean providers from having to deal with issues such as thread management, security, and scalability. The bean provider can concentrate on building the business logic for the application and let ...

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.