PEtALS

A Service Unit is the way to configure component to provide or consume a service in the environment.

For instance, a ServiceUnit can be deployed on a SOAP Binding Component either

A ServiceUnit is a package that contains all the artefacts that need a component to provide or consume a service.

This package is a zip archive, and is opaque to the PEtALS container. The content of the package is component-specific.

All the PEtALS components are based on the same framework, and the structure of their SeviceUnit packages are the same one :

service-unit.zip
  + META-INF
       - jbi.xml (mandatory, specific to each component)
       - service.wsdl (optional)
  - ... extra artefacts (optional, depending on the component)

To deploy a Service Unit, it has to be package itself in another archive, called a ServiceAssembly.

A Service Assembly is a set of Service Unit, and optionnaly defines JBI connections. It also contains a jbi.xml descriptor.

The Service Assembly can be deployed using specific JBI tasks.

Include the following code into your build.xml file to reference them :

<path id="jbitask.classpath">
  <pathelement location="petals-ant.jar" />
</path>

<!-- import taskdef of Petals ant tasks into this ant file-->
<taskdef file="taskdef.properties">
  <classpath refid="jbitask.classpath"/>
</taskdef>

The Service Assembly can be managed using the JMX administration of PEtALS.

To connect to a PEtALS JMX server with RMI, use the following URI :

service:jmx:rmi:///jndi/rmi://<host>:<port>/management/rmi-jmx-connector