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
Skip to end of metadata
Go to start of metadata

The WSO2 ESB local file custom inbound protocol is a multi-tenant capable alternative to file inbound protocol.

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

Note : Tested platform WSO2 ESB 4.9.0

Sample Configuration

The inbound configuration can be added in the Inbound UI.

Inbound Configuration

Inbound 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
  • No labels