It might be a bug in the spec as it conflicts with the following statements
from the same document:
1620 The wire element has the following attributes:
1621 • source (required) – names the source component reference. Valid URI
schemes are:
1622 o <component-name>/<reference-name>
1623 where the source is a component reference. The specification of the
1624 reference name is optional if the source component only has one
reference
1625 • target (required) – names the target component service. Valid URI
schemes are
1626 o <component-name>/<service-name>
1627 where the target is a service of a component. The specification of
the
1628 service name is optional if the target component only has one service
with
1629 a compatible interface
IMO, now composite services and references use "promote" to connect to
component services/references. I'll raise an issue with the SCA assembly
spec to get it clarified.
Thanks,
Raymond
--------------------------------------------------
From: "Feng Wang" <[EMAIL PROTECTED]>
Sent: Wednesday, July 16, 2008 2:20 AM
To: <[email protected]>
Subject: Can someone explain the wire description on assembly spec?
Hi,all
In the assembly spec,there has a description on wire.
3791 SCA wires connect service references to services.
3792 Within a composite, valid wire sources are component references and
composite services. Valid wire
3793 targets are component services and composite references.
The wire source can be composite service and the target can be composite
reference.
It would be appreciated anybody can explain this.
--------------
Feng Wang
2008-07-16