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 IBM MQ Support » List current fixed bindings?

Post new topic  Reply to topic
 List current fixed bindings? « View previous topic :: View next topic » 
Author Message
gechu
PostPosted: Thu Jun 26, 2008 3:19 am    Post subject: List current fixed bindings? Reply with quote

Apprentice

Joined: 27 Feb 2008
Posts: 48

Is it correct to say that an application that has established a binding to a queue has to be restarted to drop that binding before that queue can be moved? (removed and recreated at another QM)

My problem is that I don´t know whether a queue is bound or not. Is it possible to somehow find it out? I.e. list all current fixed bindings on a QM? All I know is whether a queue has to use binding or not, but not the properties of the actual queues in use.

Erik
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Jun 26, 2008 4:40 am    Post subject: Re: List current fixed bindings? Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

gechu wrote:
Is it correct to say that an application that has established a binding to a queue has to be restarted to drop that binding before that queue can be moved? (removed and recreated at another QM)

My problem is that I don´t know whether a queue is bound or not. Is it possible to somehow find it out? I.e. list all current fixed bindings on a QM? All I know is whether a queue has to use binding or not, but not the properties of the actual queues in use.

Erik

did you try DIS QS(myqueue) ??
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
gechu
PostPosted: Thu Jun 26, 2008 5:24 am    Post subject: Reply with quote

Apprentice

Joined: 27 Feb 2008
Posts: 48

fjb_saper thx for your quick reply!

I´ve googled dis QS and found this this ibm page.

But I find it difficult to understand the ascii style syntax. All I want to do is to see all queues with fixed bindings, is this something in the right direction:

display qstatus(*) type(channel) opentype(all) ?

Erik
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Jun 26, 2008 11:06 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

So you do not want to look at the status but at the definition...

Dis q(*) where (defbind eq fixed) ?

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
gechu
PostPosted: Fri Jun 27, 2008 2:18 am    Post subject: Reply with quote

Apprentice

Joined: 27 Feb 2008
Posts: 48

I would like to know what the actual state of a queue is. And by state I mean if it is bound or not, at a particular moment in time.
Back to top
View user's profile Send private message
SAFraser
PostPosted: Fri Jun 27, 2008 7:02 am    Post subject: Reply with quote

Shaman

Joined: 22 Oct 2003
Posts: 742
Location: Austin, Texas, USA

I wonder if we might be using the term "binding" in different ways...?

You mention you want to know the state of a queue so that it can be deleted. Perhaps you are referring to whether an application has the queue open for PUTs and GETs, as this type of status would prevent you from deleting the queue.

If this is what you are looking for, there are a couple of ways to do it. Output would be easy to read if you use this:
Code:
dis qlocal(*) ipprocs opprocs

Any value greater than zero for either parameter means that the queue has open handles and cannot be deleted.

If I have misinterpreted your question, my apologies! Please ask again.
Back to top
View user's profile Send private message
sami.stormrage
PostPosted: Sat Jun 28, 2008 1:50 am    Post subject: Reply with quote

Disciple

Joined: 25 Jun 2008
Posts: 186
Location: Bangalore/Singapore

Delete ql(q) purge could be a option.. for forcibly deleting a Q
_________________
*forgetting everything *
Back to top
View user's profile Send private message Yahoo Messenger
SAFraser
PostPosted: Sat Jun 28, 2008 5:53 am    Post subject: Reply with quote

Shaman

Joined: 22 Oct 2003
Posts: 742
Location: Austin, Texas, USA

That's an excellent option if there are messages in the queue, once you get the IPPROCs and OPPROCs released.

If the procs are coming from an app that is connecting via a client channel, I believe that killing the channel would release the procs. Would also disrupt anyone else using the channel, of course!
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sat Jun 28, 2008 8:28 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Have you guys tried:
dis conn(*) where (objname eq queuename) ?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
gechu
PostPosted: Sun Jun 29, 2008 11:55 pm    Post subject: Reply with quote

Apprentice

Joined: 27 Feb 2008
Posts: 48

Quote:
.. whether an application has the queue open for PUTs and GETs, as this type of status would prevent you from deleting the queue.


That is exacally what Im looking for! Thanks!

Will try the commands you suggested, but I would also like to know a little bit more about fjb_saper pseudo code; what do you mean by objname? I thought a queue (queuename) was a type of object?

EDIT: Found out how it works by my self.

Erik
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 IBM MQ Support » List current fixed bindings?
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.