Enterprise JavaBeans Technology

Enterprise JavaBeans (EJB) technology is the server-side component architecture for Java Platform, Enterprise Edition (Java EE). EJB technology enables rapid and simplified development of distributed, transactional, secure and portable applications based on Java technology.

EJB 3.0 was introduced with Java EE 5 in 2006. At the time, it greatly simplified development by introducing the use of Java annotations, by making XML deployment descriptors optional and by adopting a convention-over-configuration approach. It also included the Java Persistence API for persistence and object/relational mapping with Java EE and Java SE which has since become an independent JSR of its own.

EJB 3.1 (part of Java EE 6 and released in 2009) introduces a multitude of new features including :

  • A "no interface" local view for session beans
  • Simplified packaging and deployment of EJB components directly in a web archive (.war)
  • An embeddable API for executing EJB components within a Java SE environment
  • A new singleton component
  • Calendar based EJB Timer expressions
  • Asynchronous session bean invocations
  • A portable global JNDI name syntax for looking up EJB components
  • The definition of a lightweight subset of EJB functionality that can be provided within the Java EE Web Profile
Community