Author |
Message
|
mbtech |
Posted: Wed Jan 23, 2013 3:01 am Post subject: MB PUB MQ SUB |
|
|
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 |
|
 |
Esa |
Posted: Wed Jan 23, 2013 3:08 am Post subject: |
|
|
 Grand Master
Joined: 22 May 2008 Posts: 1387 Location: Finland
|
Try
Code: |
SET OutputRoot.Properties.Topic = InputRoot.XML.Sample.Topic; |
|
|
Back to top |
|
 |
kimbert |
Posted: Wed Jan 23, 2013 3:32 am Post subject: |
|
|
 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 |
|
 |
fjb_saper |
Posted: Wed Jan 23, 2013 3:58 am Post subject: |
|
|
 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 |
|
 |
mbtech |
Posted: Wed Jan 23, 2013 4:20 am Post subject: |
|
|
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 |
|
 |
mbtech |
Posted: Wed Jan 23, 2013 4:32 am Post subject: |
|
|
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 |
|
 |
Senthamizh |
Posted: Wed Jan 23, 2013 5:51 am Post subject: |
|
|
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 |
|
 |
|