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

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.