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 Index » WebSphere Message Broker (ACE) Support » Send messages with delay

Post new topic  Reply to topic
 Send messages with delay « View previous topic :: View next topic » 
Author Message
uliss
PostPosted: Thu Feb 12, 2009 9:58 pm    Post subject: Send messages with delay Reply with quote

Apprentice

Joined: 10 Jan 2007
Posts: 27

Hi everybody,

Hi want to send a message to a queue. There is something reading from this queue so all the messages are processed automaticaly. But I need to know how to send a message with a delay incorporated in the MQ header. For example, some messages have to stay "sleeping" in the queue during a time, for example 10 seconds. ¿Is there any MQ header to do this?

Thank you very much
Back to top
View user's profile Send private message
MQEnthu
PostPosted: Thu Feb 12, 2009 10:14 pm    Post subject: Reply with quote

Partisan

Joined: 06 Oct 2008
Posts: 329
Location: India

Quote:
But I need to know how to send a message with a delay incorporated in the MQ header. Is there any MQ header to do this?


No there is no such field in MQMD.But why do you need to lock the message for few sec.. what is the requirement
_________________
-----------------------------------------------
It is good to remember the past,
but don't let past capture your future
Back to top
View user's profile Send private message
uliss
PostPosted: Thu Feb 12, 2009 11:05 pm    Post subject: Reply with quote

Apprentice

Joined: 10 Jan 2007
Posts: 27

The requirement is:

The broker send messages to a destination queue. From this queue there is a program reading messages. The program works with the messages and sometimes need to re-send some messages (not all of them) to the queue. But these messages have to wait for a time in the queue (10 seconds). They want to know if they can write any MQ header field in these messages to indicate that the messages have to wait "slept" in the queue and reactivate later.

Another option is that the program could wait for a time before send the message to the queue. But I need to know if the first option is possible.

Thank you very much
Back to top
View user's profile Send private message
uliss
PostPosted: Thu Feb 12, 2009 11:29 pm    Post subject: Reply with quote

Apprentice

Joined: 10 Jan 2007
Posts: 27

Hi, ¿could it be the MQGMO header, field WaitInterval?
Anybody knows how does this field work?

Thank you
Back to top
View user's profile Send private message
MQEnthu
PostPosted: Fri Feb 13, 2009 12:56 am    Post subject: Reply with quote

Partisan

Joined: 06 Oct 2008
Posts: 329
Location: India

Quote:
Hi, ¿could it be the MQGMO header, field WaitInterval?
Anybody knows how does this field work?


The MQGMO is get message option is used with MQGET (while reading the message from queue). If you want to wait before getting/browsing the next message, you can set the waitInterval in the MQGET call.
_________________
-----------------------------------------------
It is good to remember the past,
but don't let past capture your future
Back to top
View user's profile Send private message
MQEnthu
PostPosted: Fri Feb 13, 2009 1:03 am    Post subject: Reply with quote

Partisan

Joined: 06 Oct 2008
Posts: 329
Location: India

Quote:
They want to know if they can write any MQ header field in these messages to indicate that the messages have to wait "slept" in the queue and reactivate later.


Sorry, I could not understand why you have to lock the messages in queue for few seconds . However you can lock the messages in queue by making the queue GET inhibit. There by making sure the messages are not read by the application.
_________________
-----------------------------------------------
It is good to remember the past,
but don't let past capture your future
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Feb 13, 2009 1:42 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

MQEnthu wrote:
Quote:
Hi, ¿could it be the MQGMO header, field WaitInterval?
Anybody knows how does this field work?


The MQGMO is get message option is used with MQGET (while reading the message from queue). If you want to wait before getting/browsing the next message, you can set the waitInterval in the MQGET call.


No you can't!

The wait interval is the maximum time the call will wait before returning not the time it will wait before getting. If there's an eligable message on the queue, MQGET will always return immediately.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
MQEnthu
PostPosted: Fri Feb 13, 2009 2:38 am    Post subject: Reply with quote

Partisan

Joined: 06 Oct 2008
Posts: 329
Location: India

Quote:
The wait interval is the maximum time the call will wait before returning not the time it will wait before getting. If there's an eligable message on the queue, MQGET will always return immediately.


Sorry.. I should have written, MQGET call waits for the suitable/specified message to arrive. And call returns immediately if the desired message is available.
_________________
-----------------------------------------------
It is good to remember the past,
but don't let past capture your future
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Send messages with delay
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.