Element Summary

ElementDescriptionClass
componenta JBI component that interacts with 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

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.
delayxs:long
deleteFilexs:booleanspecifies if files are deleted after the endpoint processes them.
endpointxs:string
filexs:stringthe relative path of the file to poll. This can be a directory or a file.
firstTimexs:date
interfaceNamexs:QName
maxConcurrentxs:integerHow many open exchanges can be pending. Default is -1 for unbounded pending exchanges. Set to 1...n to engage throttling of polled file processing.
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:boolean
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.
tempFileSuffixxs:stringa string that will be appended to any temporary file names.
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/>