Consultor Eletrônico



Kbase P17437: SonicMQ: Is it possible to find out if a queuereceiver exists for a specific queue
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/15/2008
Status: Verified

GOAL:

Is it possible to find out if a queuereceiver exists for a specific queue

FACT(s) (Environment):

SonicMQ 4.x

FIX:

The closest method to get an exception if the
queue is not consumed is by disabling flow control for the QueueSession via :

progress.message.jclient Interface QueueSession

method:

public void setFlowControlDisabled(boolean disabled)

Example:

QueueSession qs = queueconnection.createQueueSession(false,
Session.AUTO_ACKNOWLEDGE);

((progress.message.jclient.QueueSession)qs).setFlowControlDisabled(true);

That will immediately throw a JMSException for sending a message if the
queue is full.
This method is already available with SonicMQ version 4.