PEtALS


<jbi version="1.0" xmlns='http://java.sun.com/xml/ns/jbi'
    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
    xmlns:petals="http://petals.objectweb.org/"
    xmlns:extensions="http://petals.objectweb.org/extensions/"
    xmlns:keyvalue="http://petals.objectweb.org/extensions/key-value/">

  <services binding-component="true">
    <consumes interface-name="Zip"
      service-name="petals:ZipService"
      endpoint-name="ZipEndpoint">

      <extensions:extensions>
        <keyvalue:extension>
          <address>/home/petals/filetransfer/scandirectory</address>
          <operation>zipfile</operation>
          <polling-period>5000</polling-period>
          <output-dir>/home/petals/filetransfer/outputdirectory</output-dir>
          <filename-filter>.xml</filename-filter>
        </keyvalue:extension>
      </extensions:extensions>

    </consumes>
  </services>
</jbi>



<jbi version="1.0" xmlns='http://java.sun.com/xml/ns/jbi'
  xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  xmlns:petals="http://petals.objectweb.org/"
  xmlns:extensions="http://petals.objectweb.org/extensions/"
  xmlns:keyvalue="http://petals.objectweb.org/extensions/key-value/">
  <services binding-component="true">

    <provides interface-name="TestOnJBIMessage"
      service-name="petals:TestOnJBIMessageService"
      endpoint-name="TestOnJBIMessageEndpoint">

      <extensions:extensions>
        <keyvalue:extension>
          <address>/home/petals/filetransfer/receive</address>
        </keyvalue:extension>
      </extensions:extensions>
    </provides>

  </services>
</jbi>

Address is composed of these elements, which are destined to be configurable as extensions :


When deploying a service unit like in the previous code snippet, all the JBI messages received on the TestOnJBIMessageService service will be analyzed and will produce new files in the /home/petals/filetransfer/receive directory defined in the extensions.