Author |
Message
|
hkhan12 |
Posted: Fri May 25, 2007 6:56 am Post subject: Copy messages from local queue while queue is get inhibited |
|
|
Voyager
Joined: 08 Aug 2002 Posts: 98
|
Hi MQ Experts,
I have some messages sitting in a local queue and one of the application pickup messages from this local queue. Application Developer can not stop the application, hence I can not captured these messages so I did a GET INHIBIT on this local queue and now I want to either move or copy these messages to either other local queue or to a file.
Is there any tool out there to copy or move messages from a local queue while the queue is GET INHIBITED...?
Please help me out on this. Thanks a log in advance!!!
Regards, |
|
Back to top |
|
 |
dgolding |
Posted: Fri May 25, 2007 7:17 am Post subject: |
|
|
 Yatiri
Joined: 16 May 2001 Posts: 668 Location: Switzerland
|
Copy message=GET from old queue and PUT to new queue
So if you're get inhibited, you can't copy. Why don't you have your copying application open the queue for exclusive input - only one reader? That will prevent other apps from reading the same message.... |
|
Back to top |
|
 |
rparti |
Posted: Fri May 25, 2007 7:20 am Post subject: |
|
|
 Voyager
Joined: 05 Oct 2005 Posts: 86 Location: U.S.A.
|
|
Back to top |
|
 |
dgolding |
Posted: Fri May 25, 2007 7:26 am Post subject: |
|
|
 Yatiri
Joined: 16 May 2001 Posts: 668 Location: Switzerland
|
And how will it do it when the queue is GET inhibited? |
|
Back to top |
|
 |
rparti |
Posted: Fri May 25, 2007 7:38 am Post subject: |
|
|
 Voyager
Joined: 05 Oct 2005 Posts: 86 Location: U.S.A.
|
It won't copy with Get Inhibited.
But then nothing can copy with get inhibited.
You might be able to do it if we make MO71 open the queue for exclusive input. But I dont know if that is possible.
Does anyone else? |
|
Back to top |
|
 |
dgolding |
Posted: Fri May 25, 2007 7:51 am Post subject: |
|
|
 Yatiri
Joined: 16 May 2001 Posts: 668 Location: Switzerland
|
You could always put the queue definition on "default Input Open Option" as EXCLUSIVE, and hope MO71 honours that..... (it is a default after all, the app. is not bound to follow it) |
|
Back to top |
|
 |
zpat |
Posted: Fri May 25, 2007 7:54 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Create another alias for the queue (which is not get inhibited) and use that to access the messages on the local queue.
Make sure the original queue was get inhibited on it's alias and not on the underlying local queue.
If you aren't using aliases then you now know one of the reasons for using them! |
|
Back to top |
|
 |
rparti |
Posted: Fri May 25, 2007 7:56 am Post subject: |
|
|
 Voyager
Joined: 05 Oct 2005 Posts: 86 Location: U.S.A.
|
Thanks for the insight.
I did not know about the Exclusive option |
|
Back to top |
|
 |
rparti |
Posted: Fri May 25, 2007 8:06 am Post subject: |
|
|
 Voyager
Joined: 05 Oct 2005 Posts: 86 Location: U.S.A.
|
zpat wrote: |
Create another alias for the queue (which is not get inhibited) and use that to access the messages on the local queue.
|
You would need two aliases right?
One that can be hooked up to the original application and is get inhibited
and
One that is hooked up to the new application (or MO71) and is not get inhibited
The underlying local queue is not get inhibited. |
|
Back to top |
|
 |
dgolding |
Posted: Fri May 25, 2007 8:13 am Post subject: |
|
|
 Yatiri
Joined: 16 May 2001 Posts: 668 Location: Switzerland
|
A better neater solution I must admit, I wasn't thinking along those lines
I suppose a single alias would do (which would have the GET inihibited toggled on or off). BUT sounds like your problem is happening NOW and if you can't stop the application then it's a bit difficult to start using a new queuename! I assume the offending application still has the queue open... did it open the local queue directly or an alias to it - and if an alias, where was the get inhibited set?
the input exclusive only works if the "good" reader (MO71 or something) has the queue open first |
|
Back to top |
|
 |
Nigelg |
Posted: Tue May 29, 2007 12:13 am Post subject: |
|
|
Grand Master
Joined: 02 Aug 2004 Posts: 1046
|
I do not think opening an alias queue can override the get inhibited of the base queue; all the queues on the queue path need to be get enabled for the MQOPEN to succeed. _________________ MQSeries.net helps those who help themselves.. |
|
Back to top |
|
 |
rparti |
Posted: Tue May 29, 2007 6:15 am Post subject: |
|
|
 Voyager
Joined: 05 Oct 2005 Posts: 86 Location: U.S.A.
|
That is correct.
But we can have the base queue as get enabled and the alias queue as get inhibited |
|
Back to top |
|
 |
hkhan12 |
Posted: Wed Jun 20, 2007 6:37 pm Post subject: |
|
|
Voyager
Joined: 08 Aug 2002 Posts: 98
|
Thanks a log guys, I learned a lot from this post.
I totally agreed that I can have an alias queue with get enabled and having base queue get disabled.
What I did was I stopped the Svrconn channel thru which application connected to queue manager and pick up messages from the local queue. Hence, even though local queue was get enabled, application wasn't able to picked it up. Hence, I captured messages using IH03.
Again, thanks a lot to eveybody whoever contributed to this post.
Keep it up guys, appreciated!!!
Regards, |
|
Back to top |
|
 |
hkhan12 |
Posted: Thu Apr 10, 2008 6:44 am Post subject: |
|
|
Voyager
Joined: 08 Aug 2002 Posts: 98
|
Hi There,
By the way, its been long time but today I tested with the alias queue and it did not work.
You just can not have a alias queue to browse messages from base queue if the your base queue is GET INHIBITED.
Warm Regards, |
|
Back to top |
|
 |
|