easysoa/EasySOA — Issue #70: Discovery by parsing : Hook in FraSCAti to detect a composite start in a standalone FraSCAti
Author: JGuillemotte
Created: 2011-11-18 14:56:26+00:00
State: open
Labels: INRIA, Open Wide

See Discovery by SCA parsing issue : https://github.com/easysoa/EasySOA/issues/28

FraSCAti Hook Issue :

Currently, the SCA import works only with a composite file specified in the SCA import Nuxeo page. We want to integrate more the smarttravel trip sample in the demo, especially to discover services when a sample is started in FraSCAti.

In the current demo release (0.3), the smarttravel trip sample is started in an external FraSCAti engine. As the SCA import works in an Nuxeo embeded FraSCAti engine, it is not possible to make a deeper integration.

Here we have 2 Solutions :

Use an Nuxeo embeded FraSCAti and start the sample in this engine : this solution can be used in a development platform or for a short term solution.
or
still use an external FraSCAti engine and add a hook to plug custom features on the composite processing cycle.

The solution could be to add a hook in FraSCAti : This hook could work with a 'LifeCycleListener' interface which defines a 'handle' method with 2 parameters : the processing mode and the processing context.
To indicate if FraSCAti have to send events to a lifecycle listener, we can use a parameter in the FraSCAti launch command.

For the next release of the demo, if we have FraSCAti works in Nuxeo, we could start the smarttravel sample in the Frascati Nuxeo embeded.