Posted: Wed Mar 24, 2010 4:32 am Post subject: Retrieving a File
Apprentice
Joined: 18 Feb 2010 Posts: 40
I have a requirement in which I have to retrieve a file in a Directory.
Directory name has to be set Dynamically.
How is it possible in a Message Broker?
As the Broker has only File Input Node to retrieve a file where Directory name is static.
My flow reads a HTTP request and pull the file from the directory and push it to a Queue.
Is there anything I can play with compute node to get a file?
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
File Input node properties are static.
use Java Compute node to read the file
I'm not getting any other logic for this.. _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
In addition to the JCN node option, you could also explore the below.
1. Every time the directory name changes, amend the properties of the File Input node within the bar file and then re-deploy this bar file.
2. Create batch scripts for your OS OR any MFT product out there (WMQ FTE is one option by IBM), to read the dynamic directories and then move it to a static staging location which can be accessed by the FileInput node on your broker server.
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