Understanding the CEI design
The CEI supports executing attach methods in parallel in the EJB container by refactoring the attach methods into classes that implement the Work interface and using them to schedule work with the CEI WorkManager. There is one work class for each attach method.
The following diagram describes this relationship:
The following diagram represents the interfaces and classes that make up the CEI API: