Author |
Message
|
Ravs |
Posted: Sat Apr 07, 2012 3:17 pm Post subject: File system polling |
|
|
Newbie
Joined: 07 Apr 2012 Posts: 2
|
Hello
We are working on WebSphere MQ application using C++. We need to connect to a local directory, take a copy of the files(hundreds), edit each file one after one and send to the queue. I'm able to put a file on the queue, but how do I poll the file directory for any new files and pick them like FIFO.
Env : MB 7, MQ 7.1, Windows
ravs. |
|
Back to top |
|
 |
Vitor |
Posted: Sat Apr 07, 2012 3:59 pm Post subject: Re: File system polling |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Ravs wrote: |
how do I poll the file directory for any new files and pick them like FIFO. |
Same way you normally do with a file reading C++ application.
Unless you're using one of the WMQ File->queue components and you've not mentioned it. Base WMQ has nothing to do with files. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Ravs |
Posted: Sat Apr 07, 2012 4:21 pm Post subject: |
|
|
Newbie
Joined: 07 Apr 2012 Posts: 2
|
We are not using any WMQ File queue components. Have to do this if its possible with WMQ application in C++ or a simple plain C++ program. |
|
Back to top |
|
 |
bruce2359 |
Posted: Sat Apr 07, 2012 4:22 pm Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
Do a quick google search for 'how to read a directory in c++'. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
Vitor |
Posted: Sun Apr 08, 2012 3:04 pm Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Ravs wrote: |
We are not using any WMQ File queue components. |
So why post in this forum?
Ravs wrote: |
Have to do this if its possible with WMQ application in C++ or a simple plain C++ program. |
So post in a C++ forum. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Sun Apr 08, 2012 3:54 pm Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
And remember the Halting Problem.
If all you have is the name of a directory, you don't know if any of the files in it are "ready" to be processed, because you don't know if any of the programs writing those files have halted. |
|
Back to top |
|
 |
|