|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Channel names rule |
« View previous topic :: View next topic » |
Author |
Message
|
pintrader |
Posted: Wed Jul 09, 2014 8:15 pm Post subject: Channel names rule |
|
|
Disciple
Joined: 22 Jan 2014 Posts: 164
|
hi,
when creating channels for use to communicate with remote, does their definition need to be the same?
eg on sending side
define channel(QMA.QMB) ....
on receiving side
define channel(QMA.QMB) ...
I see examples in the docs there is no such rule, eg http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_7.5.0/com.ibm.mq.ref.con.doc/q080980_.htm
and
http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_7.5.0/com.ibm.mq.ref.con.doc/q080990_.htm
however, when I try myself, the error below tell me to create the same definition at remote
-------------------------------------------------------------------------------
7/10/2014 11:54:24 - Process(11792.1) User(SYSTEM) Program(runmqchl.exe)
Host(WIN) Installation(Installation1)
VRMF(7.5.0.2) QMgr(TEST.WINDOWS.QMGR)
AMQ9520: Channel not defined remotely.
EXPLANATION:
There is no definition of channel 'TEST.WIN.SOL.SEND' at the remote location.
ACTION:
Add an appropriate definition to the remote hosts list of defined channels and
retry the operation. The remote host is '10.10.10.1
(10.10.10.1)(1416)'.
----- cmqxrfpt.c : 517 --------------------------------------------------------
7/10/2014 11:54:24 - Process(11792.1) User(SYSTEM) Program(runmqchl.exe)
Host(WIN) Installation(Installation1)
VRMF(7.5.0.2) QMgr(TEST.WINDOWS.QMGR)
This is channel definition at sending side (Windows machine):
DEFINE CHANNEL('TEST.WIN.SOL.SEND') +
CHLTYPE(SDR) +
CONNAME('10.10.10.1(1416)') +
TRPTYPE(TCP) +
XMITQ('TEST.WIN.SOL.XMITQ') +
REPLACE
I created a receiving channel at my remote MQ (solaris) with the same definition name and it manages to bind. BEfore this, its always retrying (seen from MQExplorer at Windows machine).
Is it I misread the documentations linked above?
thanks |
|
Back to top |
|
 |
PaulClarke |
Posted: Wed Jul 09, 2014 8:47 pm Post subject: |
|
|
 Grand Master
Joined: 17 Nov 2005 Posts: 1002 Location: New Zealand
|
Yes the channel names at both end must be EXACTLY the same. That's how the two ends get tied together.
It would surprise me if there are examples in the docs where this is not the case but if you do know of some places then you should include a link so we can all have a look and, if you are right, the docs should be changed.
Cheers,
Paul. _________________ Paul Clarke
MQGem Software
www.mqgem.com |
|
Back to top |
|
 |
pintrader |
Posted: Wed Jul 09, 2014 11:11 pm Post subject: |
|
|
Disciple
Joined: 22 Jan 2014 Posts: 164
|
|
Back to top |
|
 |
PaulClarke |
Posted: Thu Jul 10, 2014 12:40 am Post subject: |
|
|
 Grand Master
Joined: 17 Nov 2005 Posts: 1002 Location: New Zealand
|
I agree that the documentation is not as clear as it could be. But aren't these channel definitions both on the SOLARIS machine ? ie. one sender channel and one receiver definition. In which case you could expect them to be different names. Each channel, on the same machine, MUST have a different name. However, the two ends of a channel must have the same name. So, in this case I would expect the same two channels to be defined also on the Window box.
Having said that I am not keen on the names of the channels. Far better, in my view, to put the names of the Queue Managers in the channel name. So, either they are called something like TO.QM1 or QM1.TO.QM2 or even QM1.QM2. So, just by looking at the channel name you get an idea of what it is there for. Of course, this doesn't work if your QM names are long.
Cheers,
Paul. _________________ Paul Clarke
MQGem Software
www.mqgem.com |
|
Back to top |
|
 |
pintrader |
Posted: Thu Jul 10, 2014 1:59 am Post subject: |
|
|
Disciple
Joined: 22 Jan 2014 Posts: 164
|
PaulClarke wrote: |
I agree that the documentation is not as clear as it could be. But aren't these channel definitions both on the SOLARIS machine ? ie. one sender channel and one receiver definition. In which case you could expect them to be different names. Each channel, on the same machine, MUST have a different name. However, the two ends of a channel must have the same name. So, in this case I would expect the same two channels to be defined also on the Window box.
Having said that I am not keen on the names of the channels. Far better, in my view, to put the names of the Queue Managers in the channel name. So, either they are called something like TO.QM1 or QM1.TO.QM2 or even QM1.QM2. So, just by looking at the channel name you get an idea of what it is there for. Of course, this doesn't work if your QM names are long.
Cheers,
Paul. |
hi, thanks for the tips. Appreciate
I had always thought that "server" and "receiver" are on 2 different machines when i read the docs. Thanks for clarifying. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|