Author |
Message
|
yadav.neeraj01 |
Posted: Fri Jun 17, 2016 1:31 pm Post subject: Messages Browsing Utility |
|
|
 Apprentice
Joined: 23 Feb 2011 Posts: 49
|
Hi Experts....We are using MQ v8... Need to create a script/utility that reads all the messages from a particular system queue(without clearing that) and based on some content of the message a report(txt or excel file) needs to be created.
Which language better suits for this requirement( Java, Perl or shell scripting)??  |
|
Back to top |
|
 |
PaulClarke |
Posted: Fri Jun 17, 2016 2:53 pm Post subject: |
|
|
 Grand Master
Joined: 17 Nov 2005 Posts: 1002 Location: New Zealand
|
Do we have to choose from just those three ?  _________________ Paul Clarke
MQGem Software
www.mqgem.com |
|
Back to top |
|
 |
tczielke |
Posted: Sat Jun 18, 2016 4:50 am Post subject: |
|
|
Guardian
Joined: 08 Jul 2010 Posts: 941 Location: Illinois, USA
|
For tools that I write that have to run on multiple platforms where performance is not a significant requirement, I usually prefer Java. You will have one executable that is portable on all your platforms. _________________ Working with MQ since 2010. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Jun 20, 2016 4:07 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
I think it would be difficult to get a shell script to read from an MQ Queue.
It's also unclear why you would be browsing messages on a SYSTEM queue.
Which queue? What's the goal? What's the reason for browsing instead of simply getting? _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
yadav.neeraj01 |
Posted: Mon Jun 20, 2016 8:55 am Post subject: |
|
|
 Apprentice
Joined: 23 Feb 2011 Posts: 49
|
In Our framework different kinds of messages are getting accumulated in system queue for some certain scenario..we need to browse that queue for payload to check how many messages with similar type are there..[/quote] |
|
Back to top |
|
 |
bruce2359 |
Posted: Mon Jun 20, 2016 8:59 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
yadav.neeraj01 wrote: |
In Our framework different kinds of messages are getting accumulated in system queue for some certain scenario..we need to browse that queue for payload to check how many messages with similar type are there.. |
What system queue? Do you mean the dead-letter-queue? _________________ 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 |
|
 |
Vitor |
Posted: Tue Jun 21, 2016 2:43 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
yadav.neeraj01 wrote: |
In Our framework different kinds of messages are getting accumulated in system queue for some certain scenario..we need to browse that queue for payload to check how many messages with similar type are there.. |
[/quote]
Your framework should not be using system queues for anything other than system messages. If you've got a build up of system messages you've got a problem.
If the system queue is SYSTEM.DEAD.LETTER.QUEUE:
- use a different queue (!)
- use the supplied dead letter handler
- use any of the free message browsers rather than write your own _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|