Page 1 of 1

MQ: Open Queue in Server Job

Posted: Tue Feb 23, 2010 2:55 am
by MT
Hi,

I have a DataStage 7.5.3. job reading from a MQ queue - transforming data and writing it to DB2.
This job is triggered via a MQ Trigger.

The problem is that if the database is not available (due to an error or maintenance etc.) the MQ Trigger fires every 2-3 seconds trying to (re-)start the job which will fail again.
A MQ expert told us that this happens when the MQ trigger detects that the queue has not been opened.

So my question is when does the DatatStage MQ stage try to open the queue or how can I force the opening of the queue to avoid these unnecessary (re-)calls?

many thanks in advance

regards
Michael

Posted: Tue Feb 23, 2010 7:02 pm
by eostic
Hard to say what the timing is on the opening of the queue, but the job will always abort anyway, if the database is not up and available when the job is initialized.......

Ernie

MQ

Posted: Wed Feb 24, 2010 12:23 am
by MT
Hi Ernie,
eostic wrote:Hard to say what the timing is on the opening of the queue, but the job will always abort anyway, if the database is not up and available when the job is initialized.......

Ernie
well this is true but because I have a shell script I can do a lot to ensure the job runs as expected and the situation was only a test to see what happens when the job aborts.

I found out that the queue is opened and closed without removing the message (while destructive read is checked!) . This behaviour will fire the MQ FIRST trigger in a very high frequency.

I found a work around on script level.

Thanks
regards
Michael