Petals ESB lifecycles

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

Changes (1)

View Page History
* When shutting down a service unit, its resources are released.
* when undeploying a provider service unit, it unregistered from the component.

{petalslink}
According to the JBI specification, actually, the 'STOPPED' and 'STARTED' state are used for a two-phases start (see javax.jbi.component.ServiceUnitManager javadoc):
* Initialising the SU (going into the 'STOPPED' state) is the first phase of the two-phases start: services that are related to deployment (such as answering requests needed for deployment of other SUs of the same SA I guess...) are ready to answer requests.
* Starting the SU (going into the 'STARTED' state) is the second phase of the the two-phases start: request related to deployment are sent now.

We don't really implement that, all endpoints are registered after start, but actually we have no example where this two-phase start is needed... this is not clear!
{petalslink}