|  | 
 
  
    | RSS Feed - WebSphere MQ Support | RSS Feed - Message Broker Support |  
 
  
	|    |  |  
  
	| How to control when to send messages from one Q to another? | « View previous topic :: View next topic » |  
  	| 
		
		
		  | Author | Message |  
		  | ividiva | 
			  
				|  Posted: Thu Nov 21, 2002 10:54 pm    Post subject: How to control when to send messages from one Q to another? |   |  |  
		  | Newbie
 
 
 Joined: 21 Nov 2002Posts: 8
 
 
 | 
			  
				| Hi, Lets say , i have two qeue managers , QM1 and QM2. My application is connected to QM1, and is supposed to send messages to a queue in QM2.
 But, i want to  send the messages from QM1 to the queue in QM2 only at a particular time, though my application can continue posting messages.Can any one give an idea , how can i do this?..
 
 Thanx a lot.
 Mathews
 |  |  
		  | Back to top |  |  
		  |  |  
		  | mgrabinski | 
			  
				|  Posted: Thu Nov 21, 2002 10:58 pm    Post subject: |   |  |  
		  | Master
 
 
 Joined: 16 Oct 2001Posts: 246
 Location: Katowice, Poland
 
 | 
			  
				| You can write a script that will start at the given time the sending channel end on QM1. _________________
 Marcin Grabinski   <><
 |  |  
		  | Back to top |  |  
		  |  |  
		  | ividiva | 
			  
				|  Posted: Fri Nov 22, 2002 2:16 am    Post subject: |   |  |  
		  | Newbie
 
 
 Joined: 21 Nov 2002Posts: 8
 
 
 | 
			  
				| But wut do i write in the Script? . Should i code the script for starting and stopping the channel between them?. |  |  
		  | Back to top |  |  
		  |  |  
		  | mgrabinski | 
			  
				|  Posted: Fri Nov 22, 2002 4:40 am    Post subject: |   |  |  
		  | Master
 
 
 Joined: 16 Oct 2001Posts: 246
 Location: Katowice, Poland
 
 | 
			  
				| It can look like this: 
 
 
   
	| Code: |  
	| {wait until specified time}
 runmqchl -c ChannelName -m QMgrName
 
 |  
 In the channel definition code a low value for DISCINT, so that the channel shuts down few seconds/minutes after sending the last message
 _________________
 Marcin Grabinski   <><
 |  |  
		  | 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
 
 |  |  |  |