...
Code Block |
---|
|
<ftp:poller service="test:poller"
endpoint="endpoint"
targetService="test:receiver"
uri="ftp://servicemix:rocks@localhost/smx/test" />
|
Info |
---|
title | Consumer Poller endpoint attributes |
---|
borderStyle | solidbgColor='lighblue' |
---|
|
Name | Type | Description | Required |
---|
service | QName | the service name of the proxied endpoint | yes | endpoint | String | the endpoint name of the proxied endpoint | yes | interfaceName | QName | the interface name of the proxied endpoint | no | targetService | QName | the service name of the target endpoint | no ( one of targetService, targetInterface or targetUri must be specified ) | targetEndpoint | String | the endpoint name of the target endpoint | no ( one of targetService, targetInterface or targetUri must be specified ) | targetInterface | QName | the interface name of the target endpoint | no ( one of targetService, targetInterface or targetUri must be specified ) | targetUri | String | the uri of the target endpoint | no ( one of targetService, targetInterface or targetUri must be specified ) | uri | URI | the ftp uri to access the FTP server (see #URI) | yes | deleteFile | boolean | whether the file should be deleted from the FTP server after processing | no (defaults to true ) | recursive | boolean | whether subdirectories should be polled | no (defaults to true ) | filter | java.io.FileFilter | a filter used when polling files: files that do not match this filter will be ignored | no | marshaler | FileMarshaler | a marshaler can be used to customize how the file is read / written (see #Marshalers) | no | lockManager | o.a.s.locks.LockManager | a custom lock manager can be used to cluster poller endpoints or to keep track of processed files when the deleteFile attribute is set to false | no | clientPool | FTPClientPool | | no |
|
...
Code Block |
---|
|
<ftp:sender service="test:service"
endpoint="endpoint"
uri="ftp://servicemix:rocks@localhost/smx/test" />
|
Info |
---|
title | Sender endpoint attributes |
---|
borderStyle | solidbgColor='lighblue' |
---|
|
Name | Type | Description | Required |
---|
service | QName | the service name of the proxied endpoint | yes | endpoint | String | the endpoint name of the proxied endpoint | yes | interfaceName | QName | the interface name of the proxied endpoint | no | uri | URI | the ftp uri to access the FTP server (see #URI) | yes | overwrite | boolean | if a file with the same name already exists on the FTP server, overwrite it | no (defaults to false ) | uniqueFileName | String | name used to create unique files when the marshaler can not give a specific file name | no (defaults to "ServiceMix") | marshaler | FileMarshaler | a marshaler can be used to customize how the file is read / written (see #Marshalers) | no | clientPool | FTPClientPool | provide specific configuration for the FTP client pool (see {#FTPClientPool]) | no |
|
URI
You can use the familiar file URI to communicate with FTP servers. All types of endpoints use this standard URI to retrieve the needed parameters.
...
By default, poller endpoints expect the content of the file to be an xml, and sender endpoints write the xml content of the imcoming NormalizedMessage to the remote file. This behavior can be customized by using a custom FileMarshaler.
FTPClientPool
The FTPClientPool is used to to retrieve connections and perform FTP calls to the server. By default, one is created and populated with the information retrieved from the URI (login, password, host, port). However, if more informations need to be configured, this is the place to do so.