Consultor Eletrônico



Kbase P101401: Adapter for SonicMQ: Request/Reply, consumer fails to send reply message
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   3/17/2005
Status: Unverified

SYMPTOM(s):

Adapter for SonicMQ

Request/Reply Mechanism

Consumer fails to send reply message

Consumers' message handler sets the reply handle equal to the message handle

The message handles' message object is deleted inside the message handler

CAUSE:

Since the reply handle is set equal to the message handle they both have a reference to the same message object. Once the message handles' object is deleted the reference for the reply handle no longer exists.

FIX:

Create a new message object for the reply handle. Below is an example of the message Handler that has the problem and then an example of how to fix it.