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 » Custom value pair in IIB 10 Monitorting events

Post new topic  Reply to topic
 Custom value pair in IIB 10 Monitorting events « View previous topic :: View next topic » 
Author Message
vjm1234
PostPosted: Tue Aug 15, 2017 8:49 pm    Post subject: Custom value pair in IIB 10 Monitorting events Reply with quote

Newbie

Joined: 13 Jun 2017
Posts: 8

IIB 10 version - wanted to know if there is a way to add custom values into monitoring events in addition to what we can fetch from message data (payload and RFH header). for example, like emitting source and target values which not part of any message payload..

<p:applicationDataQuery>
<p:simpleContent p:dataType="string" p:name="Source">
<p:valueQuery p:queryText="ABC"/>
</p:simpleContent>
<p:simpleContent p:dataType="string" p:name="Target">
<p:valueQuery p:queryText="XYZ"/>
</p:simpleContent>
</p:applicationDataQuery>
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Aug 16, 2017 4:45 am    Post subject: Reply with quote

Grand High Poobah

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

The content fields are just XPath so in theory you can include anything. Calculated values might get a bit sticky.

To be clear I've never tried this nor encountered a use case where I needed to. Perhaps you could go into a bit more detail about your requirement?

There may be an easier way to achieve what you need than the one you've chosen.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
vjm1234
PostPosted: Wed Aug 16, 2017 1:00 pm    Post subject: Reply with quote

Newbie

Joined: 13 Jun 2017
Posts: 8

Hi Vitor, thanks for reply..

our requirement is to emit events for each transactions like IN and OUT and we use them for auditing and Dashboard purpose. many integrations are old and already deployed, we are trying to add custom fields and values that needed directly into monitoring profile instead of making code changes.

Source flow sends out IN event with UniqueID
Targer Flow sends out OUT event with UniqeuID ( from source flow) and also add Target details.. this is needed when we have multiple targets for same source message.
Back to top
View user's profile Send private message
timber
PostPosted: Wed Aug 16, 2017 1:51 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1280

You can add custom fields. Just use standard XPath facilities to return a fixed value from the XPath expression.

Alternatively, write a simple message flow that subscribes to the events topic and adds any missing mandatory fields.
Back to top
View user's profile Send private message
abhi_thri
PostPosted: Thu Aug 17, 2017 12:45 am    Post subject: Reply with quote

Knight

Joined: 17 Jul 2017
Posts: 516
Location: UK

Hi...are you planning to do custom processing of the monitoring event or do you intend to use IBM's Record/Reply database? We had to use the Record database and thus our options were limited, there are some columns (KEY_FLD*) but they are not linked yet to the monitoring message. IBM had plans to make it available in future so that such fields can be used to store some useful info but don't think they managed to do it yet.

Thus we ended up using one of the existing columns (Parent transcation id) to store the key fields using a separator.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Aug 17, 2017 6:21 am    Post subject: Reply with quote

Grand High Poobah

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

timber wrote:
You can add custom fields. Just use standard XPath facilities to return a fixed value from the XPath expression.





That's what I was trying to articulate.
_________________
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 » Custom value pair in IIB 10 Monitorting events
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.