Petals-BC-SFTP 1.2.x

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

Changes (40)

View Page History
The SFTP (SSH File Transfer Protocol / Secure File Transfer Protocol) protocol is described at : SFTP protocol is described at : [http://www.ietf.org/proceedings/05mar/IDs/draft-ietf-secsh-filexfer-06.txt]


This component provide a set of 5 operation:

The IN message looks like:

{code:lang=xml}<?xml version="1.0" encoding="UTF-8"?>
<ver:dir xmlns:ver="http://petals.ow2.org/componentss/sftp/version-1.0">
{code:lang=xml}
<ver:put xmlns:ver="http://petals.ow2.org/components/sftp/version-1.0">
<!-- content to be put on the SFTP server -->
<ver:body>xml body</ver:body>
<!-- Name of the file to be created on the SFTP server -->
<ver:filename>filename</ver:filename>
<!--Optional:-->
<ver:connection>
...
...
</ver:connection>
</ver:dir> </ver:put>

{code}
The OUT message returned by the server is returned as follows:
{code}
<tns:dirResponse xmlns:tns="http://petals.ow2.org/components/sftp/version-1.0">
<tns:filename>file1</tns:filename>
<tns:filename>file2</tns:filename>
</tns:dirResponse>

{code}
The service does not return a message.
The service might return an error when an element in the request is missing or if the SFTP connection failed
The available exchange patterns are :InOnly.

The service might return a Fault when an element in the request is missing or if the SFTP connection failed.
The available exchange patterns are: {{InOut}}.

h3. MPut Operation

The IN message looks like:

{code:lang=xml}<?xml version="1.0" encoding="UTF-8"?>
{code:lang=xml}
<ver:mput xmlns:ver="http://petals.ow2.org/components/sftp/version-1.0">
<!-- content to be put on the SFTP server -->
<ver:body>xml body</ver:body>
<!-- Name of the file to be created on the SFTP server -->
<ver:filename>filename</ver:filename>
<!--Optional:-->
<\!--Optional:-->
<ver:connection>
...
...
</ver:connection>
</ver:mput>

{code}
The service does not return a message.
The service might return an error when an element in the request is missing or if the SFTP connection failed
The available exchange patterns are: {{InOnly}}. InOnly.

h3. Get Operation
</ver:connection>
</ver:get>


{code}
The OUT message returned to the consumer is the content of the XML file.




|| {color:#333333}Parameter{color} || {color:#333333}Description{color}\\ || {color:#333333}Default{color}\\ || {color:#333333}Required{color}\\ ||
| timeout | Timeout in milliseconds of a synchronous send. This parameter is used by the method {{sendSync}} (Exchange exchange) proposes by the CDK {{Listeners}} classes. \\
Set it to 0 for an infinite timeout. | 0 | No |
| retrypolicy | This section defines a policy when attempting external transfer of message, before accepting the service as failed. {note}Only for BC components.{note} | \- | No |
| retrypolicy - attempts | The number of transfer attempts. | \- | bound to {{retrypolicy}} |
| retrypolicy - delay | The delay in milliseconds between transfer attempts. | \- | bound to {{retrypolicy}} |
| exchange-properties | This section defines the list of properties to set to the JBI exchange when processing a service. | \- | No |
| exchange-property - \\
org.ow2.petals.router.provider.noack | Check PEtALS container document for further details. \\
This property activates the bypass of acknowledgement messages detinated to this SU. Can be used for MEPs {{RobustInOnly, InOut}} and {{InOptionalOut}}. | \- | No |
* a file relative to the root of the SU package. \\
If not specified, a basic WSDL description is automatically provided by the CDK. | \- | No |
{table-plus}
{table-plus}
{petalslink:author=llacote|type=Ancien tableau automatique}{include:0 CDK SU Provide Configuration}{petalslink}


{table-plus}


|| Parameter || Description || Default || Required ||
| server | IP or DNS name of the server | {center}\-{center} | {center}Yes{center} {center}except when using Dynamic mode{center} |
{center}{*}Configuration of the component (CDK)*{center}
{table-plus:columnAttributes=,,style="text-align:center;",style="text-align:center;",style="text-align:center;"}


|| {color:#333333}Parameter{color} || {color:#333333}Description{color} || {color:#333333}Default{color} || {color:#333333}Required{color} || {color:#333333}Required{color} ||
| acceptor-pool-size | The size of the thread pool used to accept Message Exchanges from the NMR. Once a message is accepted, its processing is delegated to the processor pool thread. | 3 | Yes | Runtime |
| processor-pool-size | The size of the thread pool used to&nbsp;process Message Exchanges. Once a message is accepted, its processing is delegated to one of the thread of this pool. | 10 | Yes | Runtime \\
{center}\\ |
| processor-max-pool-size | The maximum size of the thread pool used to process Message Exchanges. The difference between this size and the processorpool-size represents the dynamic threads that can be created and destroyed during overhead processing time. \\ | 50 | No | Runtime |
| external-listener-class-name | Qualified name of the class extending *AbstractExternalListener* {note}Only for BC components.{note} \\ | \- | No | Component |
| jbi-listener-class-name | Qualified name of the class extending *AbstractJBIListener* \\ | \- | Yes | Component |
{table-plus}

{include:0 CDK Parameter scope}
{center}{*}Configuration of a Service Unit to provide a service (CDK)*{center}




|| {color:#333333}Parameter{color} || {color:#333333}Description{color}\\ || {color:#333333}Default{color}\\ || {color:#333333}Required{color}\\ ||
| timeout | Timeout in milliseconds of a synchronous send. This parameter is used by the method {{sendSync}} (Exchange exchange) proposes by the CDK {{Listeners}} classes. \\
| message-properties | This sections defines the list of properties to set to the JBI message when processing a service. | \- | No |
| org.ow2.petals.transport.compress | *To be used only in platform (distributed) Petals distribution.* Check PEtALS container document for further details. This propety activates the compression of the messages payload when set to {{true}}. | \- | No |
{table-plus}

{table-plus}

{column}
{column:width=25%}