Antollini, Mario wrote:
I have finished coding the tutorial marketplace scenario.
I have attached all the necessary files in
https://issues.apache.org/jira/browse/TUSCANY-2224
Mario, that looks pretty good, I just got it working :)
One minor comment:
MarketCatalogImpl could be simplified a bit to call each catalog once
instead of twice.
And some ideas:
- We could add more catalogs to the list (a local one, the Web service
ones, and the EJB catalog running on Geronimo) to really leverage the
reference with multiplicity 0..n. We'd just need to change the contents
of the different catalogs (for example have fruits/vegetables from
different places).
That raises an interesting question about the mix of bindings that can
be used on a reference with multiplicity 0..n. Can different targets use
different bindings or do they have to all use the same binding? I think
it's worth investigating.
- Use standalone <wire> elements in a different .composite file in a
different contribution to wire the goodsCatalog reference to the catalogs.
IMO this is a typical scenario where people want to add catalogs without
changing the market contribution which has already been installed in the
domain.
- Another idea, add a Web Service binding to your StoreMarket catalog
component, add a markup to the prices, and that makes it a broker :)
Thoughts?
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]