Show TOC

Developing Business Logic with EJB 3.0Locate this document in the navigation structure

Context

EJB components are an essential part of Java EE applications. In the SAP NetWeaver Developer Studio, you create EJB components (as of the Java EE 5 specification) in EJB projects.

More information: EJB Overview

Procedure

  1. Create an EJB project.
  2. Use the corresponding wizards to create enterprise beans and helper classes.
  3. Implement the business logic.

    You can use the following features:

  4. (Optional) Edit the EJB deployment descriptors to configure the application.
  5. (Optional) Access Enterprise JavaBeans from non-Java EE applications.
  6. (Optional) If you want to provide methods to allow callbacks to be scheduled for time-based events, use the EJB Timer service.

    More information: Using Timers

  7. (Optional) You can use business logic that is part of SAP NetWeaver 2004 AS Java or SAP NetWeaver 7.0 AS Java.
  8. If you have not done so initially, add the EJB project to an Enterprise Application.
  9. To test your business logic during application development, use the EJB Explorer.