Hi,
I made some changes under [1] to improve how SCA client works in Tuscany.
Here is the basic idea:
1) The SCAClientFactoryImpl connects to an SCA domain. It looks up an
EndpointRegistry for the domain and receives Endpoints published to the
domain by nodes.
2) The getService() call will find a matching Endpoint by the serviceName
(componentName/serviceName/bindingName)
3) An endpoint reference is created from the Endpoint (which has the binding
and URI). It's similar as we have a component reference with @target.
4) A service proxy is created from the endpoint reference
[1] http://svn.apache.org/viewvc?rev=908285&view=rev
Thanks,
Raymond
---
Raymond Feng
Apache Tuscany PMC Member: http://tuscany.apache.org
Co-author of Tuscany In Action (A book on Tuscany SCA):
http://tuscanyinaction.com/
www.enjoyjava.com
http://twitter.com/raymondfeng