|  | 
 
  
    | RSS Feed - WebSphere MQ Support | RSS Feed - Message Broker Support |  
 
  
	|    |  |  
  
	| MQMD context headers in XMITQ | « View previous topic :: View next topic » |  
  	| 
		
		
		  | Author | Message |  
		  | atheek | 
			  
				|  Posted: Thu Nov 13, 2008 1:34 am    Post subject: MQMD context headers in XMITQ |   |  |  
		  |  Partisan
 
 
 Joined: 01 Jun 2006Posts: 327
 Location: Sydney
 
 | 
			  
				| Platform: Windows 2003 Server MQ Version: 6.0.2.3
 
 We have a sender application that sends mesages to a  queue in a remote queue manager using sdr/rcvr channel.
 
 The application sets both the identity and origin context in the message header. We thought of confirming this by checking the MQMD header in the transmission queue after bringing the channel down. The MQMD header of the transmission queue had identity context as set by the application, but the origin context was overwritten by the queue manager with ApplnOriginData set as blank, a field the receiver app needs to process the message correctly. When the message eventually reached the receiver system it had the MQMD header fields to the values set by the sender application - including both identity and context.
 
 Why is there a difference in the header only for origin context, when the message is on a xmit queue? Is this a documented feature. If so where can I get the documentation.
 
 Thanks,
 Atheek
 |  |  
		  | Back to top |  |  
		  |  |  
		  | Vitor | 
			  
				|  Posted: Thu Nov 13, 2008 2:28 am    Post subject: Re: MQMD context headers in XMITQ |   |  |  
		  |  Grand High Poobah
 
 
 Joined: 11 Nov 2005Posts: 26093
 Location: Texas, USA
 
 | 
			  
				| 
   
	| atheek wrote: |  
	| Why is there a difference in the header only for origin context, when the message is on a xmit queue? Is this a documented feature. If so where can I get the documentation. 
 |  
 IIRC (and these days that's less & less likely!) it's in the Intercommunication manual somewhere. There's another MQMD added as part of the transmission process - remember that the MCA is (at it's simplist) just an application doing gets and puts.
 _________________
 Honesty is the best policy.
 Insanity is the best defence.
 |  |  
		  | Back to top |  |  
		  |  |  
		  | gbaddeley | 
			  
				|  Posted: Thu Nov 13, 2008 8:24 pm    Post subject: Re: MQMD context headers in XMITQ |   |  |  
		  |  Jedi Knight
 
 
 Joined: 25 Mar 2003Posts: 2538
 Location: Melbourne, Australia
 
 | 
			  
				| 
   
	| atheek wrote: |  
	| Platform: Windows 2003 Server MQ Version: 6.0.2.3
 
 We have a sender application that sends mesages to a  queue in a remote queue manager using sdr/rcvr channel.
 
 The application sets both the identity and origin context in the message header. We thought of confirming this by checking the MQMD header in the transmission queue after bringing the channel down. The MQMD header of the transmission queue had identity context as set by the application, but the origin context was overwritten by the queue manager with ApplnOriginData set as blank, a field the receiver app needs to process the message correctly. When the message eventually reached the receiver system it had the MQMD header fields to the values set by the sender application - including both identity and context.
 
 Why is there a difference in the header only for origin context, when the message is on a xmit queue? Is this a documented feature. If so where can I get the documentation.
 
 Thanks,
 Atheek
 |  
 I assume you were checking the MQMD in the message data, that appears between the MQXQH structure and your application data.  The message on the xmitq also has its own MQMD but that is managed by the MCA.
 
 If the context fields are not being set as you expect it is probably because the application has not requested to open the queue with the appropriate context authorities.
 _________________
 Glenn
 |  |  
		  | Back to top |  |  
		  |  |  
		  | atheek | 
			  
				|  Posted: Thu Nov 13, 2008 10:04 pm    Post subject: |   |  |  
		  |  Partisan
 
 
 Joined: 01 Jun 2006Posts: 327
 Location: Sydney
 
 | 
			  
				| 
   
	| Glen wrote: |  
	| I assume you were checking the MQMD in the message data, that appears between the MQXQH structure and your application data. |  
 No Glen. I was using amqsbcg and checking mqmd header and not in the  MQXQH header. Now I realise thats where I need to check
 
 The application is setting the ccontext correctly and its appearing correctly at the receiver side
 
 Thanks for the replies
 
 -Atheek
 |  |  
		  | 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
 
 |  |  |  |