| Author | 
		  Message
		 | 
		
		  | brianb | 
		  
		    
			  
				 Posted: Thu Oct 08, 2015 8:11 pm    Post subject: Pub Sub question | 
				     | 
			   
			 
		   | 
		
		
		   Voyager
 
 Joined: 12 May 2010 Posts: 85
  
  | 
		  
		    
			  
				Hi All
 
 
We are finding that when a subscription is restored it duplicates the topicstring
 
 
so mystring/test/* becomes mystring/test/*/mystring/test/*
 
 
MQ 7.0.1 7.5 and MQ8 linux and AIX
 
 
Brian | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | hughson | 
		  
		    
			  
				 Posted: Thu Oct 08, 2015 9:47 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Padawan
 
 Joined: 09 May 2013 Posts: 1967 Location: Bay of Plenty, New Zealand 
  | 
		  
		    
			  
				When you convert the DISPLAY SUB command into a DEFINE SUB command don't use both TOPICOBJ and TOPICSTR, or get onto a version of MQ that has DISTYPE on DISPLAY SUB.
 
 
What tool are you using to do the restore, because some have been fixed to help work around this feature of MQ.
 
 
Cheers
 
Morag _________________ Morag Hughson @MoragHughson
 
IBM MQ Technical Education Specialist
 
Get your IBM MQ training here!
 
MQGem Software | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | brianb | 
		  
		    
			  
				 Posted: Tue Dec 01, 2015 4:43 pm    Post subject: Resloved | 
				     | 
			   
			 
		   | 
		
		
		   Voyager
 
 Joined: 12 May 2010 Posts: 85
  
  | 
		  
		    
			  
				| That worked thanks for the help.... | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | bruce2359 | 
		  
		    
			  
				 Posted: Tue Dec 01, 2015 6:18 pm    Post subject: Re: Resloved | 
				     | 
			   
			 
		   | 
		
		
		    Poobah
 
 Joined: 05 Jan 2008 Posts: 9486 Location: US: west coast, almost. Otherwise, enroute. 
  | 
		  
		    
			  
				
   
	| brianb wrote: | 
   
  
	| That worked thanks for the help.... | 
   
 
 
What's a that?  What worked? _________________ I like deadlines. I like to wave as they pass by.
 
ב''ה
 
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | hughson | 
		  
		    
			  
				 Posted: Wed Dec 02, 2015 3:28 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Padawan
 
 Joined: 09 May 2013 Posts: 1967 Location: Bay of Plenty, New Zealand 
  | 
		  
		    
			  
				
   
	| hughson wrote: | 
   
  
	| ...don't use both TOPICOBJ and TOPICSTR ... | 
   
 
 
 
Maybe this? _________________ Morag Hughson @MoragHughson
 
IBM MQ Technical Education Specialist
 
Get your IBM MQ training here!
 
MQGem Software | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | zpat | 
		  
		    
			  
				 Posted: Wed Dec 02, 2015 4:02 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Council
 
 Joined: 19 May 2001 Posts: 5867 Location: UK 
  | 
		  
		    
			  
				It's correct to use both. The idea is that the topic object holds the stem of the topic string and the topic string value has the remainder.
 
 
However as you say the display of the object usually shows the full topic string as well as the topic object name. So if these are re-combined the result is a mess. _________________ 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 | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | hughson | 
		  
		    
			  
				 Posted: Wed Dec 02, 2015 12:53 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Padawan
 
 Joined: 09 May 2013 Posts: 1967 Location: Bay of Plenty, New Zealand 
  | 
		  
		    
			  
				While it may be correct to use both, it is not correct to take both from DISPLAY SUB which is what my answer that I alluded to said.
 
 
Although they've fixed it in the later versions of MQ so it gets better,
 
 
Cheers
 
Morag _________________ Morag Hughson @MoragHughson
 
IBM MQ Technical Education Specialist
 
Get your IBM MQ training here!
 
MQGem Software | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | brianb | 
		  
		    
			  
				 Posted: Wed Dec 02, 2015 1:06 pm    Post subject: Pub Sub Question | 
				     | 
			   
			 
		   | 
		
		
		   Voyager
 
 Joined: 12 May 2010 Posts: 85
  
  | 
		  
		    
			  
				Hi
 
 
Morags answer pointed me in the correct direction
 
 
get onto a version of MQ that has DISTYPE on DISPLAY SUB 
 
 
This worked as designed on 8.0.0.2 | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |