| Author | Message | 
		
		  | sapi | 
			  
				|  Posted: Thu Apr 14, 2005 2:12 am    Post subject: Open a queue for two diferents process |   |  | 
		
		  | Newbie
 
 
 Joined: 14 Apr 2005Posts: 4
 
 
 | 
			  
				| I need to open a queue for two diferents process. When a message arrive to the queue i need that the message been get for the two process. How i do it?
 thanking you in advance
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | cameron | 
			  
				|  Posted: Thu Apr 14, 2005 2:27 am    Post subject: MQSeries Java / JMS |   |  | 
		
		  |  Newbie
 
 
 Joined: 06 Feb 2005Posts: 7
 Location: Livingston, UK
 
 | 
			  
				| Why not use publish/subscribe? _________________
 Sun Certified Programmer for Java 2 Platform 1.4
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | jefflowrey | 
			  
				|  Posted: Thu Apr 14, 2005 5:08 am    Post subject: |   |  | 
		
		  | Grand Poobah
 
 
 Joined: 16 Oct 2002Posts: 19981
 
 
 | 
			  
				| Pub/Sub or some other mechanism (like a distribution list) that produces one message for each process is basically the only way to do this. 
 Any other technically possible way will be very bad.  In my opinion.
 
 What are you really trying to accomplish?  That is, why do you need two processes to get the same message?
 _________________
 I am *not* the model of the modern major general.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | sapi | 
			  
				|  Posted: Thu Apr 14, 2005 5:25 am    Post subject: |   |  | 
		
		  | Newbie
 
 
 Joined: 14 Apr 2005Posts: 4
 
 
 | 
			  
				| thanks very much!!! for your Answers, the problem:
 the programs that get and put messages in the queue are close developments and some messages that are put in this queue must be puting in another queue, in other chanel, manage that works with another queue.
 
 I am investigate but......
 
 some idea??
 
 Regards
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | jefflowrey | 
			  
				|  Posted: Thu Apr 14, 2005 5:46 am    Post subject: |   |  | 
		
		  | Grand Poobah
 
 
 Joined: 16 Oct 2002Posts: 19981
 
 
 | 
			  
				| This is application logic.  You need to either put another queue in front, with a program that will filter messages onto one queue or another (or both queues using a distribution list or something), or the "first" process needs to send the necessary messages to the next queue. 
 You can't handle this in your MQ configuration.
 _________________
 I am *not* the model of the modern major general.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | sapi | 
			  
				|  Posted: Thu Apr 14, 2005 6:21 am    Post subject: |   |  | 
		
		  | Newbie
 
 
 Joined: 14 Apr 2005Posts: 4
 
 
 | 
			  
				| Hi jefflowrey, The logica is:
 One proces put messages into a queue.(Process xx)
 Another proces read from this (Process yy)
 The process xx must not put some messages into the queue. it has a bug. The process xx should put the message in another queue.
 My program must do a bridge (queue1 and queue2)
 
 But  Process yy read and output the message
 
 I´ve contact wtih the developer of the process yy to ask how manage the queue
 
 ..............
 .........
 regards
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | jefflowrey | 
			  
				|  Posted: Thu Apr 14, 2005 6:24 am    Post subject: |   |  | 
		
		  | Grand Poobah
 
 
 Joined: 16 Oct 2002Posts: 19981
 
 
 | 
			  
				| Okay. 
 So this is a very simple filter.  Change the queue that XX writes to, to ZZ for instance.
 
 Write a program that reads ZZ.  If the message should be kept, then write it to YY.  If the message should not be kept, then don't write it (or better yet, write it to XX.ERROR).
 _________________
 I am *not* the model of the modern major general.
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  | sapi | 
			  
				|  Posted: Thu Apr 14, 2005 6:56 am    Post subject: |   |  | 
		
		  | Newbie
 
 
 Joined: 14 Apr 2005Posts: 4
 
 
 | 
			  
				| ok, fantastic idea!!!!!!!!!!!, and very simple 
 i´m going to think about it.
 
 bye
 |  | 
		
		  | Back to top |  | 
		
		  |  | 
		
		  |  |