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 » File Handling

Post new topic  Reply to topic
 File Handling « View previous topic :: View next topic » 
Author Message
sksharma
PostPosted: Tue Feb 09, 2010 6:50 am    Post subject: File Handling Reply with quote

Apprentice

Joined: 18 Apr 2008
Posts: 28

Hi

i have a requirement as below, please help me with the ways to achieve these

1. read the messages from the queue at different time frames (timer node sceduled to run 7 times daily), and create the delimited file(File output node).
Every time the scheduled flow runs the back of the file created by previous run should be taken and new records should be appended into the file (so for 7 runs we should have 6 back up files and one complete file). Can we create the file in append mode or open an existing file to write records into?
Pls Note: we are not suppose to use another Queue for backup/storage purpose.

2. the output file (containing the records from all the 7 runs) will be picked by a third party some time between the time frames say during the 5PM will we be able to stop the scheduled flow at this time, since we dont want the messages to drop in while the third party is processing the file.

I got suggestions to to implement this in Java, but i hope there should be ways to do this in MB flows aswell,

Please help me with the solution to this.

regards
Sk
Back to top
View user's profile Send private message
zpat
PostPosted: Tue Feb 09, 2010 7:09 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Don't use Java to directly access files in WMB through lack of knowledge or unwillingness to read the documentation.

Fileoutput nodes can append records. You have to decide when to finalise the file in the message flow.

Sometimes handling message to file can be confusing to develop (the first time at least), but using compute node propagates, mqget nodes and fileoutput properly it can be done.

Then you will have a properly written WMB message flow and not some sort of frankenstein's monster!
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 » File Handling
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.