Chapter 4. Writing a HelloWorld Bean

Table of Contents

4.1. Requirements
4.2. Writing Code for the Bean
4.2.1. Writing the Interface
4.2.2. Writing the Business Code
4.2.3. Defining the EJB Code as a Stateless Session Bean
4.2.4. Packaging the Bean
4.3. Writing the Client Code
4.4. Writing a First Business Method Interceptor
4.5. Writing a First Lifecycle Interceptor

4.1. Requirements

This example illustrates the basics of an EJB3 application, showing all the steps used to build and run the EJB.

The only addtional information required is to know how to run the server.