diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-04 22:02:45 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-11-04 22:02:45 +0000 |
commit | e8419233f758611b0b73057f685f1aff675b7e0e (patch) | |
tree | f6781463737e8eafa6df382eb131ec0743630545 /sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/store.composite | |
parent | f4a89e8eef219137bcfb625cbf770baa642312a8 (diff) |
Providing a store-merger application that explores adding new catalogs from different cloud environments to the store application
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@832884 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/store.composite')
-rw-r--r-- | sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/store.composite | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/store.composite b/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/store.composite new file mode 100644 index 0000000000..5671c81f1a --- /dev/null +++ b/sandbox/sca-cloud-tutorial/store-merger-appengine-webapp/war/store.composite @@ -0,0 +1,68 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. +--> +<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903" + xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1" + xmlns:s="http://store" + targetNamespace="http://store" + name="catalog"> + + <component name="CatalogAggregator"> + <implementation.java class="services.CatalogAggregatorImpl"/> + <property name="currencyCode">USD</property> + <service name="Catalog"> + <interface.java interface="services.Catalog"/> + <tuscany:binding.jsonrpc uri="/Catalog"/> + </service> + <reference name="fruitsCatalog"> + <interface.java interface="services.Catalog"/> + <tuscany:binding.jsonrpc uri="http://tuscany-store-catalog.appspot.com/Catalog"/> + </reference> + <reference name="vegetablesCatalog"> + <interface.java interface="services.Catalog"/> + <tuscany:binding.jsonrpc uri="http://tuscany.figueiredos.com/store-catalog-ibmcloud-webapp/Catalog"/> + </reference> + <reference name="currencyConverter" target="CurrencyConverter" /> + </component> + + <component name="CurrencyConverter"> + <implementation.java class="services.CurrencyConverterImpl" /> + <service name="CurrencyConverter"> + <interface.java interface="services.CurrencyConverter"/> + </service> + </component> + + <component name="ShoppingCartManager"> + <implementation.java class="services.ShoppingCartManager"/> + <service name="ShoppingCart"> + <tuscany:binding.jsonrpc uri="/ShoppingCart"/> + </service> + <reference name="userService" target="UserService"> + <binding.sca name="local"/> + </reference> + </component> + + <component name="UserService"> + <implementation.java class="org.apache.tuscany.sca.cloud.user.impl.GoogleUserService"/> + <service name="UserService"> + <binding.sca name="local"/> + <tuscany:binding.jsonrpc uri="/User"/> + </service> + </component> +</composite> |