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 » Read Input files from dif folders using fileinput node

Post new topic  Reply to topic
 Read Input files from dif folders using fileinput node « View previous topic :: View next topic » 
Author Message
sankarD
PostPosted: Wed Jul 25, 2012 11:50 pm    Post subject: Read Input files from dif folders using fileinput node Reply with quote

Newbie

Joined: 24 Nov 2010
Posts: 7

Any idea like how we read the files from different folders in message broker 7

We have requirement like this, Message flow has to read the files from dif folders

c:\fileinput\abc\*.txt

c:\fileinput\xyz\*.txt

The main motive of this approach is today we have two subsequent folders under c:\fileinput , In future if we want to add one more folder under c:\fileinput instead of changing the message flow just we will add the new folder .

know that we shouldn't suppose to use wild characters under file input node input dir. Any suggestions will be really appreciated.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jul 26, 2012 2:36 am    Post subject: Re: Read Input files from dif folders using fileinput node Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

sankarD wrote:
We have requirement like this, Message flow has to read the files from dif folders


If that's the technical requirement, what's the actual requirement. If the text files are identical in format (which they must be because you're processing them with the same flow) why are they in different directories?

sankarD wrote:
know that we shouldn't suppose to use wild characters under file input node input dir.


Try it. See if the flow deploys.

sankarD wrote:
Any suggestions will be really appreciated.


Put the files in the same directory. Seriously. It sounds like you're adding complexity to your file system because politically "abc" is so self important it won't share a directory with "xyz".
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jul 26, 2012 2:40 am    Post subject: Re: Read Input files from dif folders using fileinput node Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

sankarD wrote:
Any suggestions will be really appreciated.


Or -

Point your main flow's input node at c:\fileinput\real\*.txt

Create a pattern that has a FileInput node with a parameterized input directory and a FileOutput node that points to c:\fileinput\real\

Use the pattern to create 2 flows, one for abc, one for xyz.

When you create another folder, use the pattern to generate another flow leaving the original, more complex, flow intact and hence with no need for testing.

Simple.

You could of course obtain the same result with a *.bat script on a schedule but where's the fun in it....?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqmatt
PostPosted: Thu Jul 26, 2012 3:56 am    Post subject: Reply with quote

Grand Master

Joined: 04 Aug 2004
Posts: 1213
Location: Hursley, UK

Also consider an upgrade to V8; the ability to scan multiple subdirectories with a single FileInput node was a new feature in that release.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jul 26, 2012 8:55 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

mqmatt wrote:
Also consider an upgrade to V8; the ability to scan multiple subdirectories with a single FileInput node was a new feature in that release.



Oooo...................
_________________
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 » Read Input files from dif folders using fileinput 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.