Hi,
A SCA composite can be used as an implementation (implementation.composite)
for a component. This is so-called recursive composition. It allows
pre-assembled composites to be reused.
"promote" can be used to make services or references declared on a component
inside the composite visible for wiring at the composite level. The
composite services and references can be then further configured when it's
used as a component implementation at outer level.
Hope the following samples help.
<composite name="Composite1" xmlns:ns="http://dummy">
<component name="C1">
<implementation.composite name="ns:Composite2">
<!-- wire ref1 to component C3's service1 -->
<reference name="ref1" target="C3/service1"/>
<!-- configure the service with ws binding -->
<service name="svc1">
<binding.ws .../>
</service>
</component>
</composite>
<composite name="Composite2" targetNamespace="http://dummy"
xmlns:ns="http://dummy">
<component name="C2">
<implementation.java class="my.C2Impl">
</component>
<!-- innerService of component C2 is promoted as svc1 -->
<service name="svc1" promote="C2/innerService"/>
<!-- innerReference of component C2 is promoted as ref1 -->
<reference name="ref1" promote="C2/innerReference"/>
</composite>
Thanks,
Raymond
----- Original Message -----
From: "Jason Clark" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Friday, October 12, 2007 2:21 PM
Subject: Promote?
Hello all. I am trying to understand what the promote keyword in the
composite file means? I've so far been able to find a definition of that,
and the composite file in general.
Thanks,
Jason
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]