Hi,

Thanks for showing interest in Tuscany.  If you are looking for a sample
there is simple on that is available in
http://svn.apache.org/repos/asf/incubator/tuscany/branches/sca-java-M2/samples/standalone/calculator-combowhich
demonstrates the composite implementation.

All of our samples have appropriate readmes that will help you get them
working.

Thanks

- Venkat

On 11/22/06, liujian <[EMAIL PROTECTED]> 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.

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]


Reply via email to