Message-driven bean interaction patterns

This section describes some common interaction patterns for message-driven beans. We have already introduced two: asynchronous fire-and-forget, and pseudo-synchronous request/reply in the examples above.

We expand on these, and discuss some variations of these themes that may help you to choose an appropriate pattern for your messaging application. We then describe some common best practices as well as some pitfalls to avoid when designing MDBs.

Message interactions

In this section, we list some common messaging system interactions. We are sure that this is not a complete list, and that many more interaction patterns can be discovered based on your own interaction requirements.

Fire-and-forget

This ...

Get EJB 2.0 Development with WebSphere Studio Application Developer 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.