Author |
Message
|
ruturajw |
Posted: Tue Jan 05, 2010 4:08 pm Post subject: File Input on demand |
|
|
Newbie
Joined: 05 Jan 2010 Posts: 8
|
Hi,
I'm trying to build a flow which would read a file on-demand i.e. not poll the directory at an interval. I was hoping to use the WMB 6.1 File Input node but it seems to be available only in a polling mode.
Also, can the input directory be dynamically configured? We need to read from a directory which has a GUID as its name. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Jan 05, 2010 5:23 pm Post subject: Re: File Input on demand |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
ruturajw wrote: |
I'm trying to build a flow which would read a file on-demand i.e. not poll the directory at an interval. |
Demanded by what? How is it intended that the flow will know there's a file to be processed?
ruturajw wrote: |
Also, can the input directory be dynamically configured? We need to read from a directory which has a GUID as its name. |
Again, dynamically configured by what? How is the name passed?
Also, slightly off topic, why is the directory name dynamic? A more traditional model has a dynamic file name in a static directory. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
ruturajw |
Posted: Tue Jan 05, 2010 5:51 pm Post subject: Re: File Input on demand |
|
|
Newbie
Joined: 05 Jan 2010 Posts: 8
|
An application will call the flow, which will pass the GUID. (the GUID is known to the calling appl as part of an web-based UI).
As part of processing this flow, I'm visualising to read a file. I need to read the file, parse the contents and send the reply back to the appl.
The directory name is the GUID (supplied by the calling appl) and the file name is static in the context of the flow (can be configured by UDP).
So far my only option is looking like a Java code to the file read call.
Thanks for your help in advance.
Cheers. |
|
Back to top |
|
 |
ruturajw |
Posted: Tue Jan 05, 2010 5:59 pm Post subject: Re: File Input on demand |
|
|
Newbie
Joined: 05 Jan 2010 Posts: 8
|
Vitor wrote: |
Also, slightly off topic, why is the directory name dynamic? A more traditional model has a dynamic file name in a static directory. |
This is the model that an external application uses that we are now integrating with. |
|
Back to top |
|
 |
smdavies99 |
Posted: Wed Jan 06, 2010 12:14 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
would you care to name this external application so that any other forum readers who have to do the same can learn from your experiences? _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
mqmatt |
Posted: Wed Jan 06, 2010 2:35 am Post subject: Re: File Input on demand |
|
|
 Grand Master
Joined: 04 Aug 2004 Posts: 1213 Location: Hursley, UK
|
ruturajw wrote: |
I'm trying to build a flow which would read a file on-demand i.e. not poll the directory at an interval. |
So, a triggered FileInput? This is not currently possible. It's a known requirement, but please raise it through your IBM account team if you'd like to see it. |
|
Back to top |
|
 |
ruturajw |
Posted: Thu Jan 07, 2010 8:28 pm Post subject: Re: File Input on demand |
|
|
Newbie
Joined: 05 Jan 2010 Posts: 8
|
mqmatt wrote: |
So, a triggered FileInput? This is not currently possible. It's a known requirement, but please raise it through your IBM account team if you'd like to see it. |
Yes.
OK, will do. Thanks. |
|
Back to top |
|
 |
|