Enterprise JavaBeans

In a typical business application built on the J2EE platform, business logic will be encapsulated in Enterprise JavaBeans (EJBs). It is possible to use other types of component or plain Java objects to implement business logic, but EJBs provide a convenient way of encapsulating and sharing common business logic, as well as benefiting from the services provided by the EJB container.

EJBs are usually described as a distributable component technology. Unlike JavaBeans, which must reside in the same JVM as the client and server, EJBs can reside in different JVMs allowing the client and server to be located on physically separate machines.

The EJB model makes use of two mechanisms found in J2SE--namely Remote Method Invocation ...

Get Sams Teach Yourself J2EE™ in 21 Days, Second Edition 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.