Consultor Eletrônico



Kbase P98667: SonicMQ Adapter: Can the Request/Reply Mechanism be used with a PTP session?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/12/2004
Status: Unverified

GOAL:

Can the Request/Reply Mechanism be used with the Publish and Subscribe (pub/sub) session?

GOAL:

How to code RequestReply in a pub/sub session?

FACT(s) (Environment):

Progress 9.1x
OpenEdge 10.x
SonicMQ

FIX:

The Request/Reply Mechanism can be used in either session model, Point-to-Point(PTP) or Publish and Subscribe (Pub/Sub).
The example20.p and example21.p examples shipped with Progress, in '<DLC>\src\samples\sonicmq\adapter\examples', were developed with the PTP session. The following is a list of steps to quickly convert those examples to the pub/sub model.
1. First, modify the connection information in both examples so that it will connect to your adapter and broker.
2. Use FIND/REPLACE functionality of the Procedure Editor to replace "ptp" with "pubsub" in each example.
3. Modify both example to produce and consume from the topic destination.
A. In example20, this would be done in the first parameter or the reuestReply call. By default it is set to the "requestQueue" queue.
B. In example21, change the "receiveFromQueue in ptpsession" call to a "subscribe in pubsubsession" call