8.6. Design Guidelines and Patterns

Java Message Service (JMS)

JMS is an excellent solution for asynchronous data transfers in enterprise programming. JMS is appropriate with architectures requiring either a one-to-many broadcast (publish/subscribe), a point-to-point communication (PTP), or both. Because JMS is a centralized message server, JMS client components are loosely coupled.

Publish/Subscribe Pattern

The publish/subscribe pattern allows one client to broadcast information to multiple recipients. This pattern is an integral part of a JMS messaging domain. With message-driven beans, the EJB container uses the bean's deployment descriptor to subscribe the bean. Publishers and subscribers use topic destinations for messages.

Point-to-Point ...

Get Enterprise JavaBeans™ Component Architecture: Designing and Coding Enterprise Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.