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 » IBM MQ API Support » MQ delay

Post new topic  Reply to topic
 MQ delay « View previous topic :: View next topic » 
Author Message
pshan81
PostPosted: Thu Mar 23, 2006 8:22 pm    Post subject: MQ delay Reply with quote

Acolyte

Joined: 24 May 2005
Posts: 72

Can we set delay using MQ API as like Thread.sleep()?
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Mar 23, 2006 8:31 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

No.

Why?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
pshan81
PostPosted: Thu Mar 23, 2006 8:38 pm    Post subject: MQ delay Reply with quote

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
View user's profile Send private message
EddieA
PostPosted: Thu Mar 23, 2006 10:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
DryHeatDave
PostPosted: Mon Mar 27, 2006 12:51 pm    Post subject: Reply with quote

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
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 » IBM MQ API Support » MQ 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.