Petals-BC-Filetransfer

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (9)

View Page History
{toc} Features

h1. Features

\\
The FileTransfer component is a Binding Component (BC) which supports file transfers. This component allows to :


h1. Table of content

{toc}


h1. Component Configuration

</jbi:jbi>{code}

{include:0 CDK SU Provide Configuration}
{color:#333333}&nbsp;{color}
{table-plus}&nbsp;
|| Parameter || Description \\ || Default \\ || Required \\ ||
| write-directory \\ | The location of the directory where to write JBI message. It must be an absolute address.&nbsp; \\
The directory MUST exists. \\
Environment variables are supported with the form $\{myEnvVariable}. \\ | \- | Yes \\ |
| copy-mode \\ | Transfer either the source, the attachments or both of the payload. \\
Possible values are contentonly, attachments-only or content-and-attachments. \\ | content-and-attachments \\ | No \\ |
| file-pattern \\ | The name of the file where the JBI message (the XMl content) will be written in. \\
The system date is appended on each created file. \\ | The operation name, else content.xml \\ | No \\ |
{table-plus}

h3. Provider restrictions


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="true">
 
<jbi:provides
interface-name="generatedNs:put"
service-name="generatedNs:putService"
endpoint-name="putServiceEndpoint">
{code:lang=xml}dsfsd{code}

<!-- WSDL file -->
<petalsCDK:wsdl xsi:nil="true" />

<!-- FileTransfer specific fields -->
<filetransfer:write-directory>${PETALS_HOME}/filetransfer/out</filetransfer:write-directory>
<filetransfer:copy-mode>content-only</filetransfer:copy-mode>
<filetransfer:file-pattern>test.xml</filetransfer:file-pattern>
</jbi:provides>
</jbi:services>
</jbi:jbi>{code}

{include:0 CDK SU Provide Configuration}
{table-plus}&nbsp;
|| Parameter || Description \\ || Default \\ || Required \\ ||
| write-directory \\ | The location of the directory where to write JBI message. It must be an absolute address.&nbsp; \\
The directory MUST exists. \\
Environment variables are supported with the form $\{myEnvVariable}. \\ | \- | Yes \\ |
| copy-mode \\ | Transfer either the source, the attachments or both of the payload. \\
Possible values are contentonly, attachments-only or content-and-attachments. \\ | content-and-attachments \\ | No \\ |
| file-pattern \\ | The name of the file where the JBI message (the XMl content) will be written in. \\
The system date is appended on each created file. \\ | The operation name, else content.xml \\ | No \\ |

{table-plus}


h3. Provider restrictions