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 » Using PUB SUB

Post new topic  Reply to topic
 Using PUB SUB « View previous topic :: View next topic » 
Author Message
broker_new
PostPosted: Sat Feb 24, 2007 4:28 pm    Post subject: Using PUB SUB Reply with quote

Yatiri

Joined: 30 Nov 2006
Posts: 614
Location: Washington DC

Hi ,

1)
I have coded this commands in Publish flow

CREATE PROCEDURE CopyEntireMessage() BEGIN
SET OutputRoot.MQRFH2.psc.Topic='Topic1';
SET OutputRoot.MQRFH2.psc.Command ='Publish';

END;

2)
I have coded this commands in Subscriber flow

CREATE PROCEDURE CopyEntireMessage() BEGIN

SET OutputRoot.MQMD.Format = 'MQRFH2';
SET OutputRoot.MQRFH2.psc.Command = 'RegSub';
SET OutputRoot.MQRFH2.psc.Topic = InputRoot.XML.(XML.tag)Sub.Topic;
SET OutputRoot.MQRFH2.psc.QMgrName = InputRoot.XML.(XML.tag)Sub.QmgrName;
SET OutputRoot.MQRFH2.psc.QName = InputRoot.XML.(XML.tag)Sub.QName;
SET OutputRoot =InputRoot;
END;

For Subscribing the QueueManager and Queue i put the message in the input queue of Subscriber Queue as follows

<Sub><Topic>Topic1</Topic><QmgrName>BRKRQM</QmgrName><QName>SUB.TWO</QName></Sub>


I was able to subscribe the Queue to the Topic.

When iam putting the message in the Input Queue of Publish flow as

<Body><Name>India</Name></Body>

Iam getting the message in the subscribed queue but there is no data in it..
Can anyone tell me what is the exact probelm in it.
_________________
IBM ->Let's build a smarter planet
Back to top
View user's profile Send private message
vennela
PostPosted: Sun Feb 25, 2007 5:04 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

That's because in your publish flow, you have written code to publish the message but haven't written anything for the body
Back to top
View user's profile Send private message Send e-mail Visit poster's website
broker_new
PostPosted: Sun Feb 25, 2007 6:20 am    Post subject: Reply with quote

Yatiri

Joined: 30 Nov 2006
Posts: 614
Location: Washington DC

Thanks,

I have forgotten to mention

Set OutputRoot .XML = InputRoot.XML;

in the publish flow.
_________________
IBM ->Let's build a smarter planet
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Sun Feb 25, 2007 8:18 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Please don't use the XML domain.

Please make sure that your Publication message has a properly formatted message body before you reach the Publication node.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
jsware
PostPosted: Sun Feb 25, 2007 2:20 pm    Post subject: Reply with quote

Chevalier

Joined: 17 May 2001
Posts: 455

jefflowrey wrote:
Please don't use the XML domain.

A truncated statement like this invites unhelpful "why not" messages. Perhaps it would be slightly more helpful to add the reason - I assume your advice would be to use the XMLNS or XMLNSC instead as the XML domain has been deprecated - however, I don't know what your actual advice would be
_________________
Regards
John
The pain of low quaility far outlasts the joy of low price.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Sun Feb 25, 2007 5:35 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981



Yes, the XML domain is deprecated. It should not be used for any new development, and any significant change in an existing flow should migrate to the XMLNS or XMLNSC parser.

There's an excellent post by Steve Hanson, somewhere, about how to choose between XMLNS and XMLNSC. It mostly quotes a section from the manual, so the Info Center should likewise be as informative.
_________________
I am *not* the model of the modern major general.
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 » Using PUB SUB
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.