Java Software Components: JavaBeans and EJBs

To hide the business logic of the application and thus reduce the complexity of the Java code on the JSP page, we need a facility to encapsulate the business logic of the application. This business logic should be encapsulated in the form of software components. The use of these software components fits into our J2EE architecture, and Java provides two forms of software components: Java Beans and Enterprise Java Beans (EJBs).

JavaBeans are a coding facility in Java that allow for the creation of a local component that provides some degree of encapsulation. These components are not as complex as EJBs, and for applications that do not need the features of EJBs, they are more than suitable. Most notably, ...

Get J2EE™ and Beyond: Design, Develop, and Deploy World-Class Java™ Software 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.