Appendix B. Example code provided with WebSphere Application Server

This appendix contains information on the example code provided with the WebSphere Application Server.

Information about the examples described in the documentation

The example code discussed throughout this document is taken from a set of examples provided with the product. This set of examples is composed of the following main components:

Note:
The example code in the documentation was written to be as simple as possible. The goal of these examples is to provide code that teaches the fundamental concepts of enterprise bean and EJB client development. It is not meant to provide an example of how a bank (or any similar company) possibly approaches the creation of a banking application. For example, the Account bean contains a balance variable that has a type of float. In a real banking application, you must not use a float type to keep records of money; however, using a class like java.math.BigDecimal or a currency-handling class within the examples would complicate them unnecessarily. Remember this as you examine these examples.

Information about other examples

Table 2 provides a summary of the enterprise bean-specific examples provided with the EJB server

Table 2. Examples available with the EJB server

Name Bean types EJB client types Additional information
Hello Stateless session Java servlet Very simple example of a session bean.
Increment CMP entity Java servlet Very simple example of an entity bean.