Request/Reply with Inbox Token
In the request/reply communication model, cooperating programs use a token identifying an inbox for one-to-one communication to the inbox. The program that creates the inbox also creates the token and transmits the token, as needed, to request a message be sent to the inbox.
If inboxes are used with entitlements and permissions, requests must have publish and subscriber permissions. Replies require publish permission.
The following diagram illustrates a request/reply interaction.
-
The ServerProgram creates a SubscriberObject to request messages from clients and a PublisherObject to reply.
-
The RequesterClient program creates an Inbox subscriber object to receive replies from the ServerProgram.
The message flow follows.
-
The RequesterClient initiates the request from EP1 and includes the request and inbox token.
-
The ServerProgram uses the token to send a one-to-one reply message to the Inbox at the RequesterClient.
Figure 18: Request and Token for Inbox Communication