Skip to Content
author's profile photo Former Member
Former Member

J2SE file adapter checkModificationInterval

Hello,

We're using a standalone J2SE sender file adapter. This adapter polls at a certain directory. (XML)Files are posted in this directory via ftp. When files that are polled become relatively large >2 MB it occurs that part of the file is already processed when file has not been completely written into the directory. This causes an incomplete XML message to be sent to XI system causing an error message.

The XML file is processed again when file has been written completely.

However this should be avoided by using the parameter file.checkModificationInterval however we are not succeeding finding the right value for this parameter in combination with

file.retryInterval

file.pollInterval

file.processingLocked

Does anybody have a clue.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 14, 2005 at 10:56 AM

    Hi Emile

    You can just directly set the parameter to,

    file.checkModificationInterval=some milliseconds value

    The way this works is, the file adapter first reads the file, then it waits for the specified time and checks if there is any change in length. If the file length changes it will repeat the read procedure. Again the process is repeated, and if it finds that there is no change in length, the file is processed. The key here is to try and identify the approximate time interval that can be set.

    cheers

    Sameer

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      There are couple of OSS Notes on <b>Msecs to Wait Before Modification Check</b> issue for XI 3.0 File adapter (unfortunately not for J2SE File Adapter).

      The OSS Notes are 819127 and 865558. Check them, and you can refer these when you send a message to SAP support.

      Regards

      Shravan

  • author's profile photo Former Member
    Former Member
    Posted on Oct 21, 2005 at 01:34 PM

    Posted OSS message it seems that parameter name is checkFileModificationInterval PDF documentation with J2SE adapter doesn't say anything about that-one.

    With checkFileModificationInterval it works fine now.

    Emile

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.