Working with JBI Descriptors

Version 1 by Vincent Zurczak
on Jul 27, 2010 18:41.

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

Changes (12)

View Page History

The Petals studio comes with an editor that eases the edition of jbi.xml files: the JBI editor
This editor is made up of a source tab, sometimes couplesd to additional tabs.

\\

* *Select a service from the Petals Services view*
This helper opens a selection dialog listing all the \[services from the Petals Services view\|Getting familiar with the Petals Services view].
\]. You can then select the service you want to fill-in the interface, service and end-point properties.

!petals-studio-editing-jbi-10.jpg!
h2. With Service Assembly projects

When you edit jbi.xml located in SA projects with the JBI editor, you have currently two tabs.

The first one is called *General* and provides a user interface to select the service-units to embed, as well as to edit their properties.
When you add a new SU in a SA, you should update the pom.xml of the SA project, and reference the SU project.

_Some work is planned to automatically update the SA's pom.xml._
There is an option in the Petals preferences to update automatically the SA's POM when its jbi.xml file changes.
The Petals preferences are reachable by selecting *Window > Preferences* and then by going in the *Petals* category.
{note}


* Content assistance, based on the XML Schemas of Petals.
The proposals are strictly filtered (the insertion of these elements is simulated to determine whether a proposal is valid or not).

!petals-studio-editing-jbi-12.jpg!

\\
When other tabs are visible in the editor, the source and the other tabbs are generally synchronized in memory (no need to save the file to switch between tabs).

h1. Validation of jbi.xml files

Petals Studio embeds a builder that can validate jbi.xml files.
When located inside a Petals project, *jbi.xml files are natively automatically validated on each file modification*.
Notice that this behavior can be changed in the menu *Project* (*Build Automatically* option).

\\
It is also possible to manually trigger the validation of a jbi.xml file.
Right-click it and select *Petals > Validate*.

!petals-studio-editing-jbi-19.jpg!

\\
The validation process results in a list (possibly empty) of errors and warnings that were found.
These errors and warnings are visible in the *Problems* view and as markers, which are added on the jbi.xml file.