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 » MQRFH2 mcd folder for Accounting Statistics and Resource

Post new topic  Reply to topic
 MQRFH2 mcd folder for Accounting Statistics and Resource « View previous topic :: View next topic » 
Author Message
ghoshly
PostPosted: Thu Sep 14, 2017 2:17 pm    Post subject: MQRFH2 mcd folder for Accounting Statistics and Resource Reply with quote

Partisan

Joined: 10 Jan 2008
Posts: 325

I am enabling Message Flow statistics (using - mqsichangeflowstats ) and Resource Statistics (using - mqsichangeresourcestats ) in IIB v10.0.0.7 environment along with MQ v8.0.0.4

In case of resource statistics message, I do not see MQRFH2 folder, so able to parse XML message using XMLNSC parser. However in WMQIStatisticsAccounting message I see MQRFH2 folder and within mcd 'xml' is mentioned; so I need to parse using XML parser instead. I see mqps.Top with the topic which is shown as unrecognized folder in RFHUtilc.

Is there a way we can get MQRFH2.mcd as 'XMLNSC' for message flow accounting message?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Sep 15, 2017 3:18 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You can't use the XML parser to handle XML data that has namespaces.

You shouldn't ever use the XML parser...

If you need to always have an MQRFH2, then you can configure the queue to always put one there.

If you need to never see an MQRFH2, you can configure the queue to always use properties.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
ghoshly
PostPosted: Fri Sep 15, 2017 5:34 am    Post subject: Reply with quote

Partisan

Joined: 10 Jan 2008
Posts: 325

Thanks Jeff for your reply.

When both the subscriptions is made in similar way into a same queue, how one type is adding MQRFH2 while other is not; that was my question.

I still need to learn about the queue configuration you suggested. Any link would be highly appreciated.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Sep 15, 2017 5:47 am    Post subject: Re: MQRFH2 mcd folder for Accounting Statistics and Resource Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

ghoshly wrote:
In case of resource statistics message, I do not see MQRFH2 folder, so able to parse XML message using XMLNSC parser. However in WMQIStatisticsAccounting message I see MQRFH2 folder and within mcd 'xml' is mentioned; so I need to parse using XML parser instead.


No you don't. Think of this more as the "ContentType" in an HTTP header; it's indicating the use of XML rather than another message payload.


ghoshly wrote:
Is there a way we can get MQRFH2.mcd as 'XMLNSC' for message flow accounting message?


No, and you don't need to. Parse the message with XMLNSC (if you feed the message to an MQInput node, that's what it will use anyway).

Note that, despite the comments of my most worthy associate, any message properties will end up in the message tree as an RFH2 header; that's just how IIB represents them.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
ghoshly
PostPosted: Fri Sep 15, 2017 10:42 am    Post subject: XPATH evaluation. Reply with quote

Partisan

Joined: 10 Jan 2008
Posts: 325

Hello Vitor,

I am subscribing the Statistics message in a MQ queue, and using XMLNSC parser in the MQ Input node for parsing. However as we can see MQRFH2 header is populated with mcd.Msd, whatever domain mentioned is used as parser (overwrites whatever is mentioned in MQ input node)

XPATH mentioned below in Route node works, however if I use XMLNSC instead, wouldn't work.
Code:
$Root/XML/WMQIStatisticsAccounting/@RecordType="SnapShot"


XPATH mentioned below in the same Route node also works for Resource Statistics message

Code:
local-name($Root/XMLNSC/* )="ResourceStatistics"
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Sep 15, 2017 10:57 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Weird. Can't say I've tried it in v10, but this:

Code:

$Root/XMLNSC/WMQIStatisticsAccounting and $Root/XMLNSC/WMQIStatisticsAccounting/@RecordType = 'SnapShot'


works fine for me in v9.0.0.5
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Sep 15, 2017 10:58 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

I use this:

Code:

$Root/XMLNSC/ResourceStatistics


for resource statistics
_________________
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 » MQRFH2 mcd folder for Accounting Statistics and Resource
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.