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.