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 » Copy messages from local queue while queue is get inhibited

Post new topic  Reply to topic
 Copy messages from local queue while queue is get inhibited « View previous topic :: View next topic » 
Author Message
hkhan12
PostPosted: Fri May 25, 2007 6:56 am    Post subject: Copy messages from local queue while queue is get inhibited Reply with quote

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
View user's profile Send private message
dgolding
PostPosted: Fri May 25, 2007 7:17 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
rparti
PostPosted: Fri May 25, 2007 7:20 am    Post subject: Reply with quote

Voyager

Joined: 05 Oct 2005
Posts: 86
Location: U.S.A.

If you dont want to write an application to do that, then download MO71 from http://www-1.ibm.com/support/docview.wss?rs=171&uid=swg24000142&loc=en_US&cs=utf-8&lang=en.

Then browse the messages, select the messages, select the target queue as the queue you want to dump your messages to and click on copy.
Back to top
View user's profile Send private message
dgolding
PostPosted: Fri May 25, 2007 7:26 am    Post subject: Reply with quote

Yatiri

Joined: 16 May 2001
Posts: 668
Location: Switzerland

And how will it do it when the queue is GET inhibited?
Back to top
View user's profile Send private message Visit poster's website
rparti
PostPosted: Fri May 25, 2007 7:38 am    Post subject: Reply with quote

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
View user's profile Send private message
dgolding
PostPosted: Fri May 25, 2007 7:51 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
zpat
PostPosted: Fri May 25, 2007 7:54 am    Post subject: Reply with quote

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
View user's profile Send private message
rparti
PostPosted: Fri May 25, 2007 7:56 am    Post subject: Reply with quote

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
View user's profile Send private message
rparti
PostPosted: Fri May 25, 2007 8:06 am    Post subject: Reply with quote

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
View user's profile Send private message
dgolding
PostPosted: Fri May 25, 2007 8:13 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Nigelg
PostPosted: Tue May 29, 2007 12:13 am    Post subject: Reply with quote

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
View user's profile Send private message
rparti
PostPosted: Tue May 29, 2007 6:15 am    Post subject: Reply with quote

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
View user's profile Send private message
hkhan12
PostPosted: Wed Jun 20, 2007 6:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
hkhan12
PostPosted: Thu Apr 10, 2008 6:44 am    Post subject: Reply with quote

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
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 » General Discussion » Copy messages from local queue while queue is get inhibited
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.