Creating and deploying an EJB Server component involves these main tasks:
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.
Set the deployment options for your component, including the EJB Server package name and EJB Server component name.
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.
When designing the component, you can take advantage of these EJB Server services to enhance your application’s performance:
Transaction management
Database access and result set management
Connection caching
Instance pooling
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.