On Wed, Apr 23, 2008 at 3:53 AM, Mario Antollini (JIRA) <
[email protected]> wrote:

> Multiplicity for heterogeneous bindings not working
> ---------------------------------------------------
>
>                 Key: TUSCANY-2259
>                 URL: https://issues.apache.org/jira/browse/TUSCANY-2259
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SCA Assembly Model
>    Affects Versions: Java-SCA-1.2
>         Environment: Maven version: 2.0.8
> Java version: 1.6.0_05
> OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"
>            Reporter: Mario Antollini
>
>
> Hello,
>
> I have been trying to make the catalog of store-market to be referencing
> targets with heterogenous bindings (by means of multiplicity)
>
> The following reference (two targets using the same binding) works fine:
>
> <reference name="goodsCatalog" multiplicity="0..n"
> target="VegetablesCatalogWebService FruitsCatalogWebService" >
>
>        <binding.ws />
>
> </reference>
>
> At runtime, the goodsCatalog gets "populated" with both vegetables and
> fruits.
>
> However, I could not get goodsCatalog to be populated with the same items
> when using heterogenous bindings. I was trying with a local FruitsCatalog
> and a WS VegetablesCatalog.
>
> I tried:
>
> 1 - Approach 1:
>
> <reference name="goodsCatalog" multiplicity="0..n"
> target="VegetablesCatalogWebService MarketFruitsCatalog" >
>
>        <binding.ws />
>
>        <binding.sca />
>
> </reference>
>
> Result:
> Only fruits were obtained. Thus, the local binding was working but the web
> service one was not.
>
> 2 - Approach 2:
>
> <reference name="goodsCatalog" multiplicity="0..n"
> target="MarketFruitsCatalog VegetablesCatalogWebService " >
>
>        <binding.sca />
>
>        <binding.ws />
>
> </reference>
>
> Result:
> Only fruits were obtained. Thus, the local binding was working but the web
> service one was not.
>
> 3 - Approach 3
>
> <reference name="goodsCatalog" multiplicity="0..n"
> target="MarketFruitsCatalog VegetablesCatalogWebService " >
>
>        <binding.ws />
>
> </reference>
>
> Result:
> Nothing was obtained in the catalog.
>
> 4 - Approach 4
>
> <reference name="goodsCatalog" multiplicity="0..n"
> target="VegetablesCatalogWebService  MarketFruitsCatalog " >
>        <binding.ws />
> </reference>
>
> Result:
> Nothing was obtained in the catalog.
>
>
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
Hi Mario

Is it possible for you to print out the resolved composite that the
workspace generates based on, for example, approach 1. I had a similar
scenario work for me recently but this wasn't in the context of the Tutorial
and it would be interesting to see how the workspace is resolving the
bindings in you example.

Simon

Reply via email to