Author |
Message
|
mikiu |
Posted: Fri Dec 06, 2013 6:26 am Post subject: Accessing a queue using MQMGR alias |
|
|
 Acolyte
Joined: 23 Jul 2002 Posts: 61 Location: toronto
|
Hello wise and gentle folks ...
I am certain yous know how to get messages from a queue on a different queue manager (AIX) then the one I currently use (z/OS) and I am also certain that you will share your wisdom with me ... I know I did this before using QMGR Aliases, but lost the source an for the life of me I cannot remember the details.
Much obliged for your time
M. |
|
Back to top |
|
 |
Vitor |
Posted: Fri Dec 06, 2013 6:52 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
You client onto the AIX queue manager and read them from there.
Or you use QALIAS and/or QREMOTE to have them delivered to your queue manager.
You can't get messages from a queue manager you're not connected to.
It's an urban myth you can't connect to a distributed queue manager from z/OS; the restriction runs the other way, and has more to do with how z/OS manages & licences client connections. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
PaulClarke |
Posted: Fri Dec 06, 2013 6:53 am Post subject: |
|
|
 Grand Master
Joined: 17 Nov 2005 Posts: 1002 Location: New Zealand
|
I'm not quite sure what you're asking but there is no way to use a QMGR Alias to GET messages from a remote Queue Manager. The traditional way to get messages from a Queue Manager that is on a different machine than the one you are on is to use an MQ Client.
Cheers,
Paul. _________________ Paul Clarke
MQGem Software
www.mqgem.com |
|
Back to top |
|
 |
mikiu |
Posted: Fri Dec 06, 2013 7:34 am Post subject: |
|
|
 Acolyte
Joined: 23 Jul 2002 Posts: 61 Location: toronto
|
Thank you ... once again you came through ... I am grateful for your time
M. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Dec 06, 2013 3:04 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
There is however a way to get messages on a local queue manager that were originally meant for a different qmgr and that has to do with a qmgr alias... (man in the middle type of interception)  _________________ MQ & Broker admin |
|
Back to top |
|
 |
mikiu |
Posted: Mon Dec 09, 2013 10:13 am Post subject: |
|
|
 Acolyte
Joined: 23 Jul 2002 Posts: 61 Location: toronto
|
You said [quote="Vitor"]You client onto the AIX queue manager and read them from there. ...
This is what I did:
1 - used MQCONNX instead of MQCONN
2 - added the MQCD-STRUCTURE and filled in values I thought are needed:
MQCD-QMGRNAME <--- the AIX qmgr name
MQCD-CHANNELNAME <--- a working SVRCONN (same name on z/OS and AIX)
MQCD-CONNECTIONNAME <--- what MQExplorer showed incl port#
MQCD-TRANSPORTTYPE = MQXPT-TCP
MQCD-CHANNELTYPE = MQCHT-SVRCONN
3 - Set address MQCNO-CLIENTCONNPTR to the MQCD structure.
4 - Issued CONNX with z/OS queue manager name.
After fumbling through a bunch of 2058s to get all the above right, I did connect successfully and now I am dealing with a new pile of errors on the MQOPEN ...
I reviewed all the steps here for documentation, possibly of use by others ... but your suggestions were valuable and I am much obliged for your time.
M. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Dec 09, 2013 11:03 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mikiu wrote: |
I reviewed all the steps here for documentation, possibly of use by others ... but your suggestions were valuable and I am much obliged for your time. |
Glad to hear you're making progress, I thank you for taking the time to post your results and you're welcome. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|