| Author | 
		  Message
		 | 
		
		  | sathya532k | 
		  
		    
			  
				 Posted: Fri Apr 20, 2012 10:37 am    Post subject: single subcribers to two publisher | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 04 Dec 2006 Posts: 15
  
  | 
		  
		    
			  
				Can someboby help on the below query.
 
 
Can a single subriber can subscribe to two individual publisher from a same qmanager. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Fri Apr 20, 2012 10:41 am    Post subject: Re: single subcribers to two publisher | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| sathya532k wrote: | 
   
  
	| Can a single subriber can subscribe to two individual publisher from a same qmanager. | 
   
 
 
 
Subscribers don't subscribe to publishers. They subscribe to topics. They have (or should have) no visibility of who's publishing those topics. _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | lancelotlinc | 
		  
		    
			  
				 Posted: Fri Apr 20, 2012 10:42 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA 
  | 
		  
		    
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | sathya532k | 
		  
		    
			  
				 Posted: Fri Apr 20, 2012 10:44 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 04 Dec 2006 Posts: 15
  
  | 
		  
		    
			  
				Hi Sorry, 
 
 
I meant to ask can a single subcriber able to subscribe to two different topic | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Fri Apr 20, 2012 10:49 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| sathya532k wrote: | 
   
  
	| I meant to ask can a single subcriber able to subscribe to two different topic | 
   
 
 
 
To quote my associate: yes. _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | sathya532k | 
		  
		    
			  
				 Posted: Fri Apr 20, 2012 11:17 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 04 Dec 2006 Posts: 15
  
  | 
		  
		    
			  
				Hi Victor,
 
 
One more doubt.
 
 
We have subscribed for topic A from a publisher A. Now publisher is adding one more Qmanager and decided to publish Topic B from new environment.
 
 
Now from my standpoint, will i be able to subscribe from one mq environment to two different topics published by two different Publishers.
 
 
 
                                        
 
                                            App B
 
Apps   ------------------------->Topic1
 
Topic1 
 
Topic2 ------------------------>App C
 
                                            Topic2 | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Fri Apr 20, 2012 11:28 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| sathya532k wrote: | 
   
  
	| We have subscribed for topic A from a publisher A. Now publisher is adding one more Qmanager and decided to publish Topic B from new environment. | 
   
 
 
 
This is a really poor design. Topics should describe the data, not who published them. So if there's a new queue manager on which an application is generating the same or similar data to the first one, the topic should be the same or similar & the subscriber should use a wildcard in the subscription.
 
 
You should not have Topic A from Publisher A & Topic B from Publisher B going to the same subscribing application. You should have A/Data & B/Data going to a subscription of #/Data. Or Data/#. Or some other construction of topic string that meets your requirements.
 
 
And ideally no reference to the publisher in the topic at all! _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | sathya532k | 
		  
		    
			  
				 Posted: Fri Apr 20, 2012 11:39 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Novice
 
 Joined: 04 Dec 2006 Posts: 15
  
  | 
		  
		    
			  
				Hi Victor,
 
 
Thanks. Still i have no information from the other guys.
 
I received a omunication and thought of discussing on a right forum to get educated.
 
 
Once i receive the concrete information, i will ask for suggestions here and best way to proceed.
 
 
Im a new bie in pub/sub model. Im just a pure Mq Admin. So this task came to me.
 
 
I will come back required information | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Fri Apr 20, 2012 11:43 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| sathya532k wrote: | 
   
  
	| Im a new bie in pub/sub model. | 
   
 
 
 
You'll find the pub/sub documentation highly useful. Type "topic strings" into the InfoCenter and fan down from there. There are some good descriptions on topic string design & the use of wildcards, as well as publisher / subscriber topology.
 
 
   
	| sathya532k wrote: | 
   
  
	|  Im just a pure Mq Admin. So this task came to me. | 
   
 
 
 
Because there's a sporting chance you'll be defining topics and subscriptions at an administrative level. _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |