Author |
Message
|
Inforz |
Posted: Tue Apr 26, 2011 1:37 am Post subject: Anyways to see the message content when queue is inhibited? |
|
|
 Centurion
Joined: 15 Apr 2011 Posts: 139 Location: Chennai, India
|
Hi,
I just need to see the message content(msg browse) when the queue(local) is inhibited. The purpose would be to delete it if the content is not the one as I expect.
Now why the queue is in inhibited state is that an application is listening to it. So if I enable the queue I cannot see the message. This is just for testing and not the case for a real time app as it is not a proper way I guess.
Experts: In case, this topic is already discussed, please give me the link.
Thanks, |
|
Back to top |
|
 |
WMBDEV1 |
Posted: Tue Apr 26, 2011 1:52 am Post subject: Re: Anyways to see the message content when queue is inhibit |
|
|
Sentinel
Joined: 05 Mar 2009 Posts: 888 Location: UK
|
Inforz wrote: |
Now why the queue is in inhibited state is that an application is listening to it. |
Why dont you stop the application from listening and then perform your analysis? (i'm assuming you can stop the message processing interface easily enough as I'm used to working with WAS interfaces. Extra information would be useful of course!).
AFAIK there is not way to read a message when the queue is get inhibited. |
|
Back to top |
|
 |
Mr Butcher |
Posted: Tue Apr 26, 2011 2:10 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
if a queue is get inhibited there can't be an application active listening for messages on that queue. it would receive get-inhibitet too like you do. or is it just ignoring that fact and is retrying over and over?
if the queue is get inhibited to prevent a trigger from being generated then you coulds switch triggering off, and in a second step get enable the queue and perform your checks.
and like WMBDEV1 i also think there is no way to get your hands on the message content of a get inhibited queue. _________________ Regards, Butcher |
|
Back to top |
|
 |
rekarm01 |
Posted: Tue Apr 26, 2011 3:06 am Post subject: Re: Anyways to see the message content when queue is inhibit |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 1415
|
Inforz wrote: |
I just need to see the message content (msg browse) when the queue(local) is inhibited ... This is just for testing and not the case for a real time app as it is not a proper way I guess. |
One way to accomplish this is to define a queue alias, with queue local as target queue, and get-inhibit the queue alias. Apps that open the queue alias can't get/browse messages, but apps that open the queue local can. |
|
Back to top |
|
 |
bruce2359 |
Posted: Tue Apr 26, 2011 4:27 am Post subject: Re: Anyways to see the message content when queue is inhibit |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9471 Location: US: west coast, almost. Otherwise, enroute.
|
Inforz wrote: |
I just need to see the message content(msg browse) when the queue(local) is inhibited. |
Exactly what error message did you observe when you attempted to browse the queue?
Are you sure that the queue is get-inhibited? Did you do an mqsc DISPLAY QLOCAL command?
Perhaps the queue was opened EXCLUSIVE. This would prevent a 2nd app from opening the 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 |
|
 |
Inforz |
Posted: Thu May 12, 2011 1:06 am Post subject: |
|
|
 Centurion
Joined: 15 Apr 2011 Posts: 139 Location: Chennai, India
|
This is a test I am making on a QL. Just need to know if its possible to read(see the content of) a msg in the get-inhibited queue.
Thanks, |
|
Back to top |
|
 |
shashivarungupta |
Posted: Thu May 12, 2011 1:21 am Post subject: |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
Inforz wrote: |
This is a test I am making on a QL. Just need to know if its possible to read(see the content of) a msg in the get-inhibited queue.
|
Nope.
(as you are doing some local test, leave get(enabled) on the queue and then read the queue and see msg contents using amqsget / amqsbcg / MO71 ) _________________ *Life will beat you down, you need to decide to fight back or leave it. |
|
Back to top |
|
 |
exerk |
Posted: Thu May 12, 2011 1:57 am Post subject: |
|
|
 Jedi Council
Joined: 02 Nov 2006 Posts: 6339
|
shashivarungupta wrote: |
...see msg contents using amqsget / amqsbcg / MO71 )... |
Note that amqsget has a limited buffer size (64Kb in V7.0?) and will regard a truncated message as a failure, and is a destructive-read sample, so maybe not the best thing to advise in this circumstance. _________________ It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys. |
|
Back to top |
|
 |
shashivarungupta |
Posted: Thu May 12, 2011 2:35 am Post subject: |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
Quote: |
Just need to know if its possible to read(see the content of) a msg in the get-inhibited queue. |
Its a kind of 'test' that's why its an option to test for small msgs to get destructively and see its content. ( I presumed he gonnu test for small messages, but I agree with you exerk on the fact with amqsget )
Go to Infocenter , search "Features demonstrated in the sample programs" , click on the result of that search ! There you can see many 'test' options.
 _________________ *Life will beat you down, you need to decide to fight back or leave it. |
|
Back to top |
|
 |
Inforz |
Posted: Thu May 12, 2011 3:46 am Post subject: |
|
|
 Centurion
Joined: 15 Apr 2011 Posts: 139 Location: Chennai, India
|
I understand those points. But the fact is that (As I said in my first post of this topic) the queue which I am talking is being listened by another app (and I wanted to test in that way).
So I need to read a msg without stopping that app. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu May 12, 2011 3:54 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
So you would want to use the Browse sample rather than the Get sample.
But you can't guarantee that a) the other app hasn't opened the queue for exclusive get, b) that the message you want to Browse hasn't been consumed by the other app first. |
|
Back to top |
|
 |
Inforz |
Posted: Thu May 12, 2011 4:01 am Post subject: |
|
|
 Centurion
Joined: 15 Apr 2011 Posts: 139 Location: Chennai, India
|
And thats why I said I want to browse(in other words read) the msg when the queue is inhibited. If the queue is enabled then the msg would not stay in the queue for even a millisecond and would be consumed by the app. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu May 12, 2011 4:02 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Yes.
But you can't do that either. |
|
Back to top |
|
 |
shashivarungupta |
Posted: Thu May 12, 2011 4:34 am Post subject: |
|
|
 Grand Master
Joined: 24 Feb 2009 Posts: 1343 Location: Floating in space on a round rock.
|
Inforz wrote: |
And thats why I said I want to browse(in other words read) the msg when the queue is inhibited. If the queue is enabled then the msg would not stay in the queue for even a millisecond and would be consumed by the app. |
Between applications MQ is configured to transport the msgs (simple distributed scenario).
Application teams are generally concerned about the payload of the msg. If they are receiving it then why don't you ask them to give you the payload of the msg (if its a 'test' msg).
If the msg is not perfect as it should be for the target appl. then target appl. should raise that concern by pointing out whats missing/extra in that msg.
 _________________ *Life will beat you down, you need to decide to fight back or leave it. |
|
Back to top |
|
 |
mqjeff |
Posted: Thu May 12, 2011 4:37 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Or temporarily redirect the message routing to a different queue.... |
|
Back to top |
|
 |
|