Petals Distribution

Make service unit deployable

Details

  • Type: New Feature New Feature
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 4.2.1
  • Fix Version/s: 5.0.0-M1
  • Component/s: Clients, Components
  • Security Level: Public
  • Description:

    Nowadays, service units are deployed using service assemblies.

    As the habit is to create one service assembly per service unit, it will be interesting to be able to deploy service units directly, without requiring a service assembly.

  • Environment:
    -

Issue Links

Activity

Hide
Christophe DENEUX added a comment - Tue, 10 Jun 2014 - 16:16:01 +0200 - edited

A service assembly does not contain only a set of service units. It contains also:

  • their identification
  • the component on which each service unit must be deployed.

So we can't deploy a service unit as-is.

We introduced the deployable service unit that is a service unit with a JBI descriptor extended by:

  • an identification part,
  • and another part to define the target component name.
    <jbi:jbi xmlns:jbi="http://java.sun.com/xml/ns/jbi"
       xmlns:petals-jbi="http://petals.ow2.org/extensions/jbi/1.0"
       xmlns:petals.ow2.org="http://petals.ow2.org/" version="1.0">
       <jbi:services binding-component="false">
          ...
          <petals-jbi:identification>
             <jbi:name>su-name</jbi:name>
             <jbi:description>A Service Unit deployable directly</jbi:description>
          </petals-jbi:identification>
          <petals-jbi:component-name>target-component-id</petals-jbi:component-name>
       </jbi:services>
    </jbi:jbi>

To keep Petals ESB compliant with JBI, and to avoid to update the Petals ESB server side, we choose:

  • to create automatically a temporary SA during such a service unit deployment,
  • the temporary SA creation is done on Petals ESB client side (into Petals Administration API) or Petals ESB Autoloader extension.

Impacted Petals components:

  • PETALSSTUD-317: Petals Studio will be improved to add the both new parts of the service unit JBI descriptor in the service unit wizard.
  • PETALSESBCLI-99: Petals CLI will be improved to support deployment of such service units.
  • MAVPETALSPLUG-22: Maven Petals Plugin will be improved to add both new parts when updating the JBI descriptor of a service unit
  • PETALSESBCONT-305: Petals ESB autoloader will be improved to support deployment of such service units.
Show
Christophe DENEUX added a comment - Tue, 10 Jun 2014 - 16:16:01 +0200 - edited A service assembly does not contain only a set of service units. It contains also:
  • their identification
  • the component on which each service unit must be deployed.
So we can't deploy a service unit as-is. We introduced the deployable service unit that is a service unit with a JBI descriptor extended by:
  • an identification part,
  • and another part to define the target component name.
    <jbi:jbi xmlns:jbi="http://java.sun.com/xml/ns/jbi"
       xmlns:petals-jbi="http://petals.ow2.org/extensions/jbi/1.0"
       xmlns:petals.ow2.org="http://petals.ow2.org/" version="1.0">
       <jbi:services binding-component="false">
          ...
          <petals-jbi:identification>
             <jbi:name>su-name</jbi:name>
             <jbi:description>A Service Unit deployable directly</jbi:description>
          </petals-jbi:identification>
          <petals-jbi:component-name>target-component-id</petals-jbi:component-name>
       </jbi:services>
    </jbi:jbi>
To keep Petals ESB compliant with JBI, and to avoid to update the Petals ESB server side, we choose:
  • to create automatically a temporary SA during such a service unit deployment,
  • the temporary SA creation is done on Petals ESB client side (into Petals Administration API) or Petals ESB Autoloader extension.
Impacted Petals components:
  • PETALSSTUD-317: Petals Studio will be improved to add the both new parts of the service unit JBI descriptor in the service unit wizard.
  • PETALSESBCLI-99: Petals CLI will be improved to support deployment of such service units.
  • MAVPETALSPLUG-22: Maven Petals Plugin will be improved to add both new parts when updating the JBI descriptor of a service unit
  • PETALSESBCONT-305: Petals ESB autoloader will be improved to support deployment of such service units.
Hide
Christophe DENEUX added a comment - Tue, 13 Sep 2016 - 11:22:05 +0200

This issue should be closed when PETALSSTUD-317 will be closed

Show
Christophe DENEUX added a comment - Tue, 13 Sep 2016 - 11:22:05 +0200 This issue should be closed when PETALSSTUD-317 will be closed

People

Dates

  • Created:
    Tue, 10 Jun 2014 - 15:52:35 +0200
    Updated:
    Tue, 13 Sep 2016 - 11:22:05 +0200