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 » multiple files read in FileRead node

Post new topic  Reply to topic
 multiple files read in FileRead node « View previous topic :: View next topic » 
Author Message
Shafikz
PostPosted: Wed Jul 11, 2012 9:21 am    Post subject: multiple files read in FileRead node Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Wed Jul 11, 2012 9:24 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Wed Jul 11, 2012 9:26 am    Post subject: Re: multiple files read in FileRead node Reply with quote

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
View user's profile Send private message
Shafikz
PostPosted: Wed Jul 11, 2012 9:36 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Wed Jul 11, 2012 9:50 am    Post subject: Reply with quote

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
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 » multiple files read in FileRead node
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.