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 » General Discussion » dmpmqmsg -T (seconds)

Post new topic  Reply to topic
 dmpmqmsg -T (seconds) « View previous topic :: View next topic » 
Author Message
BMT
PostPosted: Fri Apr 22, 2016 5:15 am    Post subject: dmpmqmsg -T (seconds) Reply with quote

Newbie

Joined: 12 Sep 2012
Posts: 4

Hey

I need to monitor a Queue and move messages older than 10 seconds to another local Queue.

dmpmqmsg seems to only be able to handle DD:HH:MM and no seconds, thus making life a little more interesting for me at the moment.

Any ideas or advise would be appreciated.

BMT
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Apr 22, 2016 5:30 am    Post subject: Re: dmpmqmsg -T (seconds) Reply with quote

Grand High Poobah

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

BMT wrote:
I need to monitor a Queue and move messages older than 10 seconds to another local Queue.


Why? If the messages are not needed after 10 seconds why not just set the expiry?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
BMT
PostPosted: Mon Jun 06, 2016 12:50 am    Post subject: Reply with quote

Newbie

Joined: 12 Sep 2012
Posts: 4

The need to move the messages after 10 seconds is purely due to crappy programming from an application p.o.v. The app drops a message on the queue and the message should immediately be processed to a 3rd party Q-manager sitting on an external site. If this does not happen within 10 seconds the app will need to be updated thus the message needs to be moved to a different queue which will be monitored by the app to process these messages asap.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Mon Jun 06, 2016 3:51 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

The app can set expiry options to get a report including the full message data. It can then do what it needs to do.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
boos
PostPosted: Tue Aug 16, 2016 4:27 am    Post subject: Reply with quote

Apprentice

Joined: 27 Jan 2004
Posts: 34
Location: Netherlands

Quote:
can set expiry options to get a report including the full message data. It can then do what it needs to do

True for the functionality of it. But not true for the exact 10sec expiry. The report is only produced when the message expires. But the expiration is only checked if the queue is accessed. Which may not be in the same second the message expires. So you don't exactly know when the report/message wil appear on the second queue (only that it will not appear within the 10 seconds)
Back to top
View user's profile Send private message
PaulClarke
PostPosted: Tue Aug 16, 2016 11:39 am    Post subject: Reply with quote

Grand Master

Joined: 17 Nov 2005
Posts: 1002
Location: New Zealand

So what is the plan ? Are you going to run dmpmqmsg every 10 seconds, over and over and over again ? That strikes me as woefully inefficient. It certainly seems to me as though this is trying to get round poor design in the application.

The idea being the -T parameter was so that someone could look for 'old' messages and clean-up their queues. When I wrote it I never thought that someone would thing of 10 seconds as old. Just goes to show that whenever you put a limit in software, someone will hit it Perhaps I should consider adding seconds to our QLOAD product.

Cheers,

Paul.
_________________
Paul Clarke
MQGem Software
www.mqgem.com
Back to top
View user's profile Send private message Visit poster's website
bruce2359
PostPosted: Tue Aug 16, 2016 4:45 pm    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9396
Location: US: west coast, almost. Otherwise, enroute.

While you're there, how about microseconds??
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
PaulClarke
PostPosted: Tue Aug 16, 2016 5:44 pm    Post subject: Reply with quote

Grand Master

Joined: 17 Nov 2005
Posts: 1002
Location: New Zealand

Ha! Surely that would just show you up as impatient
_________________
Paul Clarke
MQGem Software
www.mqgem.com
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » dmpmqmsg -T (seconds)
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.