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 SupportTimeout request for two or more messages on same uniqueId

Post new topicReply to topic
Timeout request for two or more messages on same uniqueId View previous topic :: View next topic
Author Message
Vivwek
PostPosted: Thu Feb 06, 2014 2:40 am Post subject: Timeout request for two or more messages on same uniqueId Reply with quote

Newbie

Joined: 06 Feb 2014
Posts: 2

Hello All,
I am using TimeoutRequest and timeout Control node to provide delay..If simulteanous requests arrived one after the other.

The first requests goes and sits into TimeoutQueue(SYSTEM.BROKER.TIMEOUT.QUEUE). For the second request is throwing an Exception when the AllowOverWrite property is set to FALSE,it is erasing the previous message is getting erased when it is set to TRUE.

Is there anyway to preserve both of the messages for waiting for some Interval.
Back to top
View user's profile Send private message
Esa
PostPosted: Thu Feb 06, 2014 4:40 am Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

Yes,

If you construct a timeout message (in LocalEnvironment, for example) before propagating to TimeOutControl, you can specify a different Identifier each time. You must also configure the TimeOutControl node to fetch the timeout message from where you put it.
Back to top
View user's profile Send private message
AkankshA
PostPosted: Thu Feb 06, 2014 7:35 pm Post subject: Re: Timeout request for two or more messages on same uniqueI Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

Vivwek wrote:
Hello All,
I am using TimeoutRequest and timeout Control node to provide delay..If simulteanous requests arrived one after the other.

The first requests goes and sits into TimeoutQueue(SYSTEM.BROKER.TIMEOUT.QUEUE). For the second request is throwing an Exception when the AllowOverWrite property is set to FALSE,it is erasing the previous message is getting erased when it is set to TRUE.

Is there anyway to preserve both of the messages for waiting for some Interval.


what you want to achieve by storing 2 messages of same uniq id with different intervals ?
which one should the broker take and process ?

If you explain the requirement a bit more we can help better
Back to top
View user's profile Send private message Visit poster's website
Esa
PostPosted: Fri Feb 07, 2014 12:55 am Post subject: Re: Timeout request for two or more messages on same uniqueI Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

@AnkashA:
Vivwek wrote:
to provide delay..


I think that explains everything.

If you want to run several instances of a timeout simultaneously, each timeoutcontrol message must have a unique identifier, even if they all get the same unique identifier. A bit confusing, isnt't it?

But the unique identiefier that ties a timeoutnotification node to a timeoutcontrol node is not the same thing as the identifier in a timeoutcontrol message... You cannot set the uniqueIdentifier in the timeoutcontrol message, it gets set by the timeoutcontrol node.
Back to top
View user's profile Send private message
wbisantosh
PostPosted: Mon Feb 10, 2014 1:25 pm Post subject: Reply with quote

Apprentice

Joined: 12 Nov 2012
Posts: 47

Hello,

I am trying to develop a similar design. Here is the requirement,

A Webservice needs to be consumed, in case of failure will need to be retried for '5' times with '30' minute interval each. If it fails for the fifth time tto, will be written to a file. I am using Timeout nodes to achieve this.The Retry process is working fine if there is one failure. if there are more than one failure, lets say three(while the first failed message is still re-processing) the first and second messages are over-written(no longer retried/dumped) if the variable 'AllowOverwrite' is set to 'TRUE'

Is it possible to achieve parallel/sequential processing with timeout nodes ?
Is this a correct approach ?

Please advice
Thanks
Santosh
Back to top
View user's profile Send private message
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker SupportTimeout request for two or more messages on same uniqueId
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.