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:
The major components of this bean are discussed in Developing entity beans with CMP.
Table 4. Examples available with the EJB server (AE)
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. |
Table 5. Examples available with the EJB server (CB)
Name | Bean types | EJB client types | Additional information |
---|---|---|---|
Hello | Stateless session | Java application | Very simple example of a session bean. |
Calculator | Stateful session | Applet, ActiveX control | Demonstrates maintaining state information in a session bean. |
Account | Stateful session, CMP entity, BMP entity | Servlet, Active X control | An Advanced Edition sample with a servlet client. One enterprise bean references another bean. |
Card Game | Stateful session, CMP entity | Applet, ActiveX control | Demonstrates a session bean selecting entity beans with custom finder methods that use various types of queries. One enterprise bean references another bean. |
Travel | Stateful session, BMP entity, CMP entity | Applet, ActiveX control | Demonstrates client-side transactions. An enterprise bean uses a PAA as a data source. One enterprise bean references another bean. |
VisualAge for Java demo | CMP entity |
| Demonstrates client-initiated transactions, inheritance, association and polymorphic queries. One enterprise bean references another bean. |
Big 3 | Stateless session, CMP entity | Multithreaded | Demonstrates enterprise beans written to version 1.1 of the EJB specification. One enterprise bean references another bean. |
Postcard | Stateless session |
| Demonstrates enterprise beans that use Java Messaging Service (JMS) point-to-point messaging. |
CORBA interoperability (policy wrapper) | BMP entity |
| Demonstrates enterprise beans that communicate with C++ business objects (BO) and Java BOs (with a C++ client) that communicate with enterprise beans. |
JDBC AA | BMP entity |
| Demonstrates how to use the CB Session service. An enterprise bean uses PAA as a data source. |