
The JavaBeans APIs became part of the "core" Java APIs as of the 1.1 release of the JDK.
EJB - Enterprise JavaBeans (EJBs) are Java-based software components that are built to comply with Java's EJB specification and run inside of an EJB container supplied by a J2EE provider. It is an "enterprise" api for distributed objects. Provides a standard approach to building such objects and allowing an EJB container (EJB application server) to manage the lifecycle of the beans. EJB's provide persistance, scalability, and distributed transaction support (via the container).
An EJB or an enterprise java container provides distributed application functionality such as transaction support, persistence and lifecycle management for the EJBs. Further Details about apache tomcat or simply tomcat server and JavaBeans can be found at Sun Java Tutorial.