Author |
Message
|
mr_shuchun |
Posted: Thu Sep 21, 2006 11:01 pm Post subject: Help! How to get all queue name for specified queue manager? |
|
|
Newbie
Joined: 21 Sep 2006 Posts: 9
|
Hi,
Appreciate if anyone can help me solve two problems below, I had already researched for a long time.
1. how to get all queue name for specified queue manager with APIs provided by MQ Series? it's best to use java API. if cannot, other APIs also are ok.
2. how to get the subscriber queue name with subcriber name and client id (MQ Topic has been defined to a subscriber queue for each subscriber. when a new subscriber is registered, MQ Series will create a subscriber queue using the nominated pattern )? it's best to use java API. if cannot, other APIs also are ok.
Regards, |
|
Back to top |
|
 |
elvis_gn |
Posted: Thu Sep 21, 2006 11:09 pm Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi mr_shuchun,
Search for the pcf jar, google it...that should solve ur problem.
Regards. |
|
Back to top |
|
 |
mr_shuchun |
Posted: Fri Sep 22, 2006 12:48 am Post subject: |
|
|
Newbie
Joined: 21 Sep 2006 Posts: 9
|
elvis_gn wrote: |
Hi mr_shuchun,
Search for the pcf jar, google it...that should solve ur problem.
Regards. |
Thanks, I had already looked though those pdf documents related to IBM Wherepare MQ Series. but I didn't find valuable information. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Sep 22, 2006 1:10 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
To clarify & expand what elvis_gn is getting at, you need to use PCF to obtain the queue names etc. You'll find all the valuable information you need in the documentation and/or infocentre; or via google of course.
Happy Reading!  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
elvis_gn |
Posted: Fri Sep 22, 2006 1:23 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
|
Back to top |
|
 |
mr_shuchun |
Posted: Sun Sep 24, 2006 11:57 pm Post subject: |
|
|
Newbie
Joined: 21 Sep 2006 Posts: 9
|
thanks a lot ! you are so good a man!
it's me that misunderstand you. I would think of "pcf" as "pdf" lah.
I have solved my first problem. but would you like to provide more hlep for second problem. I don't know how to find the durable subscriber queue name according to durable subscriber name. I cannot find how MQ created/named subscriber queue when a durable subscriber is registered. |
|
Back to top |
|
 |
mr_shuchun |
Posted: Mon Sep 25, 2006 12:04 am Post subject: |
|
|
Newbie
Joined: 21 Sep 2006 Posts: 9
|
Vitor wrote: |
To clarify & expand what elvis_gn is getting at, you need to use PCF to obtain the queue names etc. You'll find all the valuable information you need in the documentation and/or infocentre; or via google of course.
Happy Reading!  |
Hi Vitor,
Thank you too. |
|
Back to top |
|
 |
mr_shuchun |
Posted: Mon Sep 25, 2006 12:26 am Post subject: |
|
|
Newbie
Joined: 21 Sep 2006 Posts: 9
|
mr_shuchun wrote: |
thanks a lot ! you are so good a man!
it's me that misunderstand you. I would think of "pcf" as "pdf" lah.
I have solved my first problem. but would you like to provide more hlep for second problem. I don't know how to find the durable subscriber queue name according to durable subscriber name. I cannot find how MQ created/named subscriber queue when a durable subscriber is registered. |
Some Supplements:
1.define and setup TCF and T with non-share mode. see below:
DEFINE TCF(ptest.multiq.tcf) QMANAGER(sat1.queue.manager) TRANSPORT(client) HOSTNAME(host) BROKERSUBQ(SYSTEM.JMS.ND.PTEST.*)
DEFINE T(multiqpt1) BVER(V1) TOPIC(test/topic1) BROKERDURSUBQ(SYSTEM.JMS.D.PTEST.*)
2. create a durable subscriber with subscriber name and client id with JMS.
3. I observe via runmqsc that a new subscriber queue named SYSTEM.JMS.D.PTEST.4512490420001C07 is created
it seems its name is random generated.
4.how to determine this subsciber queue's name with client id and durable subsciber name? I want to monitor this subscriber queue. |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Sep 25, 2006 1:41 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You can use amqspsd to list the current subscribers.
It's in the samples directory.
Or you can download the newest Support Pack _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|