Skip to content

Frascati sca composite files

JGuillemotte edited this page Oct 25, 2012 · 5 revisions

Some tips about the development of SCA composite files :

About the implementation.composite tag :

To use a composite in an implementation.composite tag, there are several rules to respect, here is an code sample :

Main composite

<sca:component name="httpProxyService">
    <sca:reference name="handlerManager">
        <sca:interface.java interface="org.easysoa.proxy.core.api.exchangehandler.HandlerManager" />
    </sca:reference>
   ...
</sca:component>

<sca:wire source="httpProxyService/handlerManager" target="handlerManagerServBaseComp/handlerManagerComponentService"/>

<sca:component name="handlerManagerServBaseComp">
    <sca:service name="handlerManagerComponentService">
        <sca:interface.java interface="org.easysoa.proxy.core.api.exchangehandler.HandlerManager" />
    </sca:service>
    <sca:implementation.composite name="handlerManagerBase.composite"/>
</sca:component>

Included composite

<sca:service name="handlerManagerComponentService" promote="handlerManagerComponent/handlerManagerServiceBase">
    <sca:interface.java interface="org.easysoa.proxy.core.api.exchangehandler.HandlerManager" />
</sca:service>
Clone this wiki locally