|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (3)
View Page HistoryAfter completion, the newly created jbi.xml file has been open in the Service-Unit editor.
Regarding File Transfer configurations, the wizards are *almost* complete.
\\
However, from the version 3.0 of this component, there is an additional parameter that cannot be fill-in in the wizard.
This parameter is called *base-message* and needs to be set in the jbi.xml.
\\
As explained in the documentation of [the version 3.0 of the File Transfer component|petalscomponents:Petals-BC-Filetransfer], *base-message* defines a message skeleton that will be sent to the invoked message. The principle is the same one than [the Quartz component|petalscomponents:Petals-SE-Quartz].
\\
To define the base message, update the jbi.xml manually. Be careful, the XML message must be contained in a CDATA section.
Here is a sample configuration of the File Transfer component.
{code:lang=xml}
<?xml version="1.0" encoding="UTF-8"?>
<!--
JBI descriptor for the Petals' "petals-bc-filetransfer" component (File Transfer).
Originally created for the version 2.4 of the component.
-->
<jbi:jbi version="1.0"
xmlns:filetransfer="http://petals.ow2.org/components/filetransfer/version-2"
xmlns:generatedNs="http://petals.ow2.org/components/sql/version-1"
xmlns:jbi="http://java.sun.com/xml/ns/jbi"
xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-5"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!-- Import a Service into Petals or Expose a Petals Service => use a BC. -->
<jbi:services binding-component="true">
<!-- Expose a Petals Service => consumes a Service. -->
<jbi:consumes
interface-name="generatedNs:SqlInterface"
service-name="generatedNs:DemandeProgrammation"
endpoint-name="DemandeProgrammationEndpoint">
<!-- CDK specific elements -->
<petalsCDK:timeout>30000</petalsCDK:timeout>
<petalsCDK:operation xmlns:insertNs="http://petals.ow2.org/components/sql/version-1">insertNs:insert</petalsCDK:operation>
<petalsCDK:mep>InOnly</petalsCDK:mep>
<!-- Component specific elements -->
<filetransfer:read-directory>C:\Users\Vincent\Desktop\Divers</filetransfer:read-directory>
<filetransfer:transfer-mode>content</filetransfer:transfer-mode>
<filetransfer:polling-period>1000</filetransfer:polling-period>
</jbi:consumes>
</jbi:services>
</jbi:jbi>
{code}
\\
This parameter is called *base-message* and needs to be set in the jbi.xml.
\\
As explained in the documentation of [the version 3.0 of the File Transfer component|petalscomponents:Petals-BC-Filetransfer], *base-message* defines a message skeleton that will be sent to the invoked message. The principle is the same one than [the Quartz component|petalscomponents:Petals-SE-Quartz].
\\
To define the base message, update the jbi.xml manually. Be careful, the XML message must be contained in a CDATA section.
Here is a sample configuration of the File Transfer component.
{code:lang=xml}
<?xml version="1.0" encoding="UTF-8"?>
<!--
JBI descriptor for the Petals' "petals-bc-filetransfer" component (File Transfer).
Originally created for the version 2.4 of the component.
-->
<jbi:jbi version="1.0"
xmlns:filetransfer="http://petals.ow2.org/components/filetransfer/version-2"
xmlns:generatedNs="http://petals.ow2.org/components/sql/version-1"
xmlns:jbi="http://java.sun.com/xml/ns/jbi"
xmlns:petalsCDK="http://petals.ow2.org/components/extensions/version-5"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<!-- Import a Service into Petals or Expose a Petals Service => use a BC. -->
<jbi:services binding-component="true">
<!-- Expose a Petals Service => consumes a Service. -->
<jbi:consumes
interface-name="generatedNs:SqlInterface"
service-name="generatedNs:DemandeProgrammation"
endpoint-name="DemandeProgrammationEndpoint">
<!-- CDK specific elements -->
<petalsCDK:timeout>30000</petalsCDK:timeout>
<petalsCDK:operation xmlns:insertNs="http://petals.ow2.org/components/sql/version-1">insertNs:insert</petalsCDK:operation>
<petalsCDK:mep>InOnly</petalsCDK:mep>
<!-- Component specific elements -->
<filetransfer:read-directory>C:\Users\Vincent\Desktop\Divers</filetransfer:read-directory>
<filetransfer:transfer-mode>content</filetransfer:transfer-mode>
<filetransfer:polling-period>1000</filetransfer:polling-period>
</jbi:consumes>
</jbi:services>
</jbi:jbi>
{code}
\\
After generaztion and a possible edition, the project contains everything the File Transfer component needs.
You can now package it before deploying it.