3.4. Middleware Components

The following figure shows the main components of the CUBA application middle tier.

Middleware
Figure 9. Components of the Middle Tier

Services are Spring beans that form the application boundary and provide the interface to the client tier. Services may contain the business logic themselves or delegate the execution to managed beans.

Managed beans are Spring beans that contain the business logic of the application. They are called by services, other beans or via the optional JMX interface.

Persistence is the infrastructure interface to access the data storage functionality: ORM and transactions management.