| Author | Message | 
		
		  | J.Dawson | 
			  
				|  Posted: Wed Jan 21, 2004 5:53 am    Post subject: Transmission Queue Header |   |  | 
		
		  | Novice
 
 
 Joined: 16 May 2001Posts: 21
 Location: Dallas, Texas
 
 | 
			  
				| Does anyone have JAVA code that shows how to append a transmission queue header to a message and moves values into the transmission queue header? I'm trying to send message to remote queue managers without using remote queue definitions. 
 
 Thanks,
 
 John
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | jefflowrey | 
			  
				|  Posted: Wed Jan 21, 2004 5:59 am    Post subject: |   |  | 
		
		  | Grand Poobah
 
 
 Joined: 16 Oct 2002Posts: 19981
 
 
 | 
			  
				| You probably don't want to do this.  Whatever you're trying to do is probably better solved using normal remote queues, remote queue definitions to aliases, queue manager aliases, or clusters. 
 But if you *really* do, then you'll have to use the writeXXXX() methods to create the header manually.  And set all the appropriate MQMD fields correctly as well.
 _________________
 I am *not* the model of the modern major general.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | JasonE | 
			  
				|  Posted: Wed Jan 21, 2004 7:06 am    Post subject: |   |  | 
		
		  | Grand Master
 
 
 Joined: 03 Nov 2003Posts: 1220
 Location: Hursley
 
 | 
			  
				| Dont build XQH's manually - look at queue manage aliases (which I am reliably informed this process is documented in Table 3 in the APG - Queue name resolution for MQOPEN). |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Michael Dag | 
			  
				|  Posted: Wed Jan 21, 2004 8:01 am    Post subject: Re: Transmission Queue Header |   |  | 
		
		  |  Jedi Knight
 
 
 Joined: 13 Jun 2002Posts: 2607
 Location: The Netherlands (Amsterdam)
 
 | 
			  
				| 
   
	| J.Dawson wrote: |  
	| I'm trying to send message to remote queue managers without using remote queue definitions. |  Just curious... WHY?
 
 Michael
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | J.Dawson | 
			  
				|  Posted: Wed Jan 21, 2004 8:38 am    Post subject: Transmission Queue Header |   |  | 
		
		  | Novice
 
 
 Joined: 16 May 2001Posts: 21
 Location: Dallas, Texas
 
 | 
			  
				| Michael, 
 My reasoning is that I have an application that takes messages from numerous customers from numerous sites and want to receive the reply-to-queue and reply-to-queue-manager information to create the reply message without having to determine which customer it came from. This way I can service the customer from messages come from different applications. All I need is a transmission queue to the customer regardless of which application is be serviced.
 
 
 Regards,
 
 John
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | jefflowrey | 
			  
				|  Posted: Wed Jan 21, 2004 9:13 am    Post subject: Re: Transmission Queue Header |   |  | 
		
		  | Grand Poobah
 
 
 Joined: 16 Oct 2002Posts: 19981
 
 
 | 
			  
				| 
  The customer should be setting the ReplyToQueue and ReplyToQueueManager field in their request message, which your application should then use when putting the reply message.  And then you should use Queue Manager aliases, or clustering, to prevent having to create a remote definition for every queue that they might want to receive. 
	| J.Dawson wrote: |  
	| My reasoning is that I have an application that takes messages from numerous customers from numerous sites and want to receive the reply-to-queue and reply-to-queue-manager information to create the reply message without having to determine which customer it came from. |  _________________
 I am *not* the model of the modern major general.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | J.Dawson | 
			  
				|  Posted: Wed Jan 21, 2004 12:44 pm    Post subject: Transmission Queue Header |   |  | 
		
		  | Novice
 
 
 Joined: 16 May 2001Posts: 21
 Location: Dallas, Texas
 
 | 
			  
				| Everyone, 
 Thanks for the input, it's invaluable!
 
 
 Thanks again,
 
 John
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  |  |