|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
multiple files read in FileRead node |
« View previous topic :: View next topic » |
Author |
Message
|
Shafikz |
Posted: Wed Jul 11, 2012 9:21 am Post subject: multiple files read in FileRead node |
|
|
Apprentice
Joined: 12 Apr 2012 Posts: 29
|
Hi all,
I am a new bie.
In My task, I want to read files in middle of message flow so I consider FileRead node.
it is working fine if there is only one file in source directory but whenever, there are more than one files it throws an exception.
is it possible that FileRead node can read multiple file from a directory?
if yes please provide some useful material.
or please suggest some alternate for the task..
thanks in advance.. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Jul 11, 2012 9:24 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
First off, troubleshoot the exception.
Second off, make sure you know what you want the node to do.
Surely you don't want it to just read multiple files. Surely you want it to read and then propagate those files as message trees.
The file read node will read as many files as you program your flow to make it read. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jul 11, 2012 9:26 am Post subject: Re: multiple files read in FileRead node |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Shafikz wrote: |
it is working fine if there is only one file in source directory but whenever, there are more than one files it throws an exception. |
What exception? What does it say? What does it mean?
Shafikz wrote: |
is it possible that FileRead node can read multiple file from a directory? |
Yes. Probably not all at once.
Shafikz wrote: |
please suggest some alternate for the task.. |
Perhaps if you explained why you need to do this, i.e. what the requirement is rather than how you've chosen to fulfil it? One point you might want to mention is why you're not using a FileInput node, which can do this out of the box.
(I'm betting it's because to have to read all the files on a schedule & haven't looked that up in this forum) _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Shafikz |
Posted: Wed Jul 11, 2012 9:36 am Post subject: |
|
|
Apprentice
Joined: 12 Apr 2012 Posts: 29
|
thanks for yur reply,
I have seen event logs . In event logs, it is showing error "there are more than one file. FileRead node is not able to choose which file to be processed".. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jul 11, 2012 9:50 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Shafikz wrote: |
In event logs, it is showing error "there are more than one file. FileRead node is not able to choose which file to be processed".. |
So this indicates quite clearly that the FileRead node needs a unique file name; why did you ask in your OP if it could?
My question remains: why do you want it to read multiple files? Why are you not using a FileInput node which can read multiple files as you describe? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|