Home » EJB Tutorials

EJB Tutorials

EJB Tutorials

In this detailed Resource page, we feature an abundance of EJB Tutorials!

Enterprise JavaBeans (EJB) is one of several Java APIs for modular construction of enterprise software. EJB is a server-side software component that encapsulates business logic of an application. An EJB web container provides a runtime environment for web related software components, including computer security, Java servlet lifecycle management, transaction processing, and other web services. The EJB specification is a subset of the Java EE specification.


The EJB specification intends to provide a standard way to implement the server-side (also called “back-end”) ‘business’ software typically found in enterprise applications (as opposed to ‘front-end’ user interface software). Such machine code addresses the same types of problems, and solutions to these problems are often repeatedly re-implemented by programmers. Enterprise JavaBeans is intended to handle such common concerns as persistence, transactional integrity, and security in a standard way, leaving programmers free to concentrate on the particular parts of the enterprise software at hand.

General responsibilities

The EJB specification details how an application server provides the following responsibilities:

  • Transaction processing
  • Integration with the persistence services offered by the Java Persistence API (JPA)
  • Concurrency control
  • Event-driven programming using Java Message Service and Java EE Connector Architecture
  • Asynchronous method invocation
  • Job scheduling
  • Naming and directory services (JNDI)
  • Interprocess Communication using RMI-IIOP and Web services
  • Security (Java Cryptography Extension and Java Authentication and Authorization Service)
  • Deployment of software components in an application server

Additionally, the Enterprise JavaBean specification defines the roles played by the EJB container and the EJBs as well as how to deploy the EJBs in a container. Note that the current EJB 3.2 specification does not detail how an application server provides persistence (a task delegated to the JPA specification), but instead details how business logic can easily integrate with the persistence services offered by the application server.

If you wish to build up your EJB knowledge first, check out our EJB Timer Service Example.

Java EJB Tutorials – Getting Started

Simple examples based on the JavaBeans

EJB Tutorials – Integrations

Learn how to use JavaBeans with other technologies

  • GWT EJB3 Maven JBoss 5.1 integration tutorial
    In this article we are going to demonstrate how to properly integrate GWT and EJB3 in order to implement an example project, build it using maven and deploy it on JBoss 5.1 application server.
Do you want to know how to develop your skillset to become a Java Rockstar?
Subscribe to our newsletter to start Rocking right now!
To get you started we give you our best selling eBooks for FREE!
1. JPA Mini Book
2. JVM Troubleshooting Guide
3. JUnit Tutorial for Unit Testing
4. Java Annotations Tutorial
5. Java Interview Questions
6. Spring Interview Questions
7. Android UI Design
and many more ....
I agree to the Terms and Privacy Policy