h1. Features
\\
The FileTransfer component is a Binding Component (BC) which supports file transfers. This component allows to :
* Poll a configured directory for incoming files. At a poll, each file retrieved is put into a new JBI message, set as source or attachment. The message is sent to a target JBI service.
* Provide a standard service that write the JBI message (content and attachments) it receives into a file with a specified name and suffixed with the current date name.
* Provide a dedicated service *GetFiles*, which describe 2 operations:
** *getFiles* operation, to retrieve files correponding to a pattern, from a folder.
** *getFile* operation, to retrieve the first file correponding to a pattern, from a folder.
These operations are described in an embedded astract WSDL, the File Transfer dedicated WSDL.
h1. Component Configuration
\\
{include:0 CDK Component Configuration Table}
h1. Service Configuration
h2. Transfer files into the JBI bus
\\
{loremipsum:1}
h3. Service Unit descriptor
{code:lang=xml}
<?xml version="1.0" encoding="UTF-8"?>
<jbi:jbi version="1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jbi="http://java.sun.com/xml/ns/jbi"
xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-4.0"
xmlns:filetransfer="http://petals.ow2.org/components/filetransfer/version-2.2"
xmlns:generatedNs="http://petals.ow2.org/filetransfer">
<jbi:services binding-component="false">
<jbi:consumes
interface-name="generatedNs:FileRepo"
service-name="generatedNs:FileRepoService"
endpoint-name="getServiceEndpoint">
<!-- CDK specific fields -->
<petalsCDK:operation>test</petalsCDK:operation>
<petalsCDK:mep>InOnly</petalsCDK:mep>
<!-- FileTransfer specific fields -->
<filetransfer:read-directory>${PETALS_HOME}/filetransfer/in</filetransfer:read-directory>
<filetransfer:backup-directory>${PETALS_HOME}/filetransfer/backup</filetransfer:backup-directory>
<filetransfer:transfer-mode>content</filetransfer:transfer-mode>
<filetransfer:polling-period>1000</filetransfer:polling-period>
</jbi:consumes>
</jbi:services>
</jbi:jbi>
{code}
h3. Consumer restrictions
{loremipsum:1}
h3. Consumer usage
{loremipsum:1}
h2. Transfer files out of the JBI bus
\\
{loremipsum:1}
h3. Service Unit descriptor
h3. Provider restrictions
h3. Provider Usage
h2. Retrieve files from a folder : the GetFiles service
h3. Service Unit descriptor
h3. Provider restrictions
h3. Provider Usage
h4. GetFile operation
h4. GetFiles operation
\\
The FileTransfer component is a Binding Component (BC) which supports file transfers. This component allows to :
* Poll a configured directory for incoming files. At a poll, each file retrieved is put into a new JBI message, set as source or attachment. The message is sent to a target JBI service.
* Provide a standard service that write the JBI message (content and attachments) it receives into a file with a specified name and suffixed with the current date name.
* Provide a dedicated service *GetFiles*, which describe 2 operations:
** *getFiles* operation, to retrieve files correponding to a pattern, from a folder.
** *getFile* operation, to retrieve the first file correponding to a pattern, from a folder.
These operations are described in an embedded astract WSDL, the File Transfer dedicated WSDL.
h1. Component Configuration
\\
{include:0 CDK Component Configuration Table}
h1. Service Configuration
h2. Transfer files into the JBI bus
\\
{loremipsum:1}
h3. Service Unit descriptor
{code:lang=xml}
<?xml version="1.0" encoding="UTF-8"?>
<jbi:jbi version="1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jbi="http://java.sun.com/xml/ns/jbi"
xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-4.0"
xmlns:filetransfer="http://petals.ow2.org/components/filetransfer/version-2.2"
xmlns:generatedNs="http://petals.ow2.org/filetransfer">
<jbi:services binding-component="false">
<jbi:consumes
interface-name="generatedNs:FileRepo"
service-name="generatedNs:FileRepoService"
endpoint-name="getServiceEndpoint">
<!-- CDK specific fields -->
<petalsCDK:operation>test</petalsCDK:operation>
<petalsCDK:mep>InOnly</petalsCDK:mep>
<!-- FileTransfer specific fields -->
<filetransfer:read-directory>${PETALS_HOME}/filetransfer/in</filetransfer:read-directory>
<filetransfer:backup-directory>${PETALS_HOME}/filetransfer/backup</filetransfer:backup-directory>
<filetransfer:transfer-mode>content</filetransfer:transfer-mode>
<filetransfer:polling-period>1000</filetransfer:polling-period>
</jbi:consumes>
</jbi:services>
</jbi:jbi>
{code}
h3. Consumer restrictions
{loremipsum:1}
h3. Consumer usage
{loremipsum:1}
h2. Transfer files out of the JBI bus
\\
{loremipsum:1}
h3. Service Unit descriptor
h3. Provider restrictions
h3. Provider Usage
h2. Retrieve files from a folder : the GetFiles service
h3. Service Unit descriptor
h3. Provider restrictions
h3. Provider Usage
h4. GetFile operation
h4. GetFiles operation