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 » MB PUB MQ SUB

Post new topic  Reply to topic
 MB PUB MQ SUB « View previous topic :: View next topic » 
Author Message
mbtech
PostPosted: Wed Jan 23, 2013 3:01 am    Post subject: MB PUB MQ SUB Reply with quote

Apprentice

Joined: 18 Jul 2012
Posts: 36

HI Iam trying a flow wherein MB 7 acts as PUB and MQ 7 acts as SUB.In MB i configured like MQINPUT->COMPUTE->PUBLICATION.In COMPUTE iam coding like this
Code:
SET OutputRoot.MQRFH2.psc.Command = 'Publish';
      SET OutputRoot.MQRFH2.psc.Topic = InputRoot.XML.Sample.Topic;
I choose SPORTS and STOCKS as TOPICS.I created 2 TOPICS in MQ 7 and 2 SUBSCRIBERS in MQ 7.If i publish a post in MQ7 directly its reaching subscription Queues whereas if iam using broker publication node the message is diappearing at the end leaving no clues.When i send a message to MQINPUT it has to be published using a compute node and get received to the correct subscribers in MQ. Have i missed anything in this process.
Back to top
View user's profile Send private message
Esa
PostPosted: Wed Jan 23, 2013 3:08 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

Try
Code:
SET OutputRoot.Properties.Topic = InputRoot.XML.Sample.Topic;
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Jan 23, 2013 3:32 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

Is there a good reason why you are using InputRoot.XML? Did you know that using the XML domain is not good practice. XMLNSC is the only XML domain that you should be using for new message flows.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Jan 23, 2013 3:58 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Also what is the content of your sample topic?
I hope some topic string in the form of :
Code:
topic://topicroot/node/node/SPORTS

And remember case matters.

If you created a TOPIC object, you could just use the MQOutput node an put the message to the topic...


_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
mbtech
PostPosted: Wed Jan 23, 2013 4:20 am    Post subject: Reply with quote

Apprentice

Joined: 18 Jul 2012
Posts: 36

Hi Thanks a LOTT.
My Sample message is like this
Code:
<Sample><Topic>Topic1</Topic><Content>Sports</Content><News>cricket score is 200/2</News></Sample>
<Sample><Topic>Topic2</Topic><Content>Stocks</Content><News>Stocks of Retail up by 2%</News></Sample>

Here Topic1 is one i created as a topic in MQ7 for SPORTS & Topic2 for Stocks
Please letme know if iam missing anything
Back to top
View user's profile Send private message
mbtech
PostPosted: Wed Jan 23, 2013 4:32 am    Post subject: Reply with quote

Apprentice

Joined: 18 Jul 2012
Posts: 36

Now iam getting an exception like this
Code:
RecoverableException
   File:CHARACTER:F:\build\S700_P\src\DataFlowEngine\ImbDataFlowNode.cpp
   Line:INTEGER:1073
   Function:CHARACTER:ImbDataFlowNode::createExceptionList
   Type:CHARACTER:ComIbmMQInputNode
   Name:CHARACTER:PUBSUB_TEMSGFLOW#FCMComposite_1_1
   Label:CHARACTER:PUBSUB_TEMSGFLOW.MQ Input
   Catalog:CHARACTER:BIPmsgs
   Severity:INTEGER:3
   Number:INTEGER:2230
   Text:CHARACTER:Node throwing exception
   ParserException
         File:CHARACTER:F:\build\S700_P\src\DataFlowEngine\ImbRootParser.cpp
         Line:INTEGER:281
         Function:CHARACTER:ImbRootParser::refreshBitStreamFromElements
         Type:CHARACTER:ComIbmMQInputNode
         Name:CHARACTER:PUBSUB_TEMSGFLOW#FCMComposite_1_1
         Label:CHARACTER:PUBSUB_TEMSGFLOW.MQ Input
         Catalog:CHARACTER:BIPmsgs
         Severity:INTEGER:2
         Number:INTEGER:6062
         Text:CHARACTER:Invalid parser sequence
         Insert
               Type:INTEGER:5
               Text:CHARACTER:MQHRF2
         Insert
               Type:INTEGER:5
               Text:CHARACTER:xmlnsc
Back to top
View user's profile Send private message
Senthamizh
PostPosted: Wed Jan 23, 2013 5:51 am    Post subject: Reply with quote

Apprentice

Joined: 21 Dec 2009
Posts: 47

I am still at the process of understanding the exception messages, but If my instinct says right, you have the following tree structure

Properties
MQMD
XMLNSC
MQRFH2

Try this
Code:
      DECLARE myref REFERENCE to OutputRoot.MQRFH2;
      DETACH myref ;
      ATTACH myref to OutputRoot.MQMD as NEXTSIBLING;
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 » MB PUB MQ 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.