Henry Saputra wrote:
Hi,
I am new with SCA and Tuscany development and has a question regarding
how Tuscany process the composite.
In the trunk code for Tuscany I noticed that in the samples projects the
.composite files dont have <service> or <reference> promoted.
How does Tuscany runtime knows which components should be exposed to
outside world?
Thanks,
- Henry
>
Hi Henry,
If the .composite file is deployed to the domain then all the
components inside it become part of the domain. These components
are activated by Tuscany and this makes any services defined by
these components available to be invoked.
Promoting a service or reference means that it will be exposed
if the composite is used as the implementation of another component
by naming the composite on an <implementation.composite> element.
Simon