ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexWebSphere Message Broker (ACE) SupportProblem with TimeoutControl/Timeoutnotification nodes

Post new topicReply to topic
Problem with TimeoutControl/Timeoutnotification nodes View previous topic :: View next topic
Author Message
ajakub
PostPosted: Wed Nov 25, 2009 6:02 am Post subject: Problem with TimeoutControl/Timeoutnotification nodes Reply with quote

Newbie

Joined: 25 Nov 2009
Posts: 2

Hello,
I am new in Broker so sorry in advance if I ask about something obvious…

The goal of my task is to introduce delay in the flow – every message that reaches input of the flow should be sent to the output with delay e.g. 15s

I have already added TimeoutControl and TimeoutNotification nodes,
Timeout details are configured in following way:

DECLARE delayTime CHARACTER '00:00:15';
DECLARE startTime TIME CURRENT_TIME + CAST(delayTime AS INTERVAL HOUR TO SECOND);
SET OutputLocalEnvironment.TimeoutRequest.Action = 'SET';
SET OutputLocalEnvironment.TimeoutRequest.Identifier = 'T214_TIA_TC';
SET OutputLocalEnvironment.TimeoutRequest.StartDate = CURRENT_DATE;
SET OutputLocalEnvironment.TimeoutRequest.StartTime = startTime;
SET OutputLocalEnvironment.TimeoutRequest.Interval = 0;
SET OutputLocalEnvironment.TimeoutRequest.Count = 1;
SET OutputLocalEnvironment.TimeoutRequest.IgnoreMissed = TRUE;
SET OutputLocalEnvironment.TimeoutRequest.AllowOverwrite = FALSE;

Generally it works fine…. But:
If another message is put into flow before the previous is processed completely (15s delay), it overrides first message and only the second is processed (first one just “disappears”).

Any clues?
Thanks in advance for help!

Regards Andrzej
Back to top
View user's profile Send private message
napier
PostPosted: Wed Nov 25, 2009 11:13 am Post subject: Reply with quote

Apprentice

Joined: 09 Oct 2007
Posts: 48
Location: USA

Quote:
SET OutputLocalEnvironment.TimeoutRequest.AllowOverwrite = FALSE;



In this case second message will fail.


Last edited by napier on Wed Nov 25, 2009 11:23 am; edited 3 times in total
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Nov 25, 2009 11:18 am Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

http://www.ibm.com/developerworks/websphere/library/techarticles/0603_schutz/0603_schutz.html
Back to top
View user's profile Send private message
ajakub
PostPosted: Mon Nov 30, 2009 3:27 am Post subject: Reply with quote

Newbie

Joined: 25 Nov 2009
Posts: 2

Mqjeff, thanks for the link!
The problem was Identifier parameter which was not changed.

Regards Andrzej
Back to top
View user's profile Send private message
AkankshA
PostPosted: Tue Dec 01, 2009 1:03 am Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

I personally have always preferred setting msg id/correlId as the identifier in timeout nodes to avoid this problem
_________________
Cheers
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker (ACE) SupportProblem with TimeoutControl/Timeoutnotification nodes
Jump to:



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.