The Samba component is able to connect to file servers that support the SMB/CIFS protocol (Windows File Sharing), both as a consumer (reading files) and producer (writing files).
The Samba component has the following configuration options:
|The name of the user account for the file server|
|The password that belongs to the user account for the file server|
|Url or ip address of the file server|
|Directory where files will be moved after processing|
|Local temporary directory where copy files for processing. Used by consumer only. See remarks below.|
|Specify a custom tcp/ip port, by default 139 is used|
|Specify the Windows domain user belongs to|
|Specifies how to handle files that are currently in use by other processes. If set to |
|Path to the target directory|
|Specifies the encoding of the file|
|If set to |
|What to do when a file with the same name already exists|
|Search for files in all the sub-directories as well|
|Used to include files, if the filename matches the regular expressions pattern|
|Used to exclude files, if the filename matches the regular expression pattern|
|If set to |
|Milliseconds to wait before polling the file/directory starts|
|Milliseconds to wait before the next poll of the file/directory|
Local Work Directorywhen 'consuming', a local work directory can be used to store the remote file content directly in local files, to avoid loading the content into memory. This is beneficial, if you consume a very big remote file.
DomainThe domain property could also be used if your user belongs to a specific windows domain.
PathThe path property will indicate which share and which directory it should poll, like share/directory/.
Pathif you include a
/at the end of the path, the Samba component will try to copy the whole file path and not the file name by itself!
- Moving or deleting files:
When the DeleteFile is set to
true, the Move option is ignored. When the DeleteFile property is not set to
true, processed files will be moved to a .camel directory.
ReadLockThis option is used while 'consuming', to only poll the files if it has exclusive read-lock on the file (i.e. the file is not in-progress or being written). The options are
Movethe default behavior is to create a .camel directory and move everything into that directory when it's processed.
RecursiveWatch out when enabled! You must make sure that your Exclude pattern will ignore the directory were you place the processed files, otherwise you will end up with a infinite loop!