Frascati sca composite files - easysoa/EasySOA GitHub Wiki
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>
Rules :
In the main composite :
- the implementation.composite tag must be used inside a service.
- the service from the implemented composite must be wired if used with a reference tag.
In the included composite :
- the services designed to be used with a tag implementation.composite must be promoted to be visible by the main composite.