Hi,
I came across a scenario where multiple Nodes are created from the same
NodeFactory. For example, in an OSGi framework, we have a singleton of
NodeFactory which internally maintains the ExtensionPointRegistry. Two Nodes
(A and B) with the same domain URI are created from the NodeFactory. These
two Nodes will share the same EndpointRegistry as they have the same
domainURI and domainRegistryURI. Node A publishes an endpoint to the
EndpointRegistry and it will be seen by Node B. In this case, we cannot tell
if the endpoint from A is local or remote to B. As a result, binding.sca
cannot decide if it should handle the invocation from B to A as a local or
remote one.
I propose that we add domainURI and nodeURI to the RuntimeEndpoint model and
they will be propagated as part of the endpoint descriptions across Nodes
via the SCA domain endpoint registry. This way, we don't have to depend on
the registry's membership management to tell if an endpoint is from the same
or different node.
If there is no objection, I'll make the changes.
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