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 » WebSphere Message Broker (ACE) Support » Implementing Pub-Sub only in broker

Post new topic  Reply to topic
 Implementing Pub-Sub only in broker « View previous topic :: View next topic » 
Author Message
marcin.kasinski
PostPosted: Wed Dec 20, 2006 12:25 am    Post subject: Implementing Pub-Sub only in broker Reply with quote

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:

RFH _ _ _<psc><Command>Publish</Command><PubOpt>RetainPub</PubOpt><Topic>Complaint/Order/MyOrder2</Topic></psc> _<mcd><Msd>xml</Msd></mcd> <REQUEST><DATA>AAA</DATA></REQUEST>


But our target application expect t see message :

<REQUEST><DATA>AAA</DATA></REQUEST>



Question is how we can delete this RFH header from message and send to target applications only business data starts from "<REQUEST>".


I hope it explains our problem.


Best Regards

Marcin
Back to top
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Wed Dec 20, 2006 6:05 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

By searching here for other cases where this same question has been asked and answered.

And being prepared not to like the answers.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Dec 20, 2006 7:37 am    Post subject: Re: Implementing Pub-Sub only in broker Reply with quote

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.
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 » WebSphere Message Broker (ACE) Support » Implementing Pub-Sub only in broker
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.