thanks for your answer. I try to formalize my question in a differnt way:
Assuming a distributed system developed with SCA (S1). We have 5
components (A, B, C, D, E).
Now, another system is developed, also with SCA (S2). It requires
functionality that is already implemented in S1, more precisely
component A and B.
What happens? The developer who develops S2 does not know about A and B.
They are not provided as Webservice and are not registered within a
service registry.
How does the developer find A and B? Should A and B be exposed as web
service from the beginning and published into a service registry?
Or are they exposed as web service only on demand? But in this case: How
does the developer know about A and B?
Next problem: A third system has to be developed, S3. It requires
functionality that is part of S1, but not A, B, C, D or E.
The developer of S1 declares himself ready to comply with exposing the
required functionality as a component F. This can be used by S1 and S3.
But there are other ways possible: F could also be part of S3 and S1
uses this component as part of S3. Or should F be a completely new
application? What is the right way to expose shared functionality?