Container-managed messaging (CMM) allows a Java component to communicate via messaging without having to manage the messaging infrastructure, similarly to how container-managed persistence (CMP) allows an EJB (Enterprise JavaBean) to have persistent data without managing access to a data store. In addition, messaging parameters (such as destinations, mode of interaction, time-outs, etc.) can be defined declaratively in a deployment descriptor. The programming model used in CMM resembles that of CORBA messaging with the exception that it is in an anonymous and declarative fashion.
展开▼