
Chapter 4. Application design 87
message.setJMSExpiration(messageTimeout);
message.setJMSMessageID(messageId);
...
}
}
Special design consideration is needed for the generation of the message ID.
The algorithm calculating it needs to support globally unique ID generation
across multiple systems and environments.
4.5.4 Message producer and consumer in combination
This section shows the combination of message consumers and providers to
implement an end-to-end sample of a pseudo-synchronous request-reply
scenario.
Service consumer
Example 4-7 shows a code sample of a service consumer implementing a
pseudo-synchronous request-reply approach. Note that ...