ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Open a queue for two diferents process

Post new topic  Reply to topic
 Open a queue for two diferents process « View previous topic :: View next topic » 
Author Message
sapi
PostPosted: Thu Apr 14, 2005 2:12 am    Post subject: Open a queue for two diferents process Reply with quote

Newbie

Joined: 14 Apr 2005
Posts: 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
View user's profile Send private message
cameron
PostPosted: Thu Apr 14, 2005 2:27 am    Post subject: MQSeries Java / JMS Reply with quote

Newbie

Joined: 06 Feb 2005
Posts: 7
Location: Livingston, UK

Why not use publish/subscribe?
_________________
Sun Certified Programmer for Java 2 Platform 1.4
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Thu Apr 14, 2005 5:08 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 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
View user's profile Send private message
sapi
PostPosted: Thu Apr 14, 2005 5:25 am    Post subject: Reply with quote

Newbie

Joined: 14 Apr 2005
Posts: 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
View user's profile Send private message
jefflowrey
PostPosted: Thu Apr 14, 2005 5:46 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 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
View user's profile Send private message
sapi
PostPosted: Thu Apr 14, 2005 6:21 am    Post subject: Reply with quote

Newbie

Joined: 14 Apr 2005
Posts: 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
View user's profile Send private message
jefflowrey
PostPosted: Thu Apr 14, 2005 6:24 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 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
View user's profile Send private message
sapi
PostPosted: Thu Apr 14, 2005 6:56 am    Post subject: Reply with quote

Newbie

Joined: 14 Apr 2005
Posts: 4

ok, fantastic idea!!!!!!!!!!!, and very simple

i´m going to think about it.

bye
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Open a queue for two diferents process
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.