2.4. Using EJB

EJB should contain the business logic for the application, so it is no surprise that EJB is the heart of most applications. An enterprise bean has the following characteristics:

  • Contains business logic that operates on enterprise data

  • Created and managed by a container

  • Mediates client access

  • Contains metadata, such as transaction and security attributes, separate from the bean

  • Provides transaction management, state management, resource pooling, and security checks. If you have an application that does not require security and/or transaction support, then you must really question whether you should use EJB.

Get Sun Certified Enterprise Architect for J2EE™ Technology Study Guide 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.