At this point, an endpoint reference gets its "target" from the composite via the @target attribute on <reference> or a <wire> element. To echo what you said, we should be able to share the <wire> entries through the EndpointRegistry (should be renamed and extended to be DomainRegistry :-). When Tuscany runtime tries to resolve an endpoint reference to the target endpoint, we need to look up the Wire entries first to update the target endpoint URI before matching the endpoints.

Thanks,
Raymond
--------------------------------------------------
From: "ant elder" <[email protected]>
Sent: Friday, February 12, 2010 11:12 AM
To: <[email protected]>
Subject: Adding and removing wires dynamically during runtime

Another part of the distributed domain support we've still to do is
deploying composites with <wire> elements which retarget existing
references. This is described in section 5.4 in the Assembly spec. The
wires could be deployed anywhere in the domain so the reference is not
necessarily in the same JVM as the wire, so this is new information we
need to propergate around the distributed registry, and we need to be
able to put things back when a wire is undeployed so it needs a way to
remember the old target.

...ant

Reply via email to