Implementing the component

General procedure

Creating and deploying an EJB Server component involves these main tasks:

  1. Define and implement the EJB component in PowerJ.

    Create an EJB 1.1 target that defines the type of Bean, the Java package and class names, and the component’s transactional attribute. PowerJ generates skeleton implementations for the SessionBean or EntityBean’s home interface, remote interface, and implementation class. Provide signatures for business methods in the remote interface and for any required methods in the home interface, and add code to implement these methods in the implementation class.

  2. Set the deployment options for your component, including the EJB Server package name and EJB Server component name.

  3. Deploy to EJB Server so you can test the component. This is an iterative process (deploy, test, debug, and redeploy). PowerJ supports in-process debugging of EJB Server components.

    For more information about debugging Java components running in EJB Server, see the PowerJ documentation.

EJB Server services

When designing the component, you can take advantage of these EJB Server services to enhance your application’s performance:

These EJB Server features enable you to write high-performance applications with effective error management. You need to set deployment options in PowerJ to enable some of these features in your component, and your component needs to call methods that allow it to cooperate with other components.