On Nov 22, 2006, at 8:56 AM, liujian wrote:
Hi, All:
I am an enthusiast about tuscany and wonder to know if Tuscany M2
release will support the feature that Composite includes Composites. I
have download latest source code from the tuscany SVN and can not find
any example using the feature.
Yes it supports both <include> and <implementation.composite>
For now though you need to specify how to locate the composite being
included using a scdlLocation or scdlResource attribute:
<include name="MyValueServices" scdlLocation="./
MyValueServices.composite"/>
assuming default.scdl and MyValueServices.composite are in the same
directory.
This is because the 0.96 spec does not say much (anything really)
about how to deploy these things. One of the things I think we should
tackle in our next release is a consistent way to deploy composites,
scdl, jars, wsdl, xsd etc. so that things like scdlLocation are not
needed.
--
Jeremy
Following is the example I extract from SCA Assembly Model 0.96
specification (from page 38).
****default.scdl****
<?xml version="1.0" encoding="ASCII"?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
name="MyValueComposite2" >
<include name="MyValueServices"/>
<include name="MyValueComponents"/>
<include name="MyValueReferences"/>
<include name="MyValueWires"/>
</composite>
****MyValueServices.composite****
<?xml version="1.0" encoding="ASCII"?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
name="MyValueServices" >
<service name="MyValueService">
<interface.java interface="services.myvalue.MyValueService"/>
<binding.ws port="http://www.myvalue.org/MyValueService#
wsdl.endpoint(MyValueService/MyValueServiceSOAP)"/>
</service>
</composite>
****MyValueServiceComponents.composite****
<?xml version="1.0" encoding="ASCII"?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
name="MyValueComponents" >
<component name="MyValueServiceComponent">
<implementation.java class="services.myvalue.MyValueServiceImpl"/>
<property name="currency">EURO</property>
</component>
<component name="StockQuoteMediatorComponent">
<implementation.java class="services.myvalue.SQMediatorImpl"/>
<property name="currency">EURO</property>
</component>
<composite>
****MyValueReferences.composite****
<?xml version="1.0" encoding="ASCII"?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
name="MyValueReferences" >
<reference name="CustomerService">
<interface.java interface="services.customer.CustomerService"/>
<binding.sca/>
</reference>
<reference name="StockQuoteService">
<interface.java interface="services.stockquote.StockQuoteService"/>
<binding.ws port="http://www.stockquote.org/StockQuoteService#
wsdl.endpoint(StockQuoteService/StockQuoteServiceSOAP)"/>
</reference>
</composite>
****MyValueWires.composite****
<?xml version="1.0" encoding="ASCII"?>
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
name="MyValueWires" >
<wire>
<source.uri>MyValueService</source.uri>
<target.uri>MyValueServiceComponent</target.uri>
</wire>
<wire>
<source.uri>MyValueServiceComponent/customerService</source.uri>
<target.uri>CustomerService</target.uri>
</wire>
<wire>
<source.uri>MyValueServiceComponent/stockQuoteService</source.uri>
<target.uri>StockQuoteMediatorComponent</target.uri>
</wire>
<wire>
<source.uri>StockQuoteMediatorComponent</source.uri>
<target.uri>StockQuoteService</target.uri>
</wire>
</composite>
Does Tuscany support above default.scdl if all implementations are
right? And if the answer is yes, could any body give an example
that can
be run in tuscany M2?
You sincerely
liujian
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]