| Author | Message | 
		
		  | krypton | 
			  
				|  Posted: Mon Apr 10, 2017 12:11 pm    Post subject: Moving messages from one server + QM to another |   |  | 
		
		  |  Disciple
 
 
 Joined: 14 Mar 2010Posts: 186
 
 
 | 
			  
				| hi All, 
 we have a requirement, we got application messages stuck in one server on QM2, now we need these messages on the same queue in QM1 on another server.
 
 Can we move the messages present in QM2(server 2)  to QM1 (server 1) and they works without any issues?
 _________________
 Dreams are not something which you watch when you are asleep,it is something which doesn't let you sleep.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Vitor | 
			  
				|  Posted: Mon Apr 10, 2017 12:17 pm    Post subject: Re: Moving messages from one server + QM to another |   |  | 
		
		  |  Grand High Poobah
 
 
 Joined: 11 Nov 2005Posts: 26093
 Location: Texas, USA
 
 | 
			  
				| 
   
	| krypton wrote: |  
	| Can we move the messages present in QM2(server 2)  to QM1 (server 1) |  
 Yes. Multiple utilities exist for this.
 
 
 
   
	| krypton wrote: |  
	| they works without any issues? |  
 Assuming:
 
 - the same application is processing them from QM1
 - whatever caused them to get stuck on QM2 doesn't happen on QM1
 
 They're just messages. MQ is blind to payload.
 _________________
 Honesty is the best policy.
 Insanity is the best defence.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | krypton | 
			  
				|  Posted: Mon Apr 10, 2017 12:22 pm    Post subject: |   |  | 
		
		  |  Disciple
 
 
 Joined: 14 Mar 2010Posts: 186
 
 
 | 
			  
				| 
   
	| Quote: |  
	| Yes. Multiple utilities exist for this. 
 |  
 Hi Vitor, could you recommend any utility which comes with IBM MQ Server package or any other utility which is available for download with no license cost.
 
 Thank you!
 _________________
 Dreams are not something which you watch when you are asleep,it is something which doesn't let you sleep.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | PaulClarke | 
			  
				|  Posted: Mon Apr 10, 2017 2:54 pm    Post subject: |   |  | 
		
		  |  Grand Master
 
 
 Joined: 17 Nov 2005Posts: 1002
 Location: New Zealand
 
 | 
			  
				| Take a look at 'dmpmqmsg' or, if you are on an earlier MQ version the QLOAD SupportPac. 
 Cheers,
 
 Paul.
 _________________
 Paul Clarke
 MQGem Software
 www.mqgem.com
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | DeadPool | 
			  
				|  Posted: Tue Apr 11, 2017 1:17 am    Post subject: |   |  | 
		
		  | Apprentice
 
 
 Joined: 27 May 2016Posts: 30
 
 
 | 
			  
				| or if you are really desperate and you have teh queue managers in an mq explorer try doing it there |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | zpat | 
			  
				|  Posted: Tue Apr 11, 2017 2:17 am    Post subject: |   |  | 
		
		  |  Jedi Council
 
 
 Joined: 19 May 2001Posts: 5867
 Location: UK
 
 | 
			  
				| MO71 can also move messages (either via a QLOAD format file or over a xmit queue between the QMs). 
 Support pac MS0P plug in to MQ explorer has a message management function.
 
 It's often easier to move messages between two queues on the same QM, and if you define a sender channel / xmit queue to the other QM, you could move them to a remote queue definition, and have the QM send them over.
 _________________
 Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | mqjeff | 
			  
				|  Posted: Tue Apr 11, 2017 3:55 am    Post subject: |   |  | 
		
		  | Grand Master
 
 
 Joined: 25 Jun 2008Posts: 17447
 
 
 | 
			  
				| If you are trying to have messages move from one queue manager to another, automatically , then you simply need to configure the two queue managers to talk to each other. 
 This is extremely straight forward and very well documented.
 _________________
 chmod  -R ugo-wx /
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | krypton | 
			  
				|  Posted: Tue Apr 11, 2017 5:51 am    Post subject: |   |  | 
		
		  |  Disciple
 
 
 Joined: 14 Mar 2010Posts: 186
 
 
 | 
			  
				| 
   
	| Quote: |  
	| If you are trying to have messages move from one queue manager to another, automatically , then you simply need to configure the two queue managers to talk to each other. 
 |  
 Thank you for your reply Jeff, no we are not trying to move messages from One server to another server automatically.
 
 Sometimes what happened is someone on JBOSS side start an instance of application which SHOULD NOT be started and the app message ends up in QM2 (server 2) in the local Q.
 we need those messages instead in QM1 (server1).
 and it happens only occassionally and can happen to any of the FE application and message can go to that FE.App Queue.
 
 I think using a utility for moving messages across servers would be great, long back (2009) when I was working on MQ V6 , I knew few utilities but none of them was supposed to move messages across the servers.
 
 Maybe that has changed now.
 _________________
 Dreams are not something which you watch when you are asleep,it is something which doesn't let you sleep.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Vitor | 
			  
				|  Posted: Tue Apr 11, 2017 7:24 am    Post subject: |   |  | 
		
		  |  Grand High Poobah
 
 
 Joined: 11 Nov 2005Posts: 26093
 Location: Texas, USA
 
 | 
			  
				| 
   
	| krypton wrote: |  
	| I think using a utility for moving messages across servers would be great, long back (2009) when I was working on MQ V6 , I knew few utilities but none of them was supposed to move messages across the servers. 
 Maybe that has changed now.
 |  
 All of the utilities mentioned above (with the possible exception of the MQ Explorer plug-in, whose release date I can't be bothered to look up) worked fine on v6 in 2009. I can personally attest to using q, qload, RFHUtil et al on all versions of MQ back to v5.1 a long time before 2009.
 
 
  _________________
 Honesty is the best policy.
 Insanity is the best defence.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | PaulClarke | 
			  
				|  Posted: Wed Apr 12, 2017 3:20 am    Post subject: |   |  | 
		
		  |  Grand Master
 
 
 Joined: 17 Nov 2005Posts: 1002
 Location: New Zealand
 
 | 
			  
				| If we are mentioning all tools that can do it then how about MQEdit (http://www.mqgem.com/mqedit.html) that even allows you to just drag and drop messages between Queue Managers! 
 Cheers,
 Paul.
 _________________
 Paul Clarke
 MQGem Software
 www.mqgem.com
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | Vitor | 
			  
				|  Posted: Wed Apr 12, 2017 4:48 am    Post subject: |   |  | 
		
		  |  Grand High Poobah
 
 
 Joined: 11 Nov 2005Posts: 26093
 Location: Texas, USA
 
 | 
			  
				| 
   
	| PaulClarke wrote: |  
	| If we are mentioning all tools that can do it then how about MQEdit (http://www.mqgem.com/mqedit.html) that even allows you to just drag and drop messages between Queue Managers! |  
 Apologies for the oversight; this utility should indeed have been mentioned / plugged in the above list.
  _________________
 Honesty is the best policy.
 Insanity is the best defence.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | kevinobyrne | 
			  
				|  Posted: Tue Apr 18, 2017 8:32 am    Post subject: |   |  | 
		
		  |  Voyager
 
 
 Joined: 17 Jul 2007Posts: 83
 Location: Ireland
 
 | 
			  
				| 
   
	| krypton wrote: |  
	| 
 Sometimes what happened is someone on JBOSS side start an instance of application which SHOULD NOT be started and the app message ends up in QM2 (server 2) in the local Q.
 we need those messages instead in QM1 (server1).
 and it happens only occassionally and can happen to any of the FE application and message can go to that FE.App Queue.
 
 |  
 Can you leave the queue on QM2 "PUT inhibited", then even if the 2nd JBOSS node starts, it can't write to the queue? Obviously this depends on how well the application running on JBOSS handles this (might make things worse).
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  |  |