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 » Need some help developing a log to File flow

Post new topic  Reply to topic
 Need some help developing a log to File flow « View previous topic :: View next topic » 
Author Message
jrsetters
PostPosted: Thu Aug 25, 2011 5:27 am    Post subject: Need some help developing a log to File flow Reply with quote

Acolyte

Joined: 24 Aug 2011
Posts: 72
Location: Cincinnati, OH

We are implementing MQ in a healthcare environment for HL7 transactions. The transition has been challenging for the interface analysts here because we all have experience working with native HL7 engines and are learning development in MQ from the ground up.

We've developed a pretty good model flow for the HL7 transactions with a lot of help from consultants, but one feature of our current environment we are attempting to reproduce are text file logs of the message transactions. In our flow this is an important troubleshooting tool because it allows us to access messages at the point where failure was noticed without having to debug inside of Message Broker. It also allows easy access to a 3rd party HL7 transaction parser.

My flow works like this:

I capture the HL7 message from the sending system using the Healthcare HL7 Input node. From there I process it, validate, and remap the data as required by the receiving system and then send it back out. During this process I capture both the raw incoming message and the ack/nak from the receiving system in a journal queue.

I then created a simple logging flow that dumps the contents of the journal queue to a FileOut node. The problem with this method is that the FileOut node has a Close terminal that has to be triggered before MQ will write our file to our desired destination (it holds it in a temporary folder until it closes). This is mostly ok because we want to have many messages in each log file and our server team will run an automated process to retrieve and archive the files nightly. But I need to determine how to reliably trigger the Close terminal.

Right now I am attempting to use a TimeoutNotification node that is set to auto archive and update the local file every several hours. But this appears to only work the first time, after which it just appends to the temporary file forever.

Does anyone have a good flow model for this type of activity? Ideally we'd like the FileOut to close at a set time every day. But if that is impossible then it is ok to have it triggered in intervals.

I am using toolkit 7.0.0.2 and MQ 7.0.1.5

Thanks in advance
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Aug 25, 2011 5:37 am    Post subject: Re: Need some help developing a log to File flow Reply with quote

Jedi Knight

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

jrsetters wrote:
one feature of our current environment we are attempting to reproduce are text file logs of the message transactions.
You'll need to encrypt your data in order to pass an audit. Don't leave unmasked healthcare (ePHI) data laying around.

jrsetters wrote:
without having to debug inside of Message Broker.
Trace nodes are also a nice way to produce debug output independent of the interactive debugger. Log4j is also a good choice.

jrsetters wrote:
I need to determine how to reliably trigger the Close terminal. ... Ideally we'd like the FileOut to close at a set time every day.


Sounds like a job for Underdog ... 'er ... CRON !
_________________
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
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Need some help developing a log to File flow
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.