| Author | Message | 
		
		  | GGTrek | 
			  
				|  Posted: Wed Feb 04, 2009 6:02 am    Post subject: ReplyToQmgr with Queue Manager Alias |   |  | 
		
		  | Newbie
 
 
 Joined: 04 Feb 2009Posts: 3
 
 
 | 
			  
				| We have defined the following MQ Manager Alias Name: DEFINE QREMOTE('QMAlias')
 DESCR('QUEUE MANAGER ALIAS NAME')
 RNAME(' ')
 RQMNAME('QMReal')
 XMITQ(' ')
 REPLACE
 
 Where QMReal is the local queue manager name. The MQ Manager is used by a third party application (that we cannot modify) to communicate with counterparties of our company that require our Queue manager name to be QMAlias. We have noticed that we have the following message header when we send out messages to counterparties:
 StrucId  : 'MD  '  Version : 2
 Report   : 0  MsgType : 8
 Expiry   : -1  Feedback : 0
 Encoding : 546  CodedCharSetId : 1208
 Format : 'MQXMIT  '
 Priority : 0  Persistence : 1
 MsgId : X'414D5120475354324A414E4432202020C425864903410020'
 CorrelId : X'414D5120475354324A414E4432202020C425864902410020'
 BackoutCount : 0
 ReplyToQ       : '                                                '
 ReplyToQMgr    : 'QMReal'
 
 This is a big issue since counterparties do not know our QMReal name and they end up with a 2087 (Unknown remote QMgr.) error when trying to reply. The third party application always sends us an empty ReplyToQ and ReplyToQMgr and our local Queue Manager fills in the ReplyToQMgr with the local queue manager name instead of the Alias Name.
 
 I know that if we change QMReal name to QMAlias this issue would be solved, but it involves a lot of configuration changes. Is there another way to override the ReplyToQMgr with the QMAlias name?
 
 Thank you
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | PeterPotkay | 
			  
				|  Posted: Wed Feb 04, 2009 7:06 am    Post subject: |   |  | 
		
		  |  Poobah
 
 
 Joined: 15 May 2001Posts: 7723
 
 
 | 
			  
				| Look up Reply-To Queue Alias in the MQ Manuals. It will solve your problem. _________________
 Peter Potkay
 Keep Calm and MQ On
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | GGTrek | 
			  
				|  Posted: Wed Feb 04, 2009 7:18 am    Post subject: |   |  | 
		
		  | Newbie
 
 
 Joined: 04 Feb 2009Posts: 3
 
 
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | fjb_saper | 
			  
				|  Posted: Wed Feb 04, 2009 7:28 am    Post subject: |   |  | 
		
		  |  Grand High Poobah
 
 
 Joined: 18 Nov 2003Posts: 20767
 Location: LI,NY
 
 | 
			  
				| Looks like you are having some problems with understanding the request/reply model for its routing part, default routes etc...
  the intercommunications manual  is your friend. 
 If you want for the remote qmgr to send its stuff to QMAlias and that to be you what you have done is fine. But then YOU need to SET 'QMAlias' as the replyto qmgr on your requests....
  _________________
 MQ & Broker admin
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | PeterPotkay | 
			  
				|  Posted: Wed Feb 04, 2009 7:47 am    Post subject: |   |  | 
		
		  |  Poobah
 
 
 Joined: 15 May 2001Posts: 7723
 
 
 | 
			  
				| If Reply Queue is blank, then they are not replying to the Reply To Q and Reply To QM, so who cares what's in Reply To QM? _________________
 Peter Potkay
 Keep Calm and MQ On
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | fjb_saper | 
			  
				|  Posted: Wed Feb 04, 2009 7:51 am    Post subject: |   |  | 
		
		  |  Grand High Poobah
 
 
 Joined: 18 Nov 2003Posts: 20767
 Location: LI,NY
 
 | 
			  
				| 
  He is making his qmgr be recognized as the QMAlias. So he needs to specify a replyto queue on his qmgr and a replyto qmgr of 'QMAlias' on his request.... This goes hand in hand with a default routing on the processing qmgr that will send messages for QMAlias on a channel to QMReal 
	| PeterPotkay wrote: |  
	| If Reply Queue is blank, then they are not replying to the Reply To Q and Reply To QM, so who cares what's in Reply To QM? |   _________________
 MQ & Broker admin
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | PeterPotkay | 
			  
				|  Posted: Wed Feb 04, 2009 7:54 am    Post subject: |   |  | 
		
		  |  Poobah
 
 
 Joined: 15 May 2001Posts: 7723
 
 
 | 
			  
				| I still don't understand how ReplyToQM will be used if ReplyToQ is blank. _________________
 Peter Potkay
 Keep Calm and MQ On
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | fjb_saper | 
			  
				|  Posted: Wed Feb 04, 2009 7:59 am    Post subject: |   |  | 
		
		  |  Grand High Poobah
 
 
 Joined: 18 Nov 2003Posts: 20767
 Location: LI,NY
 
 | 
			  
				| 
  You got me there. 
	| PeterPotkay wrote: |  
	| I still don't understand how ReplyToQM will be used if ReplyToQ is blank. |   Should have paid attention to that part...  Apologies... _________________
 MQ & Broker admin
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | GGTrek | 
			  
				|  Posted: Wed Feb 04, 2009 8:17 am    Post subject: |   |  | 
		
		  | Newbie
 
 
 Joined: 04 Feb 2009Posts: 3
 
 
 | 
			  
				| Thanks a lot for the explanations. 
 I believe that I have only got two solutions then:
 1) change QMReal name to QMAlias name and reconfigure the third party app that writes to QMReal
 2) ask the third party application vendor to do some "small" dev and fill in either ReplyToQ or ReplyToQMgr
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  |  |