Element Summary

ElementDescriptionClass
componentFTP Componentorg.apache.servicemix.ftp.FtpComponent
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.ftp.FtpPollerEndpoint
poolA pool of FTP clients for the Jakarta Commons Net libraryorg.apache.servicemix.ftp.FTPClientPool
senderAn FTP endpointorg.apache.servicemix.ftp.FtpSenderEndpoint

Element Detail

Element: component

ElementTypeDescription
endpoints(poller | sender)*
executorFactory<spring:bean/>The executor factory to use to create the executor. If none is provided, one will be retrieved from the JBI container when the component is deployed into ServiceMix 3.x, or a default implementation will be used.

Element: poller

AttributeTypeDescription
archivexs:stringSpecifies a directory relative to the polling directory to which processed files are archived.
autoCreateDirectoryxs:booleanSpecifies if the endpoint should create the target directory, if it does not already exist. If you set this to false and the directory does not exist, the endpoint will not do anything. Default value is true.
changeWorkingDirectoryxs:booleanWhen set to true, the poller will do an explicit cwd into the directory to be polled. Default to false. Recursive polling will not be possible if this feature is enabled.
concurrentPollingxs:booleanSets whether more than one poll can be active at a time (true means yes). Default value is false.
delayxs:longSets the amount of time in milliseconds that the endpoint should wait before making the first poll.
deleteFilexs:booleanDelete the file after it has been succesfully processed? Defaults to true
endpointxs:stringThe name of the endpoint.
firstTimexs:dateSets the date on which the first poll will be executed. If a delay is also set using setDelay, the delay interval will be added after the date specified.
interfaceNamexs:QNameThe qualified name of the interface exposed by the endpoint.
periodxs:longSets the number of milliseconds between polling attempts.
recursivexs:booleanSpecifies whether subdirectories should be polled. Defaults to true
servicexs:QNameThe qualified name of the service the endpoint exposes.
statelessxs:booleanWhen set to false
targetEndpointxs:stringthe name of the endpoint to which requests are sent
targetInterfacexs:QNamethe QName of the interface to which requests are sent
targetOperationxs:QNameSet the operation to be invoked on the target service.
targetServicexs:QNamethe QName of the service to which requests are sent
targetUrixs:stringSet the target service/endpoint/interface using a URI.
urixs:stringConfigures the endpoint from a URI.
ElementTypeDescription
clientPoolpoolSet a custom FTPClientPool. If this property has not been set, the FTP client pool will be created based on the information provided in the URI.
componentcomponentthe component implementation to use
filter<spring:bean/>Sets the filter to select which files have to be processed. When not set, all files will be picked up by the poller.
lockManager<spring:bean/>Set a custom LockManager implementation for keeping track of which files are already being processed. The default implementation is a simple, in-memory lock management system.
marshaler<spring:bean/>Set a custom FileMarshaler implementation to control how the file contents is being translated into a JBI message. The default implementation reads XML contents from the file.
scheduler<spring:bean/>Set a custom Scheduler implementation if you need more fine-grained control over the polling schedule.
serviceUnit<spring:bean/>

Element: pool

AttributeTypeDescription
binaryModexs:booleanUse binary mode transfers. Defaults to true.
controlEncodingxs:stringConfigure the encoding used in the FTP control connections. Defaults to ISO-8859-1
dataTimeoutxs:integerSpecifies a timeout used on the FTP data connection. Defaults to 120000
hostxs:stringSet the remote host name to connect to.
localPortxs:integerSet the local TCP/IP port to be used when establishing the connection.
passiveModexs:booleanUse passive mode FTP transfers. Defaults to false
passwordxs:stringSet the password for logging into the FTP server.
portxs:integerSet the remote port number to connect to.
usernamexs:stringSet the login to use to access the FTP server.
ElementTypeDescription
address<spring:bean/>Set the remote internet address to connect to.
config<spring:bean/>Configure a custom FTPClientConfig instance to allow more fine-grained control over the FTP connections in the pool.
localAddress<spring:bean/>Set the local IP address to be used when establishing the connection.
pool<spring:bean/>Set a custom ObjectPool instance to use for the connection pooling.

Element: sender

AttributeTypeDescription
autoCreateDirectoryxs:booleanSpecifies if the endpoint should create the target directory, if it does not already exist. If you set this to false and the directory does not exist, the endpoint will not do anything. Default value is true.
checkDuplicatesxs:booleanSpecifies whether duplicates should be checked. Defaults to true.
endpointxs:stringThe name of the endpoint.
interfaceNamexs:QNameThe qualified name of the interface exposed by the endpoint.
overwritexs:booleanSpecifies if a file with the same name already exists on the FTP server, the file should be overwritten. Defaults to false.
servicexs:QNameThe qualified name of the service the endpoint exposes.
uniqueFileNamexs:stringSets the name used to make a unique name if no file name is available on the message.
uploadPrefixxs:stringSet the file name prefix used during upload. The prefix will be automatically removed as soon as the upload has completed. This allows other processes to discern completed files from files that are being uploaded.
uploadSuffixxs:stringSet the file name suffix used during upload. The suffix will be automatically removed as soon as the upload has completed. This allows other processes to discern completed files from files that are being uploaded.
urixs:stringConfigures the endpoint from a URI
ElementTypeDescription
clientPoolpoolSet a custom FTPClientPool. If this property has not been set, the FTP client pool will be created based on the information provided in the URI.
componentcomponent
marshaler<spring:bean/>Set a custom FileMarshaler implementation to control how the file contents is being translated into a JBI message. The default implementation reads XML contents from the file.