Working with Enterprise Beans

The following table shows how to work with enterprise beans.
Number one
Create the EJB module project
  1. Register a Java EE application server. You cannot deploy EJB modules to the Tomcat server.
  2. Create the project for the EJB module.
  3. Add the EJB module to an enterprise application.

Number two
Code the enterprise beans
  1. Create the enterprise beans.
  2. Access the database.
  3. Call enterprise beans from web application modules and other enterprise beans.
  4. Add business methods to your enterprise beans.
  5. Add select methods and finder methods to your entity beans.
  6. Use server resources like databases and JMS messages.

Number three
Configure the application
  1. Edit the EJB module's deployment descriptors.
  2. Configure container-managed relationships between enterprise beans.

Number four
Build the project
  1. Choose Run > Build Main Project or right-click the project and choose Build.

Number five
Deploy the module
  1. For stand-alone EJB modules, right-click the EJB module's project node and choose Run.
  2. For EJB modules that are part of an enterprise application, right-click the enterprise application and choose Run .

Legal Notices