EJB 2.0 Development with WebSphere Studio Application Developer
by Ueli Wahli, Wouter Denayer, Lars Schunk, Deborah Shaddon, Martin Weiss
MDB client programming
There is no MDB client programming, per se, as clients may not interact directly with the MDB. However, the MDB client is really just a JMS message producer whose ultimate destination is the MDB. We have already seen an example of a simple JMS message producer (sender) in the JMS concepts section.
An MDB client that operates in a pseudo-synchronous request/reply mode, however, must also implement QueueReceiver logic in order to receive the reply, and also some message selection to ensure that the appropriate reply is being received. MDBs are designed to execute in a multi-threaded manner; therefore, multiple reply messages can be produced at the same time. There is nothing to guarantee the affinity or order of reply messages ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access