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 » Event(FlowStart) is coming twice in event monitoring

Post new topic  Reply to topic
 Event(FlowStart) is coming twice in event monitoring « View previous topic :: View next topic » 
Author Message
trinath
PostPosted: Wed Feb 25, 2015 3:02 am    Post subject: Event(FlowStart) is coming twice in event monitoring Reply with quote

Apprentice

Joined: 02 Jun 2014
Posts: 34

Hi all,

I created a event monitoring message flow.
I added a events like FlowStart, FlowRollback and FlowEnd in the monitoring tab of the input node.
When I send a wrong message to input queue events are coming but flowstart event is coming twice.


Input File :
Code:
<?xml version="1.0" encoding="UTF-8"?>
<TemperatureConversion>
 <Input>
  <Unit>Celsius</Unit>
  <Degree>28.5</Degree>
 </Input>
 <Output>
  <Unit></Unit>
  <Degree></Degree>
 </Output>
</TemperatureConversion>



FlowStart event :


Code:
<wmb:event xmlns:wmb="http://www.ibm.com/xmlns/prod/websphere/messagebroker/6.1.0/monitoring/event">
 <wmb:eventPointData>
  <wmb:eventData wmb:productVersion="8004" wmb:eventSchemaVersion="6.1.0.3" wmb:eventSourceAddress="QIN.transaction.Start">
   <wmb:eventIdentity wmb:eventName="FlowStart"/>
   <wmb:eventSequence wmb:creationTime="2015-02-25T10:46:36.889Z" wmb:counter="1"/>
   <wmb:eventCorrelation wmb:localTransactionId="ebd8933b-28c6-46c3-b93e-387be8a5033d-1" wmb:parentTransactionId="" wmb:globalTransactionId=""/>
  </wmb:eventData>
  <wmb:messageFlowData>
   <wmb:broker wmb:name="BRK7" wmb:UUID="b29c51b9-ef3d-414f-a79c-966443b5e434"/>
   <wmb:executionGroup wmb:name="EG7" wmb:UUID="a4f417aa-4701-0000-0080-8f05516bb546"/>
   <wmb:messageFlow wmb:uniqueFlowName="BRK7.EG7.MonitoringEvents_MF" wmb:name="MonitoringEvents_MF" wmb:UUID="2c5057c0-4b01-0000-0080-c5b5eadbeab5" wmb:threadId="4484"/>
   <wmb:node wmb:nodeLabel="QIN" wmb:nodeType="ComIbmMQInputNode" wmb:detail="QIN"/>
  </wmb:messageFlowData>
 </wmb:eventPointData>
 <wmb:applicationData xmlns="">
  <wmb:simpleContent wmb:name="MsgId" wmb:value="414d512042524b37514d475220202020ba630c5320003803" wmb:dataType="hexBinary"/>
 </wmb:applicationData>
 <wmb:bitstreamData>
  <wmb:bitstream wmb:encoding="base64Binary">TUQgIAIAAAAAAAAACAAAAP////8AAAAAIgIAALUBAAAgICAgICAgIAAAAAAA
AAAAQU1RIEJSSzdRTUdSICAgILpjDFMgADgDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAgICAgICAgI
CAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEJSSzdRTUdSICAgICAgICAgICAgICAgICAgICAg
ICAgICAgICAgICAgICAgICAgIHRyaW5hZGggICAgIBYBBRUAAABAxckX8bnKo6bYVfXxAwAAAAAAAAAAAAALICA
gICAgICAgICAgICAgICAgICAgICAgICAgICAgICALAAAAb2Z0d2FyZXNcUmZodXRpbFxyZmh1dGlsLmV4ZTIwMT
ZW5jb2Rpbmc9IlVURi04Ij8+DQo8VGVtcGVyYXR1cmVDb252ZXJzaW9uPg0KICA8SW5wdXQ+DQogIDxVbml0P
kNlbHNpdXM8L1VuaXQ+DQogIDxEZWdyZWU+MjguNTwvRGVncmVlPg0KICA8L0lucHV0Pg0KICA8T3V0cHV0Pg0KIC
VW5pdD48L1VuaXQ+DQogIDxEZWdyZWU+PC9EZWdyZWU+DQogIDwvT3V0cHV0Pg0KPC9UZW1wZXJhdHVyZUNvb
nZlcnNpb24+</wmb:bitstream>
 </wmb:bitstreamData>
</wmb:event>


Another flowstart event :


