A complete listing of the bean program is shown in Listing 3 below. Complete listings of the remote and home interfaces are shown in Listing 4 and Listing 5. This bean receives and returns a String object via a single business method. It also displays information about its life cycle in the System.out log file or on the system comsole depending on whether or not System.out has been directed to the log files. This is a stateless session bean.
Class is defined as public.
Class cannot be defined as abstract or final. Implements one or more ejbCreate methods. Implements the business methods. Contains a public constructor with no parameters. Must not define the finalize method.