|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Publication messages problem |
« View previous topic :: View next topic » |
Author |
Message
|
kiran26 |
Posted: Thu Jul 11, 2002 1:20 pm Post subject: Publication messages problem |
|
|
Acolyte
Joined: 06 Feb 2002 Posts: 69
|
Hi all,
I have registered a topic to a broker and i am publishing messages . I am able to get the published messages to the registered queue under a topic . But when i look at the published message i am getting MQRFH2 data details with the message.I don't what a the message to be added with the MQRFH2 details.How to deal with this,
following esql i am using in my compute node before publishing the messages,
SET OutputRoot = InputRoot;
-- Enter SQL below this line. SQL above this line might be regenerated, causing any modifications to be lost.
SET OutputRoot.MQMD.Format ='MQRFH2';
SET OutputRoot.MQRFH2.psc.Command ='Publish';
SET OutputRoot.MQRFH2.psc.Topic = InputRoot.XML.(XML.tag)Pub.Topic;
and the message looks like
<?xml version="1.0"?>
<Pub>
<Topic>GI/00001/FPUMSTR/UPDATE</Topic>
<Header>
<FileName>FPUMSTR</FileName>
<Library>UZSANJAN</Library>
<Member>FPUMSTR</Member>
<ClientId>xxxx</ClientId>
<TriggerTime>AFTER</TriggerTime>
<TriggerEvent>DELETE</TriggerEvent>
<Date>20010828</Date>
<Time>172838</Time>
</Header>
<Data>
<SUBSRV>00020</SUBSRV>
<ANCBAL>8521478.96</ANCBAL>
<ANCICH>8521479.89</ANCICH>
<ANCYCH>6541239.87</ANCYCH>
</Data>
</Pub>
FROM HERE I AM GETTING UN WANTED DATA
RFH t " µ ¸ L
<psc>
<Command>Publish</Command>
<Topic>GI/00001/FPUMSTR/UPDATE</Topic>
</psc>
If some one can help me on this it will be a great help.
thanks
vishnu |
|
Back to top |
|
 |
JLRowe |
Posted: Fri Jul 12, 2002 3:28 am Post subject: |
|
|
 Yatiri
Joined: 25 May 2002 Posts: 664 Location: South East London
|
If you publish with an RFH2 header, you will always get it in the published messages. You can publish without an RFH2 header by specifying the topic in the MQInput node, however these publications are only published locally and there is no way for you subscribing applications to determine what topic the message relates to.
I would suggest the best approach is to code your receiving applications to cope with the RFH2 header, publishing messages without an RFH2 header may limit your future pub/sub options. |
|
Back to top |
|
 |
kiran26 |
Posted: Fri Jul 12, 2002 7:20 am Post subject: Publication messages problem |
|
|
Acolyte
Joined: 06 Feb 2002 Posts: 69
|
Hi Rowe,
Thanks very much for your reply.Can u guide me how to code in java and what API to use to read a published messages with MQRFH2 header.My message looks like ,
<?xml version="1.0"?>
<Pub>
<Topic>GI/00001/FPUMSTR/UPDATE</Topic>
<Header>
<FileName>FPUMSTR</FileName>
<Library>UZSANJAN</Library>
<Member>FPUMSTR</Member>
<ClientId>xxxx</ClientId>
<TriggerTime>AFTER</TriggerTime>
<TriggerEvent>DELETE</TriggerEvent>
<Date>20010828</Date>
<Time>172838</Time>
</Header>
<Data>
<SUBSRV>00020</SUBSRV>
<ANCBAL>8521478.96</ANCBAL>
<ANCICH>8521479.89</ANCICH>
<ANCYCH>6541239.87</ANCYCH>
</Data>
</Pub>
FROM HERE I AM GETTING UN WANTED DATA
RFH t " µ ¸ L
<psc>
<Command>Publish</Command>
<Topic>GI/00001/FPUMSTR/UPDATE</Topic>
</psc>
Is the above message which i see in the queue is in correct format ,to be read by my java application. If so pl let me know what API i should use to read the above message.
Thanks
vishnu |
|
Back to top |
|
 |
JLRowe |
Posted: Fri Jul 12, 2002 8:41 am Post subject: |
|
|
 Yatiri
Joined: 25 May 2002 Posts: 664 Location: South East London
|
The structure of the RFH2 header is documented in the programming guide. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|