Develop EJB applications
This page provides a starting point for finding information about enterprise beans.
Based on the EJB specification, enterprise beans are Java components that typically implement the business logic of J2EE applications as well as access data.
Subtopics
- Develop EJB 2.x enterprise beans
- Develop EJB 3.x enterprise beans
- Develop entity beans
- Create timers using the EJB timer service for enterprise beans
We can use enterprise beans to take advantage of the EJB timer service to schedule time-based events.
- Develop enterprise beans
One of two enterprise bean development scenarios is typically used with the product. The first is command-line using Ant, Make, Maven or similar tools. The second is an IDE-based development and build environment. The steps in this article focus on development without an IDE.
- Develop applications using the embeddable EJB container
Use this task to develop applications using the embeddable EJB container. Applications running in the embeddable container start faster and require a smaller footprint than when running in the full application server. It is an optimal environment for quickly developing and testing applications that might eventually run on the application server.
- Configure EJB 3.1 session bean methods to be asynchronous
Use this task to configure EJB 3.1 session bean methods to run asynchronously. We can make some or all of the bean methods asynchronous.
- Develop session beans
- Programming to use message-driven beans
Applications can use message-driven beans as asynchronous message consumers. You deploy a message-driven bean as a message listener for a destination. When a message arrives at the destination, the EJB container invokes the message-driven bean automatically without an application having to explicitly poll the destination.
- Assemble EJB 2.1 enterprise beans
- Assemble EJB 3.x enterprise beans
- Assemble EJB modules
An enterprise bean is a Java component that can be combined with other resources to create Java Platform Enterprise Edition (Java EE) applications. This topic describes assembling EJB modules based on the EJB specifications.
- Develop EJB 2.x entity beans that use access intents
- Assemble access intents to EJB 2.x entity beans
- Develop applications that use the Java Persistence API
- Assemble applications that use the Java Persistence API
Related information:
End-to-end paths for EJB applications
Troubleshooting EJB applications