O'Reilly logo

Enterprise JavaBeans™ Component Architecture: Designing and Coding Enterprise Applications by Paul Anderson, Gail Anderson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required