Posted: Wed Dec 20, 2006 12:25 am Post subject: Implementing Pub-Sub only in broker
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
We have in our environment scenarios where one application sents messages with MQ base classes. In broker we parse XML message and we route message to target queue or queues based on one of the XML tag. As you can see our routing decisions is hard coded in our flow. We would like to change it.
Now we decided to use publish-subscribe but WITHOUT changing our source and target applications.
These applications are written wit MQ base classes. There is no publish-subscribe scenario implemented in these applications.
We implemented test flows
MQ Input -> Compute to prepare Pub message -> Publication
Testing this flow I can see that target application read message listed bellow:
Posted: Wed Dec 20, 2006 7:37 am Post subject: Re: Implementing Pub-Sub only in broker
Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
marcin.kasinski wrote:
Question is how we can delete this RFH header from message and send to target applications only business data starts from "<REQUEST>".
Assuming no change to existing applications:
You can write an application which subscribes to the topic on behalf of the existing application. This new application reads the message when published, strips off the RFH2 and writes the remaining message body to a dedicated queue where the existing application is waiting for it.
This does of course rather negate the benefits of pub/sub, and add some complexity to your installation.
IMHO A better solution would be to modify the existing applications to be proper subscribers and use the system as designed. But that's just me. _________________ Honesty is the best policy.
Insanity is the best defence.
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