CMP over Anything

This Sample demonstrates the use of Container Managed Persistence over Anything. The beans used in this Sample were created and assembled using WebSphere Studio Application Developer Integration Edition.

 
Requirements: WebSphere Process Server
 
 
Account CMP/A Sample
This Sample consists of 5 versions of a simple Account CMP bean, with an id and balance. Each version handles its persistence via a different means. The simplest is the Custom version, which uses an in-memory HashMap. There is also a version that demonstrates delegation to another EJB (which stores Account info to files in your profile's samples/CMPa directory), and there are two versions that also utilize this other EJB indirectly: the JAX-RPC version calls it as a web service, and the SCA version calls it as an SCA component. Finally, there is the CCI version, which uses a J2C resource adapter.