Element Summary

ElementDescriptionClass
componenta JBI component that interacts with the file system. It hosts endpoints that reads data from and writes data to the file system.org.apache.servicemix.file.FileComponent
pollerA polling endpoint which looks for a file or files in a directory and sends the files into the JBI bus as messages, deleting the files by default when they are processed.org.apache.servicemix.file.FilePollerEndpoint
senderAn endpoint which receives messages from the NMR and writes the message to the file system.org.apache.servicemix.file.FileSenderEndpoint

Element Detail

Element: component

ElementTypeDescription
endpoints(poller | sender)*a list of beans defining the endpoints hosted by the component
executor<spring:bean/>
executorFactory<spring:bean/>

Element: poller

AttributeTypeDescription
archivexs:stringthe relative path of the directory where processed files will be archived
autoCreateDirectoryxs:booleanspecifies if directories are created. The defualt is true.
concurrentPollingxs:boolean
delayxs:long
deleteFilexs:booleanspecifies if files are deleted after the endpoint processes them. The defualt is true.
endpointxs:string
filexs:stringthe relative path of the file to poll. This can be a directory or a file. If it is a directory, all files in the directory, or its subdirectories, will be processed by the endpoint. If it is a file, olny files matching the filename will be processed.
firstTimexs:date
interfaceNamexs:QName
periodxs:long
recursivexs:booleanspecifies if subdirectories are polled. The defualt is true.
servicexs:QName
targetEndpointxs:string
targetInterfacexs:QName
targetOperationxs:QName
targetServicexs:QName
targetUrixs:string
ElementTypeDescription
componentcomponent
definition<spring:bean/>
description<spring:bean/>
filter<spring:bean/>the bean defining the class implementing the file filtering strategy
lockManager<spring:bean/>the bean defining the class implementing the file locking strategy
marshaler<spring:bean/>the bean defining the class used to marshal data from the file system
scheduler<spring:bean/>
serviceUnit<spring:bean/>

Element: sender

AttributeTypeDescription
appendxs:booleanspecifies if data is appended to existing files. The defualt is false.
autoCreateDirectoryxs:booleanspecifies if directories are created. The defualt is true.
directoryxs:stringthe relative path of the directory to which the endpoint writes files
endpointxs:string
interfaceNamexs:QName
servicexs:QName
tempFilePrefixxs:stringa string that will be attached to the begining of any temporary file names. Temporary file names are generated when the endpoint cannot determine the name of the file from the message data.
tempFileSuffixxs:stringa string that will be appended to any temporary file names. Temporary file names are generated when the endpoint cannot determine the name of the file from the message data.
ElementTypeDescription
componentcomponent
definition<spring:bean/>
description<spring:bean/>
marshaler<spring:bean/>the bean defining the class used to marshal messages to the file system
serviceUnit<spring:bean/>