Author |
Message
|
mhd.zabiullah |
Posted: Wed Dec 11, 2013 1:00 pm Post subject: FileInput node not picking file based on timestamp |
|
|
Newbie
Joined: 11 Apr 2011 Posts: 6
|
Hi,
I am using a FileInput node in my message flow with MB 6.1.0.7 running on AIX5.3. From what i have read, the files from the directory location are picked up based on the timestamp (oldest file first). But when i tried this, i could see that the files are being picked up based on their file names and not based on timestamp.
If anyone is aware of this and of some future fix packs of the broker, where this has been fixed then please do let me know.
Thanks in advance. |
|
Back to top |
|
 |
smdavies99 |
Posted: Wed Dec 11, 2013 1:33 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Have you looked at the release notes for the subsquent fix packs?
They are on the IBM site. They tell you the problems rectified in each release.
Perhaps you might like to share the pattern you are using to select the files in the file input node. with us. _________________ 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 |
|
 |
mhd.zabiullah |
Posted: Wed Dec 11, 2013 1:46 pm Post subject: |
|
|
Newbie
Joined: 11 Apr 2011 Posts: 6
|
I did have a look at fix packs after 6.1.0.7, but couldnt find anything regarding this. I am just using the *.xml as the file pattern to pick the file. |
|
Back to top |
|
 |
smdavies99 |
Posted: Wed Dec 11, 2013 11:36 pm Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Does the filename have a 'properly ordered' timestamp in it?
By this, I mean yyyy-mm-dd where the units are in descending order?
Directory Ordering in some circumstances can be a little problematic where US (IMHO non-logical) ordering is used
(yyyy-dd-mm)
You may have to get the writing application to change the format of the name it uses when writing to make sure that everything is correct.
Whatever happens, you need to do a lot of testing to ensure 100% reliability of the way the FileInput node works. _________________ 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 |
|
 |
mhd.zabiullah |
Posted: Thu Dec 12, 2013 12:17 am Post subject: |
|
|
Newbie
Joined: 11 Apr 2011 Posts: 6
|
That is the only option that i have right now. Ask the source application to change the file name to YYYYMMDDHHmmss. That will make sure that the file is picked up based on its creation time given in the filename.
But what i dont understand is how come there is no mention of this behaviour by FileInput node anywhere. |
|
Back to top |
|
 |
smdavies99 |
Posted: Thu Dec 12, 2013 1:33 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Actually to be correct to ISO you should look for a format pattern like
yyyyMMddHHmmsss
The capitals vs lowercase change things. for example 'hh' is a 12 hour clock representation whereas HH is a 24 hour clock.
The devil is in the detail here. There is a nice page in the Infocentre that describes them all nicely. _________________ 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 |
|
 |
|