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 » Audit Logging for multiple message flows and instances

Post new topic  Reply to topic
 Audit Logging for multiple message flows and instances « View previous topic :: View next topic » 
Author Message
alexyu
PostPosted: Thu Feb 02, 2012 6:00 pm    Post subject: Audit Logging for multiple message flows and instances Reply with quote

Newbie

Joined: 27 Jul 2011
Posts: 2

I have requirement for auditing file processing. the message flows we have as followings:
flow 1: read TDS file and separate it into multiple chunks by about 50 KB, send them to MQ output. (only one instance)
flow 2: read chunks from MQ input and validate every line and then send the valid records to another MQ for further process. (only one instance)
flow 3: read valid records from MQ and then save them into DB (20 instances)

We are requested to logging following audit information like Processing time: [end-start = total]. the "start" is the time start to read the file. and the "end" is the time of latest instance of flow 3 finished saving data to database.

the difficulty for us is to figure out the latest completion time among the instance for last flow.

Any thoughts?

Thanks a lot!
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Fri Feb 03, 2012 5:38 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Store start, stop and latency times in LocalEnvironment. Then at the end of your flow, use log4j to write to a log.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
smdavies99
PostPosted: Fri Feb 03, 2012 5:54 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Have you considered using the finctionality built into Broker?

Specifically,

FlowMonitoring

?
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Feb 03, 2012 6:47 am    Post subject: Re: Audit Logging for multiple message flows and instances Reply with quote

Grand High Poobah

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

alexyu wrote:
Any thoughts?


Use the inbuilt flow monitoring to generate the start & end times. These can then processed asyncronously and reported in any way you fancy (log4j, database, csv file, etc, etc).

Using this you don't need to amend the code if your reporting requirements change in future.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
alexyu
PostPosted: Sun Feb 05, 2012 11:25 pm    Post subject: Reply with quote

Newbie

Joined: 27 Jul 2011
Posts: 2

Thank you everyone.
I planed to use flow monitor.
but the file is separated into several blocks, it will be processed in parallel at last flow. I plan to send out control message for further counting, but is there a built-in MB way to collect messages with dynamic size? is it possible for Collector node?
Back to top
View user's profile Send private message
Vitor
PostPosted: Mon Feb 06, 2012 6:09 am    Post subject: Reply with quote

Grand High Poobah

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

alexyu wrote:
is there a built-in MB way to collect messages with dynamic size?




alexyu wrote:
is it possible for Collector node?




I don't see why you're using control messages
_________________
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 » Audit Logging for multiple message flows and instances
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.