Code:
<wmb:event xmlns:wmb="http://www.ibm.com/xmlns/prod/websphere/messagebroker/6.1.0/monitoring/event">
 <wmb:eventPointData>
  <wmb:eventData wmb:productVersion="8004" wmb:eventSchemaVersion="6.1.0.3" wmb:eventSourceAddress="QIN.transaction.Start">
   <wmb:eventIdentity wmb:eventName="FlowStart"/>
   <wmb:eventSequence wmb:creationTime="2015-02-25T10:47:00.048Z" wmb:counter="1"/>
   <wmb:eventCorrelation wmb:localTransactionId="ebd8933b-28c6-46c3-b93e-387be8a5033d-2" wmb:parentTransactionId="" wmb:globalTransactionId=""/>
  </wmb:eventData>
  <wmb:messageFlowData>
   <wmb:broker wmb:name="BRK7" wmb:UUID="b29c51b9-ef3d-414f-a79c-966443b5e434"/>
   <wmb:executionGroup wmb:name="EG7" wmb:UUID="a4f417aa-4701-0000-0080-8f05516bb546"/>
   <wmb:messageFlow wmb:uniqueFlowName="BRK7.EG7.MonitoringEvents_MF" wmb:name="MonitoringEvents_MF" wmb:UUID="2c5057c0-4b01-0000-0080-c5b5eadbeab5" wmb:threadId="4484"/>
   <wmb:node wmb:nodeLabel="QIN" wmb:nodeType="ComIbmMQInputNode" wmb:detail="QIN"/>
  </wmb:messageFlowData>
 </wmb:eventPointData>
 <wmb:applicationData xmlns="">
  <wmb:simpleContent wmb:name="MsgId" wmb:value="414d512042524b37514d475220202020ba630c5320003803" wmb:dataType="hexBinary"/>
 </wmb:applicationData>
 <wmb:bitstreamData>
  <wmb:bitstream wmb:encoding="base64Binary">TUQgIAIAAAAAAAAACAAAAP////8AAAAAIgIAALUBAAAgICAgICAg
IAAAAAAAAAAAQU1RIEJSSzdRTUdSICAgILpjDFMgADgDAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAACAgICAgIC
AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIEJSSzdRTUdSICAgICAgICAgICAgICAgICAgICAgICA
gICAgICAgICAgICAgICAgIHRyaW5hZGggICAgIBYBBRUAAABAxckX8bnKo6bYVfXxAwAAAAAAAAAAAAALICAgICAgICA
gICAgICAgICAgICAgICAgICAgICAgICALAAAAb2Z0d2FyZXNcUmZodXRpbFxyZmh1dGlsLmV4ZTIwMTUwMjI1MTA0NjM2
NzQgICAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAA/////zw/eG1sIHZlcnNpb249IjEuMCIgZW5
jb2Rpbmc9IlVURi04Ij8+DQo8VGVtcGVyYXR1cmVDb252ZXJzaW9uPg0KICA8SW5wdXQ+DQogIDxVbml0PkNlbHNpdXM8
L1VuaXQ+DQogIDxEZWdyZWU+MjguNTwvRGVncmVlPg0KICA8L0lucHV0Pg0KICA8T3V0cHV0Pg0KICA8VW5pdD48L1V
uaXQ+DQogIDxEZWdyZWU+PC9EZWdyZWU+DQogIDwvT3V0cHV0Pg0KPC9UZW1wZXJhdHVyZUNvbnZlcnNpb24+</wmb:bitstream>
 </wmb:bitstreamData>
</wmb:event>



Please give me the solution and why this event is coming twice


Thanks.........
Back to top
View user's profile Send private message
Esa
PostPosted: Wed Feb 25, 2015 3:43 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

Your flow backs out the message. That is why the flow starts twice.
You could add MQMD.BackoutCount in the event data so that the application that processes the events can ignore the second event.
Back to top
View user's profile Send private message
trinath
PostPosted: Wed Feb 25, 2015 4:11 am    Post subject: Reply with quote

Apprentice

Joined: 02 Jun 2014
Posts: 34

Hi Esa,
Thanks for responding,

I added the $Root/MQMD/BackoutCount for the flow start event and then deployed.
It is showing only two events i.e. flowrollback and flowend.
Transactionstart event is not coming...



Thanks.......
Back to top
View user's profile Send private message
Esa
PostPosted: Wed Feb 25, 2015 4:20 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

OK, sorry.

I'm a bit rusty after several months break.

TransactionStart event is emitted before the message is parsed at all, so you cannot in fact add any message data in it. I think that is why you don't get the start events now, there is an exception while emitting them.
Back to top
View user's profile Send private message
Esa
PostPosted: Wed Feb 25, 2015 4:37 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

Transaction Start event is in fact not very useful. In my opinion you only need it if you want to calculate the elapsed time for individual messages.
If you need to capture the message payload, you can do it with Transaction End and Transaction Rollback as well.
Back to top
View user's profile Send private message
trinath
PostPosted: Wed Feb 25, 2015 5:07 am    Post subject: Reply with quote

Apprentice

Joined: 02 Jun 2014
Posts: 34

Hi Esa,

Thanks for response,

Yes I want to capture the message but I want the three events in the output and I added the message data to the events but I didn't get the Transaction start event.



Thanks........
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 » Event(FlowStart) is coming twice in event monitoring
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.