DataPower

DataPower

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

How to get the file timestamp for the file picked up from DataPower ftp poller?

  • 1.  How to get the file timestamp for the file picked up from DataPower ftp poller?

    Posted Thu May 20, 2021 03:45 PM

    Dear Sir/Madam,

    I am developing a DataPower multiple protocol gateway service as below

    A sftp front side handler that will poll files with matching pattern from a ftp server folder

    The service will send the file content as a message to a MQ queue. But we need to send the file name and file timestamp as 2 MQ headers with the message to the MQ queue.

    My question is,

    How to get file timestamp of the file picked by the ftp poller

    How to send the file name and timestamp as MQ headers with the message to the MQ queue.

    Thanks,

    Bill



    #DataPower
    #Support
    #SupportMigration


  • 2.  RE: How to get the file timestamp for the file picked up from DataPower ftp poller?

    Posted Mon May 24, 2021 06:02 AM

    Hi,

    I have never heard that the poller could retrieve the timestamp of the file. Would it be possible for the party that produces the file to append the timestamp as part of the filename? Otherwise you'll have make for example an url-open call to the FTP and retrieve the folder information. You might be able to parse the timestamp from the get-folder response (XML document that contains folder listing).

    When sending the params as MQ headers you'll have to consider the capabilities of the receiver. You can for example use MQRFH2 header for relaying custom headers.

    --HP



    #DataPower
    #Support
    #SupportMigration


  • 3.  RE: How to get the file timestamp for the file picked up from DataPower ftp poller?

    Posted Mon May 24, 2021 06:38 PM

    Hi HP,

    Your suggestions should work for us. Thanks a lot for your help.

    Bill



    #DataPower
    #Support
    #SupportMigration