This documentation applies to older versions of WSO2 ESB connectors. To find the documentation relevant to the version you are using, select the connector from the WSO2 Connector Store and click Documentation.

All docs This doc

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To use the Local File inbound endpoint, you need to download the inbound org.apache.synapse.localfile.class-1.0.0.jar from from https://storepreviewstore.wso2.com/store/ and assets/esbconnector/details/9ac7accf-6535-46c2-853e-9ca75c23cdef and copy the jar to the <ESB_HOME>/repository/components/lib directory.

...

Code Block
languagexml
titleInbound Configuration
   <inboundEndpoint
        class="org.wso2.carbon.inbound.localfile.LocalFileOneTimePolling"
        name="LocalFile" onError="fault" sequence="request" suspend="false">
        <parameters>
            <parameter name="sequential">true</parameter>
            <parameter name="interval">2000</parameter>
            <parameter name="coordination">true</parameter>
            <parameter name="FileURI">/home/Documents/LFC/LFC/Test1/TEST</parameter>
            <parameter name="ActionAfterProcess">delete</parameter>
            <parameter name="ProcessBeforeWatch">no</parameter>
        </parameters>
    </inboundEndpoint>
ParameterDescriptionRequiredPossible ValuesDefault Value

FileURI

The URI where the files you want to process are located.

Yes

A valid file URI : <path>

N/A

ContentType

Content type of the files which needs to be processed.

No

Valid content type of files. application/xml or text/plain

N/A

ActionAfterProcess

Whether to move or delete the files after the transport has processed them.

No

MOVE or DELETE

N/A

MoveFileURI

Where to move the files after processing if the value specified as ActionAfterProcess is MOVE.

No

A valid file URI : <path>

N/A

ProcessBeforeWatch

Whether to process the directory before watch or not.NoYES or NON/A