| Author | 
		  Message
		 | 
		
		  | compfreak | 
		  
		    
			  
				 Posted: Tue Sep 22, 2009 3:42 am    Post subject: Using a Trigger to move a message from one queue to another | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 22 Sep 2009 Posts: 3
  
  | 
		  
		    
			  
				Dear experts,
 
 
I need to transfer a amessage from one queue to another. Within this process the message Id of the ne message should bcome the correlation id from the source message.
 
 
I think this can be done using a MQ trigger. Or is there any other way except purchasing an MQ addon for defining routing rules? 
 
 
I am not an MQ expert, but I am an IT professional. So it should be no problem to write a trigger. But I have no clue how to do this.
 
 
Therefore I kindly ask,  whether a member of this forum can give me a guidiance or at least a link to a configuration and coding examples.
 
 
Thanks and kind regards,
 
 
Compfreak | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Tue Sep 22, 2009 4:32 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
			  
				The only event that you can cause with MQ Triggering is to start a program.
 
 
You can write a program to move the messages, and start that program from an MQ trigger.
 
 
You can not use normal MQ configuration of any sort to alter a message, to for example move the MsgId to the CorrelID.    You must write or buy a program. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | compfreak | 
		  
		    
			  
				 Posted: Tue Sep 22, 2009 4:51 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 22 Sep 2009 Posts: 3
  
  | 
		  
		    
			  
				Hi,
 
 
thanks for your reply. Do you have an example for a program which can be used as an example?
 
 
That would be of great help.
 
 
With kind regards,
 
 
Compfreak | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Mr Butcher | 
		  
		    
			  
				 Posted: Tue Sep 22, 2009 4:59 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Padawan
 
 Joined: 23 May 2005 Posts: 1716
  
  | 
		  
		    
			  
				is this homework? have you had a look at any MQ program so far? or at the API manual? _________________ Regards, Butcher | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | compfreak | 
		  
		    
			  
				 Posted: Tue Sep 22, 2009 8:49 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 22 Sep 2009 Posts: 3
  
  | 
		  
		    
			  
				No this is no homework.    I am searching thru the internet the whole day already. But I really couldn't find a starting point. It is very difficult if 
 
you are not really familiar with a specific program or subject.
 
 
Therefore I am asking at least to get a starter, which can then guide me thru the process.
 
 
With kind regards,
 
 
Compfreak | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Tue Sep 22, 2009 9:25 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| compfreak wrote: | 
   
  
	Therefore I am asking at least to get a starter, which can then guide me thru the process.
 
 | 
   
 
 
 
There's sample code on this site, and supplied with the product. 
 
 
   
	| compfreak wrote: | 
   
  
	| I am searching thru the internet the whole day already. But I really couldn't find a starting point | 
   
 
 
 
I'm surprised that in a whole day of searching you didn't see the link to the InfoCentre at the top of this page, and the section about starting applications with triggering which explains all this. _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |