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 » FileInput node not picking file based on timestamp

Post new topic  Reply to topic
 FileInput node not picking file based on timestamp « View previous topic :: View next topic » 
Author Message
mhd.zabiullah
PostPosted: Wed Dec 11, 2013 1:00 pm    Post subject: FileInput node not picking file based on timestamp Reply with quote

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
View user's profile Send private message
smdavies99
PostPosted: Wed Dec 11, 2013 1:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
mhd.zabiullah
PostPosted: Wed Dec 11, 2013 1:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
smdavies99
PostPosted: Wed Dec 11, 2013 11:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
mhd.zabiullah
PostPosted: Thu Dec 12, 2013 12:17 am    Post subject: Reply with quote

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
View user's profile Send private message
smdavies99
PostPosted: Thu Dec 12, 2013 1:33 am    Post subject: Reply with quote

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
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 » FileInput node not picking file based on timestamp
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.