Author |
Message
|
pshan81 |
Posted: Thu Mar 23, 2006 8:22 pm Post subject: MQ delay |
|
|
Acolyte
Joined: 24 May 2005 Posts: 72
|
Can we set delay using MQ API as like Thread.sleep()? |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Mar 23, 2006 8:31 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
No.
Why? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
pshan81 |
Posted: Thu Mar 23, 2006 8:38 pm Post subject: MQ delay |
|
|
Acolyte
Joined: 24 May 2005 Posts: 72
|
My requirement is, i need to put a message from my application in a queue.After that i need to get a message from the queue after a minute.So after putting and before getting the message i need to wait for a minute.I can do it using Java's Thread.sleep(60000).
Is it possible using MQ API? |
|
Back to top |
|
 |
EddieA |
Posted: Thu Mar 23, 2006 10:46 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
Quote: |
After that i need to get a message from the queue after a minute |
No. You immediately do a GET with WAIT. Please read the Application Programmers Guide and Reference.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
DryHeatDave |
Posted: Mon Mar 27, 2006 12:51 pm Post subject: |
|
|
 Apprentice
Joined: 21 Mar 2006 Posts: 28 Location: Phoenix, AZ
|
Get with Wait works OK for me.
But I'm curious what's happening, that you have to wait a full minute - sounds like forever, in my world. It does sound like a long time to hold on to resources.
As you're talking threads, I'm guessing you're not talking mainframe/CICS But for CICS I might just requeue the transaction with a delay. Is there any equivilent transation manager in your environment ? _________________ SCJP2
IBM Cert. Solutions Designer for Websphere MQ 5.3
Not a certified mainframer - just been doing it a real long time. |
|
Back to top |
|
 |
|