From 0cc8ed2208c9d04057bcb00859490290e3aa948c Mon Sep 17 00:00:00 2001 From: lresende Date: Wed, 11 Nov 2009 23:08:11 +0000 Subject: Moving 1.x branches git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@835129 13f79535-47bb-0310-9956-ffa450edef68 --- branches/sca-java-1.3.2/tutorial/README | 29 -- branches/sca-java-1.3.2/tutorial/Tutorial.pdf | Bin 309524 -> 0 bytes .../tutorial/assets/META-INF/sca-contribution.xml | 27 -- branches/sca-java-1.3.2/tutorial/assets/pom.xml | 89 ------- .../tutorial/assets/services/Cart.java | 28 -- .../tutorial/assets/services/Catalog.java | 27 -- .../assets/services/CurrencyConverter.java | 29 -- .../assets/services/CurrencyConverterImpl.java | 38 --- .../assets/services/FruitsCatalogImpl.java | 52 ---- .../tutorial/assets/services/Item.java | 66 ----- .../tutorial/assets/services/ShoppingCartImpl.java | 112 -------- .../tutorial/assets/services/Total.java | 29 -- .../assets/services/VegetablesCatalogImpl.java | 42 --- .../assets/services/db/ShoppingCartTableImpl.java | 171 ------------ .../tutorial/assets/services/db/cart.sql | 27 -- .../assets/services/map/FruitsCatalogImpl.java | 56 ---- .../assets/services/market/MarketCatalogImpl.java | 66 ----- .../assets/services/merger/MergedCatalogImpl.java | 66 ----- .../sca-java-1.3.2/tutorial/assets/tutorial.html | 37 --- .../tutorial/assets/uiservices/store.html | 141 ---------- .../sca-java-1.3.2/tutorial/catalog-ejb/pom.xml | 110 -------- .../src/main/java/services/ejb/CatalogEJBHome.java | 28 -- .../main/java/services/ejb/CatalogEJBRemote.java | 28 -- .../src/main/java/services/ejb/Vegetable.java | 54 ---- .../ejb/VegetablesCatalogEJBSessionBean.java | 62 ----- .../src/main/resources/META-INF/ejb-jar.xml | 35 --- .../src/main/resources/META-INF/openejb-jar.xml | 78 ------ .../main/resources/META-INF/sca-contribution.xml | 24 -- .../resources/VegetablesCatalogEJB.componentType | 26 -- .../src/main/resources/catalog-ejb.composite | 31 --- .../test/java/client/CatalogEJBClientTestCase.java | 67 ----- .../java/org/omg/stub/javax/ejb/_EJBHome_Stub.java | 223 ---------------- .../org/omg/stub/javax/ejb/_EJBObject_Stub.java | 252 ------------------ .../java/org/omg/stub/javax/ejb/_Handle_Stub.java | 89 ------- .../org/omg/stub/javax/ejb/_HomeHandle_Stub.java | 89 ------- .../java/services/ejb/_CatalogEJBHome_Stub.java | 269 ------------------- .../java/services/ejb/_CatalogEJBRemote_Stub.java | 292 --------------------- .../META-INF/sca-contribution.xml | 25 -- .../catalog-mediation/catalog-mediation.composite | 34 --- .../tutorial/catalog-mediation/pom.xml | 91 ------- .../mediation/VegetablesCatalogMediationImpl.java | 51 ---- .../tutorial/catalog-webapp/catalog-web.composite | 43 --- .../sca-java-1.3.2/tutorial/catalog-webapp/pom.xml | 110 -------- .../webapp/META-INF/sca-contribution.xml | 24 -- .../tutorial/catalog-webapp/webapp/WEB-INF/web.xml | 41 --- .../tutorial/catalog-webapp/webapp/catalog.jsp | 52 ---- .../sca-java-1.3.2/tutorial/domain/cloud.composite | 35 --- .../tutorial/domain/cloud/CatalogEJBNode.composite | 35 --- .../domain/cloud/CatalogMediationNode.composite | 33 --- .../domain/cloud/CatalogWebAppNode.composite | 36 --- .../tutorial/domain/cloud/CatalogsNode.composite | 33 --- .../tutorial/domain/cloud/CurrencyNode.composite | 33 --- .../domain/cloud/StoreClientNode.composite | 33 --- .../tutorial/domain/cloud/StoreDBNode.composite | 35 --- .../tutorial/domain/cloud/StoreEUNode.composite | 36 --- .../domain/cloud/StoreMarketNode.composite | 35 --- .../domain/cloud/StoreMashupNode.composite | 35 --- .../domain/cloud/StoreMergerNode.composite | 35 --- .../tutorial/domain/cloud/StoreNode.composite | 35 --- .../domain/cloud/StoreSupplierNode.composite | 36 --- .../tutorial/domain/domain.composite | 35 --- .../domain/launch/LaunchCatalogMediationNode.java | 28 -- .../tutorial/domain/launch/LaunchCatalogsNode.java | 28 -- .../tutorial/domain/launch/LaunchCurrencyNode.java | 28 -- .../tutorial/domain/launch/LaunchStoreDBNode.java | 28 -- .../tutorial/domain/launch/LaunchStoreEUNode.java | 28 -- .../domain/launch/LaunchStoreMarketNode.java | 28 -- .../domain/launch/LaunchStoreMashupNode.java | 28 -- .../domain/launch/LaunchStoreMergerNode.java | 28 -- .../tutorial/domain/launch/LaunchStoreNode.java | 28 -- .../domain/launch/LaunchStoreSupplierNode.java | 28 -- .../domain/launch/LaunchTutorialDomainManager.java | 33 --- branches/sca-java-1.3.2/tutorial/domain/pom.xml | 172 ------------ .../sca-java-1.3.2/tutorial/domain/workspace.xml | 34 --- branches/sca-java-1.3.2/tutorial/pom.xml | 58 ---- .../store-client/META-INF/sca-contribution.xml | 23 -- .../tutorial/store-client/client/Shopper.java | 29 -- .../tutorial/store-client/client/ShopperImpl.java | 63 ----- .../store-client/launch/LaunchStoreClientNode.java | 43 --- .../sca-java-1.3.2/tutorial/store-client/pom.xml | 123 --------- .../tutorial/store-client/services/Cart.java | 28 -- .../tutorial/store-client/services/Catalog.java | 27 -- .../tutorial/store-client/services/Item.java | 66 ----- .../tutorial/store-client/services/Total.java | 29 -- .../tutorial/store-client/store-client.composite | 38 --- .../store-db/META-INF/sca-contribution.xml | 27 -- branches/sca-java-1.3.2/tutorial/store-db/pom.xml | 126 --------- .../tutorial/store-db/store-db.composite | 75 ------ .../store-eu/META-INF/sca-contribution.xml | 26 -- branches/sca-java-1.3.2/tutorial/store-eu/pom.xml | 111 -------- .../tutorial/store-eu/store-eu.composite | 70 ----- .../tutorial/store-eu/uiservices/store-eu.html | 142 ---------- .../store-market/META-INF/sca-contribution.xml | 26 -- .../sca-java-1.3.2/tutorial/store-market/build.xml | 54 ---- .../sca-java-1.3.2/tutorial/store-market/pom.xml | 77 ------ .../tutorial/store-market/store-market.composite | 68 ----- .../store-merger/META-INF/sca-contribution.xml | 26 -- .../sca-java-1.3.2/tutorial/store-merger/pom.xml | 77 ------ .../tutorial/store-merger/store-merger.composite | 75 ------ .../store-supplier/META-INF/sca-contribution.xml | 27 -- .../sca-java-1.3.2/tutorial/store-supplier/pom.xml | 127 --------- .../store-supplier/store-supplier.composite | 77 ------ .../store-test/META-INF/sca-contribution.xml | 27 -- .../tutorial/store-test/client/Shopper.java | 29 -- .../sca-java-1.3.2/tutorial/store-test/pom.xml | 201 -------------- .../store-test/test/StoreSupplierTestCase.java | 89 ------- .../tutorial/store/META-INF/sca-contribution.xml | 25 -- branches/sca-java-1.3.2/tutorial/store/pom.xml | 77 ------ .../sca-java-1.3.2/tutorial/store/store.composite | 64 ----- .../web-services/META-INF/sca-contribution.xml | 25 -- .../tutorial/web-services/catalogs.composite | 43 --- .../tutorial/web-services/currency.composite | 32 --- .../sca-java-1.3.2/tutorial/web-services/pom.xml | 77 ------ 113 files changed, 6826 deletions(-) delete mode 100644 branches/sca-java-1.3.2/tutorial/README delete mode 100644 branches/sca-java-1.3.2/tutorial/Tutorial.pdf delete mode 100644 branches/sca-java-1.3.2/tutorial/assets/META-INF/sca-contribution.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/assets/pom.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/assets/services/Cart.java delete mode 100644 branches/sca-java-1.3.2/tutorial/assets/services/Catalog.java delete mode 100644 branches/sca-java-1.3.2/tutorial/assets/services/CurrencyConverter.java delete mode 100644 branches/sca-java-1.3.2/tutorial/assets/services/CurrencyConverterImpl.java delete mode 100644 branches/sca-java-1.3.2/tutorial/assets/services/FruitsCatalogImpl.java delete mode 100644 branches/sca-java-1.3.2/tutorial/assets/services/Item.java delete mode 100644 branches/sca-java-1.3.2/tutorial/assets/services/ShoppingCartImpl.java delete mode 100644 branches/sca-java-1.3.2/tutorial/assets/services/Total.java delete mode 100644 branches/sca-java-1.3.2/tutorial/assets/services/VegetablesCatalogImpl.java delete mode 100644 branches/sca-java-1.3.2/tutorial/assets/services/db/ShoppingCartTableImpl.java delete mode 100644 branches/sca-java-1.3.2/tutorial/assets/services/db/cart.sql delete mode 100644 branches/sca-java-1.3.2/tutorial/assets/services/map/FruitsCatalogImpl.java delete mode 100644 branches/sca-java-1.3.2/tutorial/assets/services/market/MarketCatalogImpl.java delete mode 100644 branches/sca-java-1.3.2/tutorial/assets/services/merger/MergedCatalogImpl.java delete mode 100644 branches/sca-java-1.3.2/tutorial/assets/tutorial.html delete mode 100644 branches/sca-java-1.3.2/tutorial/assets/uiservices/store.html delete mode 100644 branches/sca-java-1.3.2/tutorial/catalog-ejb/pom.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/java/services/ejb/CatalogEJBHome.java delete mode 100644 branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/java/services/ejb/CatalogEJBRemote.java delete mode 100644 branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/java/services/ejb/Vegetable.java delete mode 100644 branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/java/services/ejb/VegetablesCatalogEJBSessionBean.java delete mode 100644 branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/resources/META-INF/ejb-jar.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/resources/META-INF/openejb-jar.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/resources/VegetablesCatalogEJB.componentType delete mode 100644 branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/resources/catalog-ejb.composite delete mode 100644 branches/sca-java-1.3.2/tutorial/catalog-ejb/src/test/java/client/CatalogEJBClientTestCase.java delete mode 100644 branches/sca-java-1.3.2/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_EJBHome_Stub.java delete mode 100644 branches/sca-java-1.3.2/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_EJBObject_Stub.java delete mode 100644 branches/sca-java-1.3.2/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_Handle_Stub.java delete mode 100644 branches/sca-java-1.3.2/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_HomeHandle_Stub.java delete mode 100644 branches/sca-java-1.3.2/tutorial/catalog-ejb/src/test/java/services/ejb/_CatalogEJBHome_Stub.java delete mode 100644 branches/sca-java-1.3.2/tutorial/catalog-ejb/src/test/java/services/ejb/_CatalogEJBRemote_Stub.java delete mode 100644 branches/sca-java-1.3.2/tutorial/catalog-mediation/META-INF/sca-contribution.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/catalog-mediation/catalog-mediation.composite delete mode 100644 branches/sca-java-1.3.2/tutorial/catalog-mediation/pom.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/catalog-mediation/services/mediation/VegetablesCatalogMediationImpl.java delete mode 100644 branches/sca-java-1.3.2/tutorial/catalog-webapp/catalog-web.composite delete mode 100644 branches/sca-java-1.3.2/tutorial/catalog-webapp/pom.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/catalog-webapp/webapp/META-INF/sca-contribution.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/catalog-webapp/webapp/WEB-INF/web.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/catalog-webapp/webapp/catalog.jsp delete mode 100644 branches/sca-java-1.3.2/tutorial/domain/cloud.composite delete mode 100644 branches/sca-java-1.3.2/tutorial/domain/cloud/CatalogEJBNode.composite delete mode 100644 branches/sca-java-1.3.2/tutorial/domain/cloud/CatalogMediationNode.composite delete mode 100644 branches/sca-java-1.3.2/tutorial/domain/cloud/CatalogWebAppNode.composite delete mode 100644 branches/sca-java-1.3.2/tutorial/domain/cloud/CatalogsNode.composite delete mode 100644 branches/sca-java-1.3.2/tutorial/domain/cloud/CurrencyNode.composite delete mode 100644 branches/sca-java-1.3.2/tutorial/domain/cloud/StoreClientNode.composite delete mode 100644 branches/sca-java-1.3.2/tutorial/domain/cloud/StoreDBNode.composite delete mode 100644 branches/sca-java-1.3.2/tutorial/domain/cloud/StoreEUNode.composite delete mode 100644 branches/sca-java-1.3.2/tutorial/domain/cloud/StoreMarketNode.composite delete mode 100644 branches/sca-java-1.3.2/tutorial/domain/cloud/StoreMashupNode.composite delete mode 100644 branches/sca-java-1.3.2/tutorial/domain/cloud/StoreMergerNode.composite delete mode 100644 branches/sca-java-1.3.2/tutorial/domain/cloud/StoreNode.composite delete mode 100644 branches/sca-java-1.3.2/tutorial/domain/cloud/StoreSupplierNode.composite delete mode 100644 branches/sca-java-1.3.2/tutorial/domain/domain.composite delete mode 100644 branches/sca-java-1.3.2/tutorial/domain/launch/LaunchCatalogMediationNode.java delete mode 100644 branches/sca-java-1.3.2/tutorial/domain/launch/LaunchCatalogsNode.java delete mode 100644 branches/sca-java-1.3.2/tutorial/domain/launch/LaunchCurrencyNode.java delete mode 100644 branches/sca-java-1.3.2/tutorial/domain/launch/LaunchStoreDBNode.java delete mode 100644 branches/sca-java-1.3.2/tutorial/domain/launch/LaunchStoreEUNode.java delete mode 100644 branches/sca-java-1.3.2/tutorial/domain/launch/LaunchStoreMarketNode.java delete mode 100644 branches/sca-java-1.3.2/tutorial/domain/launch/LaunchStoreMashupNode.java delete mode 100644 branches/sca-java-1.3.2/tutorial/domain/launch/LaunchStoreMergerNode.java delete mode 100644 branches/sca-java-1.3.2/tutorial/domain/launch/LaunchStoreNode.java delete mode 100644 branches/sca-java-1.3.2/tutorial/domain/launch/LaunchStoreSupplierNode.java delete mode 100644 branches/sca-java-1.3.2/tutorial/domain/launch/LaunchTutorialDomainManager.java delete mode 100644 branches/sca-java-1.3.2/tutorial/domain/pom.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/domain/workspace.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/pom.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/store-client/META-INF/sca-contribution.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/store-client/client/Shopper.java delete mode 100644 branches/sca-java-1.3.2/tutorial/store-client/client/ShopperImpl.java delete mode 100644 branches/sca-java-1.3.2/tutorial/store-client/launch/LaunchStoreClientNode.java delete mode 100644 branches/sca-java-1.3.2/tutorial/store-client/pom.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/store-client/services/Cart.java delete mode 100644 branches/sca-java-1.3.2/tutorial/store-client/services/Catalog.java delete mode 100644 branches/sca-java-1.3.2/tutorial/store-client/services/Item.java delete mode 100644 branches/sca-java-1.3.2/tutorial/store-client/services/Total.java delete mode 100644 branches/sca-java-1.3.2/tutorial/store-client/store-client.composite delete mode 100644 branches/sca-java-1.3.2/tutorial/store-db/META-INF/sca-contribution.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/store-db/pom.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/store-db/store-db.composite delete mode 100644 branches/sca-java-1.3.2/tutorial/store-eu/META-INF/sca-contribution.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/store-eu/pom.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/store-eu/store-eu.composite delete mode 100644 branches/sca-java-1.3.2/tutorial/store-eu/uiservices/store-eu.html delete mode 100644 branches/sca-java-1.3.2/tutorial/store-market/META-INF/sca-contribution.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/store-market/build.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/store-market/pom.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/store-market/store-market.composite delete mode 100644 branches/sca-java-1.3.2/tutorial/store-merger/META-INF/sca-contribution.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/store-merger/pom.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/store-merger/store-merger.composite delete mode 100644 branches/sca-java-1.3.2/tutorial/store-supplier/META-INF/sca-contribution.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/store-supplier/pom.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/store-supplier/store-supplier.composite delete mode 100644 branches/sca-java-1.3.2/tutorial/store-test/META-INF/sca-contribution.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/store-test/client/Shopper.java delete mode 100644 branches/sca-java-1.3.2/tutorial/store-test/pom.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/store-test/test/StoreSupplierTestCase.java delete mode 100644 branches/sca-java-1.3.2/tutorial/store/META-INF/sca-contribution.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/store/pom.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/store/store.composite delete mode 100644 branches/sca-java-1.3.2/tutorial/web-services/META-INF/sca-contribution.xml delete mode 100644 branches/sca-java-1.3.2/tutorial/web-services/catalogs.composite delete mode 100644 branches/sca-java-1.3.2/tutorial/web-services/currency.composite delete mode 100644 branches/sca-java-1.3.2/tutorial/web-services/pom.xml (limited to 'branches/sca-java-1.3.2/tutorial') diff --git a/branches/sca-java-1.3.2/tutorial/README b/branches/sca-java-1.3.2/tutorial/README deleted file mode 100644 index 6169a05292..0000000000 --- a/branches/sca-java-1.3.2/tutorial/README +++ /dev/null @@ -1,29 +0,0 @@ -Store Tutorial -====================================== - -This is a tutorial that shows how to use SCA and Tuscany to build multiple -variations of an online Store application. - -For an overview of the scenarios covered here, please refer to Tutorial.pdf. - -For more detailed information, please see: - -http://incubator.apache.org/tuscany/sca-java-tutorial.html - - -Running The Tutorial Application --------------------------------- - -Start the SCA Domain Manager: - cd domain - java -jar ../../modules/tuscany-node2-launcher-1.2-incubating.jar domain - -To access the SCA Manager application, point your Web browser to: - http://localhost:9990/ui/cloud/ - -Select the node you want to start (e.g StoreNode), then click the Start button. - -You should now be able to access the online Store application. Point your Web -browser to: - http://localhost:8100/ui/ - diff --git a/branches/sca-java-1.3.2/tutorial/Tutorial.pdf b/branches/sca-java-1.3.2/tutorial/Tutorial.pdf deleted file mode 100644 index e22f1b4c9d..0000000000 Binary files a/branches/sca-java-1.3.2/tutorial/Tutorial.pdf and /dev/null differ diff --git a/branches/sca-java-1.3.2/tutorial/assets/META-INF/sca-contribution.xml b/branches/sca-java-1.3.2/tutorial/assets/META-INF/sca-contribution.xml deleted file mode 100644 index cba1564cb4..0000000000 --- a/branches/sca-java-1.3.2/tutorial/assets/META-INF/sca-contribution.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - \ No newline at end of file diff --git a/branches/sca-java-1.3.2/tutorial/assets/pom.xml b/branches/sca-java-1.3.2/tutorial/assets/pom.xml deleted file mode 100644 index 0300b132b6..0000000000 --- a/branches/sca-java-1.3.2/tutorial/assets/pom.xml +++ /dev/null @@ -1,89 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-tutorial - 1.3.2-SNAPSHOT - ../pom.xml - - tutorial-assets - Apache Tuscany SCA Tutorial Reusable Assets - - - - apache.incubator - http://people.apache.org/repo/m2-incubating-repository - - - - - - org.apache.tuscany.sca - tuscany-sca-api - 1.3.2-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-data-api - 1.3.2-SNAPSHOT - - - - org.apache.derby - derby - 10.3.1.4 - - - - - ${artifactId} - ${basedir} - - - ${basedir} - - **/*.java - **/.*/** - pom.xml - build.xml - target/** - - - - - - org.apache.tuscany.sca - tuscany-maven-ant-generator - 1.3.2-SNAPSHOT - - - - generate - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/assets/services/Cart.java b/branches/sca-java-1.3.2/tutorial/assets/services/Cart.java deleted file mode 100644 index 9e6226d963..0000000000 --- a/branches/sca-java-1.3.2/tutorial/assets/services/Cart.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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. - */ - -package services; - -import org.apache.tuscany.sca.data.collection.Collection; -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface Cart extends Collection { - -} diff --git a/branches/sca-java-1.3.2/tutorial/assets/services/Catalog.java b/branches/sca-java-1.3.2/tutorial/assets/services/Catalog.java deleted file mode 100644 index 2c3b19f579..0000000000 --- a/branches/sca-java-1.3.2/tutorial/assets/services/Catalog.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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. - */ - -package services; - -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface Catalog { - Item[] get(); -} diff --git a/branches/sca-java-1.3.2/tutorial/assets/services/CurrencyConverter.java b/branches/sca-java-1.3.2/tutorial/assets/services/CurrencyConverter.java deleted file mode 100644 index e104a0423a..0000000000 --- a/branches/sca-java-1.3.2/tutorial/assets/services/CurrencyConverter.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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. - */ - -package services; - -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface CurrencyConverter { - public double getConversion(String fromCurrenycCode, String toCurrencyCode, double amount); - - public String getCurrencySymbol(String currencyCode); -} diff --git a/branches/sca-java-1.3.2/tutorial/assets/services/CurrencyConverterImpl.java b/branches/sca-java-1.3.2/tutorial/assets/services/CurrencyConverterImpl.java deleted file mode 100644 index c354aed447..0000000000 --- a/branches/sca-java-1.3.2/tutorial/assets/services/CurrencyConverterImpl.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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. - */ - -package services; - -public class CurrencyConverterImpl implements CurrencyConverter { - public double getConversion(String fromCurrencyCode, String toCurrencyCode, double amount) { - if (toCurrencyCode.equals("USD")) - return amount; - else if (toCurrencyCode.equals("EUR")) - return ((double)Math.round(amount * 0.7256 * 100)) /100; - return 0; - } - - public String getCurrencySymbol(String currencyCode) { - if (currencyCode.equals("USD")) - return "$"; - else if (currencyCode.equals("EUR")) - return "E"; //"€"; - return "?"; - } -} diff --git a/branches/sca-java-1.3.2/tutorial/assets/services/FruitsCatalogImpl.java b/branches/sca-java-1.3.2/tutorial/assets/services/FruitsCatalogImpl.java deleted file mode 100644 index 377b3d7e59..0000000000 --- a/branches/sca-java-1.3.2/tutorial/assets/services/FruitsCatalogImpl.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * 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. - */ - -package services; - -import java.util.ArrayList; -import java.util.List; - -import org.osoa.sca.annotations.Init; -import org.osoa.sca.annotations.Property; -import org.osoa.sca.annotations.Reference; - -public class FruitsCatalogImpl implements Catalog { - - @Property - public String currencyCode = "USD"; - - @Reference - public CurrencyConverter currencyConverter; - - private List catalog = new ArrayList(); - - @Init - public void init() { - String currencySymbol = currencyConverter.getCurrencySymbol(currencyCode); - catalog.add(new Item("Apple", currencySymbol + currencyConverter.getConversion("USD", currencyCode, 2.99))); - catalog.add(new Item("Orange", currencySymbol + currencyConverter.getConversion("USD", currencyCode, 3.55))); - catalog.add(new Item("Pear", currencySymbol + currencyConverter.getConversion("USD", currencyCode, 1.55))); - } - - public Item[] get() { - Item[] catalogArray = new Item[catalog.size()]; - catalog.toArray(catalogArray); - return catalogArray; - } -} diff --git a/branches/sca-java-1.3.2/tutorial/assets/services/Item.java b/branches/sca-java-1.3.2/tutorial/assets/services/Item.java deleted file mode 100644 index 81cefcdbef..0000000000 --- a/branches/sca-java-1.3.2/tutorial/assets/services/Item.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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. - */ - -package services; - - -public class Item { - private String name; - private String price; - private String origin; - - public Item() { - } - - public Item(String name, String price, String origin) { - this.name = name; - this.price = price; - this.origin = origin; - } - - public Item(String name, String price) { - this.name = name; - this.price = price; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPrice() { - return price; - } - - public void setPrice(String price) { - this.price = price; - } - - public String getOrigin() { - return origin; - } - - public void setOrigin(String origin) { - this.origin = origin; - } - -} diff --git a/branches/sca-java-1.3.2/tutorial/assets/services/ShoppingCartImpl.java b/branches/sca-java-1.3.2/tutorial/assets/services/ShoppingCartImpl.java deleted file mode 100644 index 9889921a96..0000000000 --- a/branches/sca-java-1.3.2/tutorial/assets/services/ShoppingCartImpl.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * 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. - */ - -package services; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.UUID; - -import org.apache.tuscany.sca.data.collection.Entry; -import org.apache.tuscany.sca.data.collection.NotFoundException; -import org.osoa.sca.annotations.Init; -import org.osoa.sca.annotations.Scope; - -@Scope("COMPOSITE") -public class ShoppingCartImpl implements Cart, Total { - - private Map cart; - - @Init - public void init() { - cart = new HashMap(); - } - - public Entry[] getAll() { - Entry[] entries = new Entry[cart.size()]; - int i = 0; - for (Map.Entry e: cart.entrySet()) { - entries[i++] = new Entry(e.getKey(), e.getValue()); - } - return entries; - } - - public Item get(String key) throws NotFoundException { - Item item = cart.get(key); - if (item == null) { - throw new NotFoundException(key); - } else { - return item; - } - } - - public String post(String key, Item item) { - if (key == null) { - key ="cart-" + UUID.randomUUID().toString(); - } - cart.put(key, item); - return key; - } - - public void put(String key, Item item) throws NotFoundException { - if (!cart.containsKey(key)) { - throw new NotFoundException(key); - } - cart.put(key, item); - } - - public void delete(String key) throws NotFoundException { - if (key == null || key.equals("")) { - cart.clear(); - } else { - Item item = cart.remove(key); - if (item == null) - throw new NotFoundException(key); - } - } - - public Entry[] query(String queryString) { - List> entries = new ArrayList>(); - if (queryString.startsWith("name=")) { - String name = queryString.substring(5); - for (Map.Entry e: cart.entrySet()) { - Item item = e.getValue(); - if (item.getName().equals(name)) { - entries.add(new Entry(e.getKey(), e.getValue())); - } - } - } - return entries.toArray(new Entry[entries.size()]); - } - - public String getTotal() { - double total = 0; - String currencySymbol = ""; - if (!cart.isEmpty()) { - Item item = cart.values().iterator().next(); - currencySymbol = item.getPrice().substring(0, 1); - } - for (Item item : cart.values()) { - total += Double.valueOf(item.getPrice().substring(1)); - } - return currencySymbol + String.valueOf(total); - } -} diff --git a/branches/sca-java-1.3.2/tutorial/assets/services/Total.java b/branches/sca-java-1.3.2/tutorial/assets/services/Total.java deleted file mode 100644 index 8f464e526f..0000000000 --- a/branches/sca-java-1.3.2/tutorial/assets/services/Total.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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. - */ - -package services; - -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface Total { - - String getTotal(); - -} diff --git a/branches/sca-java-1.3.2/tutorial/assets/services/VegetablesCatalogImpl.java b/branches/sca-java-1.3.2/tutorial/assets/services/VegetablesCatalogImpl.java deleted file mode 100644 index 8bfbc757db..0000000000 --- a/branches/sca-java-1.3.2/tutorial/assets/services/VegetablesCatalogImpl.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * 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. - */ - -package services; - -import java.util.ArrayList; -import java.util.List; - -import org.osoa.sca.annotations.Init; - -public class VegetablesCatalogImpl implements Catalog { - private List catalog = new ArrayList(); - - @Init - public void init() { - catalog.add(new Item("Broccoli", "$2.99")); - catalog.add(new Item("Asparagus", "$3.55")); - catalog.add(new Item("Cauliflower", "$1.55")); - } - - public Item[] get() { - Item[] catalogArray = new Item[catalog.size()]; - catalog.toArray(catalogArray); - return catalogArray; - } -} diff --git a/branches/sca-java-1.3.2/tutorial/assets/services/db/ShoppingCartTableImpl.java b/branches/sca-java-1.3.2/tutorial/assets/services/db/ShoppingCartTableImpl.java deleted file mode 100644 index cfc52c563c..0000000000 --- a/branches/sca-java-1.3.2/tutorial/assets/services/db/ShoppingCartTableImpl.java +++ /dev/null @@ -1,171 +0,0 @@ -/* - * 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. - */ - -package services.db; - -import java.sql.Connection; -import java.sql.DriverManager; -import java.sql.ResultSet; -import java.sql.SQLException; -import java.sql.Statement; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; - -import org.apache.tuscany.sca.data.collection.Entry; -import org.apache.tuscany.sca.data.collection.NotFoundException; -import org.osoa.sca.ServiceRuntimeException; -import org.osoa.sca.annotations.Destroy; -import org.osoa.sca.annotations.Init; -import org.osoa.sca.annotations.Property; - -import services.Cart; -import services.Item; -import services.Total; - -public class ShoppingCartTableImpl implements Cart, Total { - - @Property - public String database; - - private Connection connection; - - @Init - public void init() throws Exception { - Class.forName("org.apache.derby.jdbc.EmbeddedDriver", true, Thread.currentThread().getContextClassLoader()); - String baseDir = System.getProperty("basedir"); - String url = "jdbc:derby:directory:" + (baseDir != null? baseDir + "/" + database : database); - System.out.println("Connecting to database: " + url); - connection = DriverManager.getConnection(url, "", ""); - } - - @Destroy - public void shutdown() throws Exception { - if(connection != null) { - connection.close(); - connection = null; - } - } - - public Entry[] getAll() { - try { - Statement statement = connection.createStatement(); - ResultSet results = statement.executeQuery("select * from Cart"); - List> entries = new ArrayList>(); - while (results.next()) { - Item item = new Item(results.getString("name"), results.getString("price")); - entries.add(new Entry(results.getString("id"), item)); - } - return entries.toArray(new Entry[entries.size()]); - } catch (SQLException e) { - throw new ServiceRuntimeException(e); - } - } - - public Item get(String key) throws NotFoundException { - try { - Statement statement = connection.createStatement(); - ResultSet results = statement.executeQuery("select * from Cart where id = '" + key + "'"); - if (results.next()) { - return new Item(results.getString("name"), results.getString("price")); - } else { - throw new NotFoundException(key); - } - } catch (SQLException e) { - throw new ServiceRuntimeException(e); - } - } - - public String post(String key, Item item) { - if (key == null) { - key = "cart-" + UUID.randomUUID().toString(); - } - try { - Statement statement = connection.createStatement(); - String query = "insert into Cart values ('" + key + "', '" + item.getName() + "', '" + item.getPrice() + "')"; - System.out.println(query); - statement.executeUpdate(query); - } catch (SQLException e) { - throw new ServiceRuntimeException(e); - } - return key; - } - - public void put(String key, Item item) throws NotFoundException { - try { - Statement statement = connection.createStatement(); - String query = "update into Cart set name = '" + item.getName() + "', price = '" + item.getPrice() + "' where id = '" + key + "'"; - System.out.println(query); - int count = statement.executeUpdate(query); - if (count == 0) - throw new NotFoundException(key); - } catch (SQLException e) { - throw new ServiceRuntimeException(e); - } - } - - public void delete(String key) throws NotFoundException { - try { - Statement statement = connection.createStatement(); - if (key == null || key.equals("")) { - String query = "delete from Cart"; - System.out.println(query); - statement.executeUpdate(query); - } else { - String query = "delete from Cart where id = '" + key + "'"; - System.out.println(query); - int count = statement.executeUpdate(query); - if (count == 0) - throw new NotFoundException(key); - } - } catch (SQLException e) { - throw new ServiceRuntimeException(e); - } - } - - public Entry[] query(String queryString) { - try { - Statement statement = connection.createStatement(); - ResultSet results = statement.executeQuery("select * from Cart where " + queryString); - List> entries = new ArrayList>(); - while (results.next()) { - Item item = new Item(results.getString("name"), results.getString("price")); - entries.add(new Entry(results.getString("id"), item)); - } - return entries.toArray(new Entry[entries.size()]); - } catch (SQLException e) { - throw new ServiceRuntimeException(e); - } - } - - public String getTotal() { - Entry[] entries = getAll(); - double total = 0; - String currencySymbol = ""; - if (entries.length > 0) { - Item item = entries[0].getData(); - currencySymbol = item.getPrice().substring(0, 1); - } - for (Entry entry : entries) { - Item item = entry.getData(); - total += Double.valueOf(item.getPrice().substring(1)); - } - return currencySymbol + total; - } -} diff --git a/branches/sca-java-1.3.2/tutorial/assets/services/db/cart.sql b/branches/sca-java-1.3.2/tutorial/assets/services/db/cart.sql deleted file mode 100644 index 25f16cb36b..0000000000 --- a/branches/sca-java-1.3.2/tutorial/assets/services/db/cart.sql +++ /dev/null @@ -1,27 +0,0 @@ --- --- 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. --- - -DROP TABLE CART; - -CREATE TABLE CART( - id VARCHAR(50) NOT NULL, - name VARCHAR(50), - price VARCHAR(10), - primary key (id) -); diff --git a/branches/sca-java-1.3.2/tutorial/assets/services/map/FruitsCatalogImpl.java b/branches/sca-java-1.3.2/tutorial/assets/services/map/FruitsCatalogImpl.java deleted file mode 100644 index b160ba7be0..0000000000 --- a/branches/sca-java-1.3.2/tutorial/assets/services/map/FruitsCatalogImpl.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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. - */ - -package services.map; - -import java.util.ArrayList; -import java.util.List; - -import org.osoa.sca.annotations.Init; -import org.osoa.sca.annotations.Property; -import org.osoa.sca.annotations.Reference; - -import services.Catalog; -import services.CurrencyConverter; -import services.Item; - -public class FruitsCatalogImpl implements Catalog { - - @Property - public String currencyCode = "USD"; - - @Reference - public CurrencyConverter currencyConverter; - - private List catalog = new ArrayList(); - - @Init - public void init() { - String currencySymbol = currencyConverter.getCurrencySymbol(currencyCode); - catalog.add(new Item("Apple", currencySymbol + currencyConverter.getConversion("USD", currencyCode, 2.99), "34.425744,-119.711151")); - catalog.add(new Item("Orange", currencySymbol + currencyConverter.getConversion("USD", currencyCode, 3.55), "25.811018,-80.130844")); - catalog.add(new Item("Pear", currencySymbol + currencyConverter.getConversion("USD", currencyCode, 1.55), "36.596649,-121.8964")); - } - - public Item[] get() { - Item[] catalogArray = new Item[catalog.size()]; - catalog.toArray(catalogArray); - return catalogArray; - } -} diff --git a/branches/sca-java-1.3.2/tutorial/assets/services/market/MarketCatalogImpl.java b/branches/sca-java-1.3.2/tutorial/assets/services/market/MarketCatalogImpl.java deleted file mode 100644 index bd2c7d76a2..0000000000 --- a/branches/sca-java-1.3.2/tutorial/assets/services/market/MarketCatalogImpl.java +++ /dev/null @@ -1,66 +0,0 @@ - -/* - * 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. - */ - -package services.market; - -import java.util.Vector; - -import org.osoa.sca.annotations.Property; -import org.osoa.sca.annotations.Reference; - -import services.Catalog; -import services.CurrencyConverter; -import services.Item; - - -public class MarketCatalogImpl implements Catalog { - - @Property - public String currencyCode = "USD"; - - @Reference - public CurrencyConverter currencyConverter; - - @Reference(required=false) - protected Catalog[] goodsCatalog; - - - public Item[] get() { - - String currencySymbol = currencyConverter.getCurrencySymbol(currencyCode); - Vector catalog = new Vector(); - - for (int i = 0; i < goodsCatalog.length; i++) { - Item[] items = goodsCatalog[i].get(); - - for (Item item : items) { - double price = Double.valueOf(item.getPrice().substring(1)); - price = currencyConverter.getConversion("USD", currencyCode, price); - catalog.addElement(new Item(item.getName(), currencySymbol + price)); - } - } - - Item[] catalogArray = new Item[catalog.size()]; - catalog.copyInto(catalogArray); - - return catalogArray; - } - -} \ No newline at end of file diff --git a/branches/sca-java-1.3.2/tutorial/assets/services/merger/MergedCatalogImpl.java b/branches/sca-java-1.3.2/tutorial/assets/services/merger/MergedCatalogImpl.java deleted file mode 100644 index c02b4e821e..0000000000 --- a/branches/sca-java-1.3.2/tutorial/assets/services/merger/MergedCatalogImpl.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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. - */ - -package services.merger; - -import org.osoa.sca.annotations.Property; -import org.osoa.sca.annotations.Reference; - -import services.Catalog; -import services.CurrencyConverter; -import services.Item; - -public class MergedCatalogImpl implements Catalog { - - @Property - public String currencyCode = "USD"; - - @Reference - public CurrencyConverter currencyConverter; - - @Reference - public Catalog fruitsCatalog; - - @Reference - public Catalog vegetablesCatalog; - - public Item[] get() { - String currencySymbol = currencyConverter.getCurrencySymbol(currencyCode); - - Item[] fruits = fruitsCatalog.get(); - Item[] vegetables = vegetablesCatalog.get(); - - Item[] catalog = new Item[fruits.length + vegetables.length]; - int i =0; - for (Item item: fruits) { - double price = Double.valueOf(item.getPrice().substring(1)); - price = currencyConverter.getConversion("USD", currencyCode, price); - catalog[i++] = new Item(item.getName(), currencySymbol + price); - } - - for (Item item: vegetables) { - double price = Double.valueOf(item.getPrice().substring(1)); - price = currencyConverter.getConversion("USD", currencyCode, price); - catalog[i++] = new Item(item.getName(), currencySymbol + price); - } - - return catalog; - } - -} diff --git a/branches/sca-java-1.3.2/tutorial/assets/tutorial.html b/branches/sca-java-1.3.2/tutorial/assets/tutorial.html deleted file mode 100644 index 14f81e0c22..0000000000 --- a/branches/sca-java-1.3.2/tutorial/assets/tutorial.html +++ /dev/null @@ -1,37 +0,0 @@ - - - -Apache Tuscany - Online Store Tutorial - - - -

Apache Tuscany - Online Store Tutorial -

Online Store - SCA Domain -

Online Store - Fruits -

Vegetables Catalog Web Service -

Merger - Fruits and Vegetables -

Online Store - Cart Database -

Online Store - Supplier -

Online Store - Marketplace -

Merged Catalog Web Service -

EU Online Store -

Online Store Mashup - - \ No newline at end of file diff --git a/branches/sca-java-1.3.2/tutorial/assets/uiservices/store.html b/branches/sca-java-1.3.2/tutorial/assets/uiservices/store.html deleted file mode 100644 index 095570f949..0000000000 --- a/branches/sca-java-1.3.2/tutorial/assets/uiservices/store.html +++ /dev/null @@ -1,141 +0,0 @@ - - - -Store - - - - - - - - -

Store

-
-

Catalog

-
-
-
- -
- -
- -

Your Shopping Cart

-
-
-
-
-
- - - (feed) -
-
- - diff --git a/branches/sca-java-1.3.2/tutorial/catalog-ejb/pom.xml b/branches/sca-java-1.3.2/tutorial/catalog-ejb/pom.xml deleted file mode 100644 index 7ce9b0c089..0000000000 --- a/branches/sca-java-1.3.2/tutorial/catalog-ejb/pom.xml +++ /dev/null @@ -1,110 +0,0 @@ - - - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-tutorial - 1.3.2-SNAPSHOT - ../pom.xml - - - tutorial-catalog-ejb - Apache Tuscany SCA Tutorial Catalog EJB - jar - - - - org.apache.geronimo.specs - geronimo-ejb_3.0_spec - 1.0 - provided - - - - junit - junit - 4.2 - test - - - - org.apache.geronimo.modules - geronimo-openejb - 2.1.1 - test - - - org.apache.geronimo.modules - geronimo-connector - - - org.apache.geronimo.modules - geronimo-persistence-jpa10 - - - org.apache.openejb - openejb-ejbd - - - org.apache.openejb - openejb-server - - - org.apache.openejb - openejb-loader - - - org.apache.openejb - openejb-jee - - - org.apache.openejb - openejb-ejbd - - - org.apache.openejb - openejb-javaagent - - - com.sun.xml.bind - jaxb-impl - - - - - - - - ${artifactId} - - - ${pom.basedir}/src/main/resources - true - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/java/services/ejb/CatalogEJBHome.java b/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/java/services/ejb/CatalogEJBHome.java deleted file mode 100644 index c7ad31b682..0000000000 --- a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/java/services/ejb/CatalogEJBHome.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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. - */ - -package services.ejb; - -import javax.ejb.EJBHome; - -public interface CatalogEJBHome extends EJBHome { - - CatalogEJBRemote create() throws javax.ejb.CreateException, java.rmi.RemoteException; - -} diff --git a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/java/services/ejb/CatalogEJBRemote.java b/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/java/services/ejb/CatalogEJBRemote.java deleted file mode 100644 index 7e79fc8b9d..0000000000 --- a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/java/services/ejb/CatalogEJBRemote.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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. - */ - -package services.ejb; - -import java.rmi.RemoteException; - -import javax.ejb.EJBObject; - -public interface CatalogEJBRemote extends EJBObject { - Vegetable[] get() throws RemoteException; -} diff --git a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/java/services/ejb/Vegetable.java b/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/java/services/ejb/Vegetable.java deleted file mode 100644 index cf81539ba5..0000000000 --- a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/java/services/ejb/Vegetable.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * 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. - */ - -package services.ejb; - -import java.io.Serializable; - -public class Vegetable implements Serializable { - private static final long serialVersionUID = -5847326138627338217L; - - private String name; - private String price; - - public Vegetable() { - } - - public Vegetable(String name, String price) { - this.name = name; - this.price = price; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPrice() { - return price; - } - - public void setPrice(String price) { - this.price = price; - } - -} diff --git a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/java/services/ejb/VegetablesCatalogEJBSessionBean.java b/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/java/services/ejb/VegetablesCatalogEJBSessionBean.java deleted file mode 100644 index ff2004fe1b..0000000000 --- a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/java/services/ejb/VegetablesCatalogEJBSessionBean.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * 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. - */ - -package services.ejb; - -import java.rmi.RemoteException; -import java.util.ArrayList; -import java.util.List; - -import javax.ejb.CreateException; -import javax.ejb.EJBException; -import javax.ejb.SessionBean; -import javax.ejb.SessionContext; - -public class VegetablesCatalogEJBSessionBean implements SessionBean { - private static final long serialVersionUID = -7421020241291271838L; - - private List catalog = new ArrayList(); - - public VegetablesCatalogEJBSessionBean() { - catalog.add(new Vegetable("Broccoli", "$2.99")); - catalog.add(new Vegetable("Asparagus", "$3.55")); - catalog.add(new Vegetable("Cauliflower", "$1.55")); - } - - public Vegetable[] get() { - Vegetable[] catalogArray = new Vegetable[catalog.size()]; - catalog.toArray(catalogArray); - return catalogArray; - } - - public void ejbCreate() throws CreateException { - } - - public void ejbActivate() throws EJBException, RemoteException { - } - - public void ejbPassivate() throws EJBException, RemoteException { - } - - public void ejbRemove() throws EJBException, RemoteException { - } - - public void setSessionContext(SessionContext arg0) throws EJBException, RemoteException { - } -} diff --git a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/resources/META-INF/ejb-jar.xml b/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/resources/META-INF/ejb-jar.xml deleted file mode 100644 index a0a7adf6fa..0000000000 --- a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/resources/META-INF/ejb-jar.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - Apache Tuscany SCA Tutorial Catalog EJB - - - VegetablesCatalogEJB - services.ejb.CatalogEJBHome - services.ejb.CatalogEJBRemote - services.ejb.VegetablesCatalogEJBSessionBean - Stateless - Container - - - diff --git a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/resources/META-INF/openejb-jar.xml b/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/resources/META-INF/openejb-jar.xml deleted file mode 100644 index 04d77ee39e..0000000000 --- a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/resources/META-INF/openejb-jar.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - - - ${pom.groupId} - ${pom.artifactId} - ${version} - jar - - - - org.apache.geronimo.configs - j2ee-corba-yoko - - car - - - - - - - - - VegetablesCatalogEJB - VegetablesCatalogEJB - IdentityTokenNoSecurity - - - - - - IdentityTokenNoSecurity - - UnprotectedServer - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/resources/META-INF/sca-contribution.xml b/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 2e46b31047..0000000000 --- a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/resources/VegetablesCatalogEJB.componentType b/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/resources/VegetablesCatalogEJB.componentType deleted file mode 100644 index bc57b35e79..0000000000 --- a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/resources/VegetablesCatalogEJB.componentType +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/resources/catalog-ejb.composite b/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/resources/catalog-ejb.composite deleted file mode 100644 index f733524809..0000000000 --- a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/main/resources/catalog-ejb.composite +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/test/java/client/CatalogEJBClientTestCase.java b/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/test/java/client/CatalogEJBClientTestCase.java deleted file mode 100644 index f9bd16f050..0000000000 --- a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/test/java/client/CatalogEJBClientTestCase.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * 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. - */ -package client; - -import javax.naming.InitialContext; -import javax.rmi.PortableRemoteObject; - -import org.junit.Ignore; -import org.junit.Test; - -import services.ejb.CatalogEJBHome; -import services.ejb.CatalogEJBRemote; -import services.ejb.Vegetable; - -/** - * A test client for the catalog EJB. - * - * @version $Rev$ $Date$ - */ -public class CatalogEJBClientTestCase { - - @Test - @Ignore // Ignore the test case for maven build, remove it if you want to run - public void testCatalogEJB() throws Exception { - InitialContext context = new InitialContext(); - - Object o = context.lookup("corbaname:iiop:1.2@localhost:1050#VegetablesCatalogEJB"); - - // The narrow(...) call requires generated EJB stubs. Tuscany binding.ejb doesn't the stubs - CatalogEJBHome home = (CatalogEJBHome)PortableRemoteObject.narrow(o, CatalogEJBHome.class); - - // The following call will hang with SUN jdk1.6.0_05, please use SUN or IBM jdk 1.5.x instead - CatalogEJBRemote catalog = home.create(); - - Vegetable items[] = catalog.get(); - for (Vegetable item : items) { - System.out.println(item.getName() + " " + item.getPrice()); - } - } - - public static void main(String args[]) throws Exception { - String javaVersion = System.getProperty("java.version"); - String javaVendor = System.getProperty("java.vendor"); - - if (javaVendor.toUpperCase().contains("SUN") && javaVersion.startsWith("1.6.")) { - System.err.println("The EJB invocation may hang due to a bug in " + javaVendor + ":" + javaVersion); - } - new CatalogEJBClientTestCase().testCatalogEJB(); - } - -} diff --git a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_EJBHome_Stub.java b/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_EJBHome_Stub.java deleted file mode 100644 index 6930093042..0000000000 --- a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_EJBHome_Stub.java +++ /dev/null @@ -1,223 +0,0 @@ -/* - * 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. - */ -// Stub class generated by rmic, do not edit. -// Contents subject to change without notice. - -package org.omg.stub.javax.ejb; - -import java.rmi.RemoteException; -import java.rmi.UnexpectedException; - -import javax.ejb.EJBHome; -import javax.ejb.EJBMetaData; -import javax.ejb.Handle; -import javax.ejb.HomeHandle; -import javax.ejb.RemoveException; -import javax.rmi.CORBA.Stub; -import javax.rmi.CORBA.Util; - -import org.omg.CORBA.SystemException; -import org.omg.CORBA.portable.ApplicationException; -import org.omg.CORBA.portable.OutputStream; -import org.omg.CORBA.portable.RemarshalException; -import org.omg.CORBA.portable.ServantObject; -import org.omg.CORBA_2_3.portable.InputStream; - -public class _EJBHome_Stub extends Stub implements EJBHome { - - private static final String[] _type_ids = { - "RMI:javax.ejb.EJBHome:0000000000000000" - }; - - public String[] _ids() { - return _type_ids; - } - - public EJBMetaData getEJBMetaData() throws RemoteException { - while(true) { - if (!Util.isLocal(this)) { - InputStream in = null; - try { - try { - OutputStream out = _request("_get_EJBMetaData", true); - in = (InputStream)_invoke(out); - return (EJBMetaData) in.read_value(EJBMetaData.class); - } catch (ApplicationException ex) { - in = (InputStream) ex.getInputStream(); - String id = in.read_string(); - throw new UnexpectedException(id); - } catch (RemarshalException ex) { - continue; - } - } catch (SystemException ex) { - throw Util.mapSystemException(ex); - } finally { - _releaseReply(in); - } - } else { - ServantObject so = _servant_preinvoke("_get_EJBMetaData",javax.ejb.EJBHome.class); - if (so == null) { - continue; - } - try { - EJBMetaData result = ((javax.ejb.EJBHome)so.servant).getEJBMetaData(); - return (EJBMetaData)Util.copyObject(result,_orb()); - } catch (Throwable ex) { - Throwable exCopy = (Throwable)Util.copyObject(ex,_orb()); - throw Util.wrapException(exCopy); - } finally { - _servant_postinvoke(so); - } - } - } - } - - public HomeHandle getHomeHandle() throws RemoteException { - while(true) { - if (!Util.isLocal(this)) { - InputStream in = null; - try { - try { - OutputStream out = _request("_get_homeHandle", true); - in = (InputStream)_invoke(out); - return (HomeHandle) in.read_abstract_interface(HomeHandle.class); - } catch (ApplicationException ex) { - in = (InputStream) ex.getInputStream(); - String id = in.read_string(); - throw new UnexpectedException(id); - } catch (RemarshalException ex) { - continue; - } - } catch (SystemException ex) { - throw Util.mapSystemException(ex); - } finally { - _releaseReply(in); - } - } else { - ServantObject so = _servant_preinvoke("_get_homeHandle",javax.ejb.EJBHome.class); - if (so == null) { - continue; - } - try { - HomeHandle result = ((javax.ejb.EJBHome)so.servant).getHomeHandle(); - return (HomeHandle)Util.copyObject(result,_orb()); - } catch (Throwable ex) { - Throwable exCopy = (Throwable)Util.copyObject(ex,_orb()); - throw Util.wrapException(exCopy); - } finally { - _servant_postinvoke(so); - } - } - } - } - - public void remove(Handle arg0) throws RemoteException, RemoveException { - while(true) { - if (!Util.isLocal(this)) { - InputStream in = null; - try { - try { - OutputStream out = _request("remove__javax_ejb_Handle", true); - Util.writeAbstractObject(out,arg0); - _invoke(out); - return; - } catch (ApplicationException ex) { - in = (InputStream) ex.getInputStream(); - String id = in.read_string(); - if (id.equals("IDL:javax/ejb/RemoveEx:1.0")) { - throw (RemoveException) in.read_value(RemoveException.class); - } - throw new UnexpectedException(id); - } catch (RemarshalException ex) { - continue; - } - } catch (SystemException ex) { - throw Util.mapSystemException(ex); - } finally { - _releaseReply(in); - } - } else { - ServantObject so = _servant_preinvoke("remove__javax_ejb_Handle",javax.ejb.EJBHome.class); - if (so == null) { - continue; - } - try { - Handle arg0Copy = (Handle) Util.copyObject(arg0,_orb()); - ((javax.ejb.EJBHome)so.servant).remove(arg0Copy); - return; - } catch (Throwable ex) { - Throwable exCopy = (Throwable)Util.copyObject(ex,_orb()); - if (exCopy instanceof RemoveException) { - throw (RemoveException)exCopy; - } - throw Util.wrapException(exCopy); - } finally { - _servant_postinvoke(so); - } - } - } - } - - public void remove(Object arg0) throws RemoteException, RemoveException { - while(true) { - if (!Util.isLocal(this)) { - InputStream in = null; - try { - try { - OutputStream out = _request("remove__java_lang_Object", true); - Util.writeAny(out,arg0); - _invoke(out); - return; - } catch (ApplicationException ex) { - in = (InputStream) ex.getInputStream(); - String id = in.read_string(); - if (id.equals("IDL:javax/ejb/RemoveEx:1.0")) { - throw (RemoveException) in.read_value(RemoveException.class); - } - throw new UnexpectedException(id); - } catch (RemarshalException ex) { - continue; - } - } catch (SystemException ex) { - throw Util.mapSystemException(ex); - } finally { - _releaseReply(in); - } - } else { - ServantObject so = _servant_preinvoke("remove__java_lang_Object",javax.ejb.EJBHome.class); - if (so == null) { - continue; - } - try { - Object arg0Copy = (Object) Util.copyObject(arg0,_orb()); - ((javax.ejb.EJBHome)so.servant).remove(arg0Copy); - return; - } catch (Throwable ex) { - Throwable exCopy = (Throwable)Util.copyObject(ex,_orb()); - if (exCopy instanceof RemoveException) { - throw (RemoveException)exCopy; - } - throw Util.wrapException(exCopy); - } finally { - _servant_postinvoke(so); - } - } - } - } -} diff --git a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_EJBObject_Stub.java b/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_EJBObject_Stub.java deleted file mode 100644 index 3482ebb9ec..0000000000 --- a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_EJBObject_Stub.java +++ /dev/null @@ -1,252 +0,0 @@ -/* - * 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. - */ -// Stub class generated by rmic, do not edit. -// Contents subject to change without notice. - -package org.omg.stub.javax.ejb; - -import java.rmi.RemoteException; -import java.rmi.UnexpectedException; - -import javax.ejb.EJBHome; -import javax.ejb.EJBObject; -import javax.ejb.Handle; -import javax.ejb.RemoveException; -import javax.rmi.CORBA.Stub; -import javax.rmi.CORBA.Util; - -import org.omg.CORBA.SystemException; -import org.omg.CORBA.portable.ApplicationException; -import org.omg.CORBA.portable.InputStream; -import org.omg.CORBA.portable.OutputStream; -import org.omg.CORBA.portable.RemarshalException; -import org.omg.CORBA.portable.ServantObject; - -public class _EJBObject_Stub extends Stub implements EJBObject { - - private static final String[] _type_ids = { - "RMI:javax.ejb.EJBObject:0000000000000000" - }; - - public String[] _ids() { - return _type_ids; - } - - public EJBHome getEJBHome() throws RemoteException { - while(true) { - if (!Util.isLocal(this)) { - InputStream in = null; - try { - try { - OutputStream out = _request("_get_EJBHome", true); - in = _invoke(out); - return (EJBHome) in.read_Object(EJBHome.class); - } catch (ApplicationException ex) { - in = ex.getInputStream(); - String id = in.read_string(); - throw new UnexpectedException(id); - } catch (RemarshalException ex) { - continue; - } - } catch (SystemException ex) { - throw Util.mapSystemException(ex); - } finally { - _releaseReply(in); - } - } else { - ServantObject so = _servant_preinvoke("_get_EJBHome",javax.ejb.EJBObject.class); - if (so == null) { - continue; - } - try { - EJBHome result = ((javax.ejb.EJBObject)so.servant).getEJBHome(); - return (EJBHome)Util.copyObject(result,_orb()); - } catch (Throwable ex) { - Throwable exCopy = (Throwable)Util.copyObject(ex,_orb()); - throw Util.wrapException(exCopy); - } finally { - _servant_postinvoke(so); - } - } - } - } - - public Handle getHandle() throws RemoteException { - while(true) { - if (!Util.isLocal(this)) { - org.omg.CORBA_2_3.portable.InputStream in = null; - try { - try { - OutputStream out = _request("_get_handle", true); - in = (org.omg.CORBA_2_3.portable.InputStream)_invoke(out); - return (Handle) in.read_abstract_interface(Handle.class); - } catch (ApplicationException ex) { - in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream(); - String id = in.read_string(); - throw new UnexpectedException(id); - } catch (RemarshalException ex) { - continue; - } - } catch (SystemException ex) { - throw Util.mapSystemException(ex); - } finally { - _releaseReply(in); - } - } else { - ServantObject so = _servant_preinvoke("_get_handle",javax.ejb.EJBObject.class); - if (so == null) { - continue; - } - try { - Handle result = ((javax.ejb.EJBObject)so.servant).getHandle(); - return (Handle)Util.copyObject(result,_orb()); - } catch (Throwable ex) { - Throwable exCopy = (Throwable)Util.copyObject(ex,_orb()); - throw Util.wrapException(exCopy); - } finally { - _servant_postinvoke(so); - } - } - } - } - - public Object getPrimaryKey() throws RemoteException { - while(true) { - if (!Util.isLocal(this)) { - InputStream in = null; - try { - try { - OutputStream out = _request("_get_primaryKey", true); - in = _invoke(out); - return Util.readAny(in); - } catch (ApplicationException ex) { - in = ex.getInputStream(); - String id = in.read_string(); - throw new UnexpectedException(id); - } catch (RemarshalException ex) { - continue; - } - } catch (SystemException ex) { - throw Util.mapSystemException(ex); - } finally { - _releaseReply(in); - } - } else { - ServantObject so = _servant_preinvoke("_get_primaryKey",javax.ejb.EJBObject.class); - if (so == null) { - continue; - } - try { - Object result = ((javax.ejb.EJBObject)so.servant).getPrimaryKey(); - return (Object)Util.copyObject(result,_orb()); - } catch (Throwable ex) { - Throwable exCopy = (Throwable)Util.copyObject(ex,_orb()); - throw Util.wrapException(exCopy); - } finally { - _servant_postinvoke(so); - } - } - } - } - - public boolean isIdentical(EJBObject arg0) throws RemoteException { - while(true) { - if (!Util.isLocal(this)) { - InputStream in = null; - try { - try { - OutputStream out = _request("isIdentical", true); - Util.writeRemoteObject(out,arg0); - in = _invoke(out); - return in.read_boolean(); - } catch (ApplicationException ex) { - in = ex.getInputStream(); - String id = in.read_string(); - throw new UnexpectedException(id); - } catch (RemarshalException ex) { - continue; - } - } catch (SystemException ex) { - throw Util.mapSystemException(ex); - } finally { - _releaseReply(in); - } - } else { - ServantObject so = _servant_preinvoke("isIdentical",javax.ejb.EJBObject.class); - if (so == null) { - continue; - } - try { - EJBObject arg0Copy = (EJBObject) Util.copyObject(arg0,_orb()); - return ((javax.ejb.EJBObject)so.servant).isIdentical(arg0Copy); - } catch (Throwable ex) { - Throwable exCopy = (Throwable)Util.copyObject(ex,_orb()); - throw Util.wrapException(exCopy); - } finally { - _servant_postinvoke(so); - } - } - } - } - - public void remove() throws RemoteException, RemoveException { - while(true) { - if (!Util.isLocal(this)) { - org.omg.CORBA_2_3.portable.InputStream in = null; - try { - try { - OutputStream out = _request("remove", true); - _invoke(out); - return; - } catch (ApplicationException ex) { - in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream(); - String id = in.read_string(); - if (id.equals("IDL:javax/ejb/RemoveEx:1.0")) { - throw (RemoveException) in.read_value(RemoveException.class); - } - throw new UnexpectedException(id); - } catch (RemarshalException ex) { - continue; - } - } catch (SystemException ex) { - throw Util.mapSystemException(ex); - } finally { - _releaseReply(in); - } - } else { - ServantObject so = _servant_preinvoke("remove",javax.ejb.EJBObject.class); - if (so == null) { - continue; - } - try { - ((javax.ejb.EJBObject)so.servant).remove(); - return; - } catch (Throwable ex) { - Throwable exCopy = (Throwable)Util.copyObject(ex,_orb()); - if (exCopy instanceof RemoveException) { - throw (RemoveException)exCopy; - } - throw Util.wrapException(exCopy); - } finally { - _servant_postinvoke(so); - } - } - } - } -} diff --git a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_Handle_Stub.java b/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_Handle_Stub.java deleted file mode 100644 index d848fbb280..0000000000 --- a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_Handle_Stub.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * 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. - */ -// Stub class generated by rmic, do not edit. -// Contents subject to change without notice. - -package org.omg.stub.javax.ejb; - -import java.rmi.Remote; -import java.rmi.RemoteException; -import java.rmi.UnexpectedException; - -import javax.ejb.EJBObject; -import javax.ejb.Handle; -import javax.rmi.CORBA.Stub; -import javax.rmi.CORBA.Util; - -import org.omg.CORBA.SystemException; -import org.omg.CORBA.portable.ApplicationException; -import org.omg.CORBA.portable.InputStream; -import org.omg.CORBA.portable.OutputStream; -import org.omg.CORBA.portable.RemarshalException; -import org.omg.CORBA.portable.ServantObject; - -public class _Handle_Stub extends Stub implements Handle, -Remote { - - private static final String[] _type_ids = { - "RMI:javax.ejb.Handle:0000000000000000" - }; - - public String[] _ids() { - return _type_ids; - } - - public EJBObject getEJBObject() throws RemoteException { - while(true) { - if (!Util.isLocal(this)) { - InputStream in = null; - try { - try { - OutputStream out = _request("_get_EJBObject", true); - in = _invoke(out); - return (EJBObject) in.read_Object(EJBObject.class); - } catch (ApplicationException ex) { - in = ex.getInputStream(); - String id = in.read_string(); - throw new UnexpectedException(id); - } catch (RemarshalException ex) { - continue; - } - } catch (SystemException ex) { - throw Util.mapSystemException(ex); - } finally { - _releaseReply(in); - } - } else { - ServantObject so = _servant_preinvoke("_get_EJBObject",javax.ejb.Handle.class); - if (so == null) { - continue; - } - try { - EJBObject result = ((javax.ejb.Handle)so.servant).getEJBObject(); - return (EJBObject)Util.copyObject(result,_orb()); - } catch (Throwable ex) { - Throwable exCopy = (Throwable)Util.copyObject(ex,_orb()); - throw Util.wrapException(exCopy); - } finally { - _servant_postinvoke(so); - } - } - } - } -} diff --git a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_HomeHandle_Stub.java b/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_HomeHandle_Stub.java deleted file mode 100644 index 6efc86b608..0000000000 --- a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/test/java/org/omg/stub/javax/ejb/_HomeHandle_Stub.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * 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. - */ -// Stub class generated by rmic, do not edit. -// Contents subject to change without notice. - -package org.omg.stub.javax.ejb; - -import java.rmi.Remote; -import java.rmi.RemoteException; -import java.rmi.UnexpectedException; - -import javax.ejb.EJBHome; -import javax.ejb.HomeHandle; -import javax.rmi.CORBA.Stub; -import javax.rmi.CORBA.Util; - -import org.omg.CORBA.SystemException; -import org.omg.CORBA.portable.ApplicationException; -import org.omg.CORBA.portable.InputStream; -import org.omg.CORBA.portable.OutputStream; -import org.omg.CORBA.portable.RemarshalException; -import org.omg.CORBA.portable.ServantObject; - -public class _HomeHandle_Stub extends Stub implements HomeHandle, -Remote { - - private static final String[] _type_ids = { - "RMI:javax.ejb.HomeHandle:0000000000000000" - }; - - public String[] _ids() { - return _type_ids; - } - - public EJBHome getEJBHome() throws RemoteException { - while(true) { - if (!Util.isLocal(this)) { - InputStream in = null; - try { - try { - OutputStream out = _request("_get_EJBHome", true); - in = _invoke(out); - return (EJBHome) in.read_Object(EJBHome.class); - } catch (ApplicationException ex) { - in = ex.getInputStream(); - String id = in.read_string(); - throw new UnexpectedException(id); - } catch (RemarshalException ex) { - continue; - } - } catch (SystemException ex) { - throw Util.mapSystemException(ex); - } finally { - _releaseReply(in); - } - } else { - ServantObject so = _servant_preinvoke("_get_EJBHome",javax.ejb.HomeHandle.class); - if (so == null) { - continue; - } - try { - EJBHome result = ((javax.ejb.HomeHandle)so.servant).getEJBHome(); - return (EJBHome)Util.copyObject(result,_orb()); - } catch (Throwable ex) { - Throwable exCopy = (Throwable)Util.copyObject(ex,_orb()); - throw Util.wrapException(exCopy); - } finally { - _servant_postinvoke(so); - } - } - } - } -} diff --git a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/test/java/services/ejb/_CatalogEJBHome_Stub.java b/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/test/java/services/ejb/_CatalogEJBHome_Stub.java deleted file mode 100644 index bdc1a5cfd5..0000000000 --- a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/test/java/services/ejb/_CatalogEJBHome_Stub.java +++ /dev/null @@ -1,269 +0,0 @@ -/* - * 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. - */ -// Stub class generated by rmic, do not edit. -// Contents subject to change without notice. - -package services.ejb; - -import java.rmi.RemoteException; -import java.rmi.UnexpectedException; - -import javax.ejb.CreateException; -import javax.ejb.EJBMetaData; -import javax.ejb.Handle; -import javax.ejb.HomeHandle; -import javax.ejb.RemoveException; -import javax.rmi.CORBA.Stub; -import javax.rmi.CORBA.Util; - -import org.omg.CORBA.SystemException; -import org.omg.CORBA.portable.ApplicationException; -import org.omg.CORBA.portable.OutputStream; -import org.omg.CORBA.portable.RemarshalException; -import org.omg.CORBA.portable.ServantObject; -import org.omg.CORBA_2_3.portable.InputStream; - -public class _CatalogEJBHome_Stub extends Stub implements CatalogEJBHome { - - private static final String[] _type_ids = { - "RMI:services.ejb.CatalogEJBHome:0000000000000000", - "RMI:javax.ejb.EJBHome:0000000000000000" - }; - - public String[] _ids() { - return _type_ids; - } - - public EJBMetaData getEJBMetaData() throws RemoteException { - while(true) { - if (!Util.isLocal(this)) { - InputStream in = null; - try { - try { - OutputStream out = _request("_get_EJBMetaData", true); - in = (InputStream)_invoke(out); - return (EJBMetaData) in.read_value(EJBMetaData.class); - } catch (ApplicationException ex) { - in = (InputStream) ex.getInputStream(); - String id = in.read_string(); - throw new UnexpectedException(id); - } catch (RemarshalException ex) { - continue; - } - } catch (SystemException ex) { - throw Util.mapSystemException(ex); - } finally { - _releaseReply(in); - } - } else { - ServantObject so = _servant_preinvoke("_get_EJBMetaData",javax.ejb.EJBHome.class); - if (so == null) { - continue; - } - try { - EJBMetaData result = ((javax.ejb.EJBHome)so.servant).getEJBMetaData(); - return (EJBMetaData)Util.copyObject(result,_orb()); - } catch (Throwable ex) { - Throwable exCopy = (Throwable)Util.copyObject(ex,_orb()); - throw Util.wrapException(exCopy); - } finally { - _servant_postinvoke(so); - } - } - } - } - - public HomeHandle getHomeHandle() throws RemoteException { - while(true) { - if (!Util.isLocal(this)) { - InputStream in = null; - try { - try { - OutputStream out = _request("_get_homeHandle", true); - in = (InputStream)_invoke(out); - return (HomeHandle) in.read_abstract_interface(HomeHandle.class); - } catch (ApplicationException ex) { - in = (InputStream) ex.getInputStream(); - String id = in.read_string(); - throw new UnexpectedException(id); - } catch (RemarshalException ex) { - continue; - } - } catch (SystemException ex) { - throw Util.mapSystemException(ex); - } finally { - _releaseReply(in); - } - } else { - ServantObject so = _servant_preinvoke("_get_homeHandle",javax.ejb.EJBHome.class); - if (so == null) { - continue; - } - try { - HomeHandle result = ((javax.ejb.EJBHome)so.servant).getHomeHandle(); - return (HomeHandle)Util.copyObject(result,_orb()); - } catch (Throwable ex) { - Throwable exCopy = (Throwable)Util.copyObject(ex,_orb()); - throw Util.wrapException(exCopy); - } finally { - _servant_postinvoke(so); - } - } - } - } - - public void remove(Handle arg0) throws RemoteException, RemoveException { - while(true) { - if (!Util.isLocal(this)) { - InputStream in = null; - try { - try { - OutputStream out = _request("remove__javax_ejb_Handle", true); - Util.writeAbstractObject(out,arg0); - _invoke(out); - return; - } catch (ApplicationException ex) { - in = (InputStream) ex.getInputStream(); - String id = in.read_string(); - if (id.equals("IDL:javax/ejb/RemoveEx:1.0")) { - throw (RemoveException) in.read_value(RemoveException.class); - } - throw new UnexpectedException(id); - } catch (RemarshalException ex) { - continue; - } - } catch (SystemException ex) { - throw Util.mapSystemException(ex); - } finally { - _releaseReply(in); - } - } else { - ServantObject so = _servant_preinvoke("remove__javax_ejb_Handle",javax.ejb.EJBHome.class); - if (so == null) { - continue; - } - try { - Handle arg0Copy = (Handle) Util.copyObject(arg0,_orb()); - ((javax.ejb.EJBHome)so.servant).remove(arg0Copy); - return; - } catch (Throwable ex) { - Throwable exCopy = (Throwable)Util.copyObject(ex,_orb()); - if (exCopy instanceof RemoveException) { - throw (RemoveException)exCopy; - } - throw Util.wrapException(exCopy); - } finally { - _servant_postinvoke(so); - } - } - } - } - - public void remove(Object arg0) throws RemoteException, RemoveException { - while(true) { - if (!Util.isLocal(this)) { - InputStream in = null; - try { - try { - OutputStream out = _request("remove__java_lang_Object", true); - Util.writeAny(out,arg0); - _invoke(out); - return; - } catch (ApplicationException ex) { - in = (InputStream) ex.getInputStream(); - String id = in.read_string(); - if (id.equals("IDL:javax/ejb/RemoveEx:1.0")) { - throw (RemoveException) in.read_value(RemoveException.class); - } - throw new UnexpectedException(id); - } catch (RemarshalException ex) { - continue; - } - } catch (SystemException ex) { - throw Util.mapSystemException(ex); - } finally { - _releaseReply(in); - } - } else { - ServantObject so = _servant_preinvoke("remove__java_lang_Object",javax.ejb.EJBHome.class); - if (so == null) { - continue; - } - try { - Object arg0Copy = (Object) Util.copyObject(arg0,_orb()); - ((javax.ejb.EJBHome)so.servant).remove(arg0Copy); - return; - } catch (Throwable ex) { - Throwable exCopy = (Throwable)Util.copyObject(ex,_orb()); - if (exCopy instanceof RemoveException) { - throw (RemoveException)exCopy; - } - throw Util.wrapException(exCopy); - } finally { - _servant_postinvoke(so); - } - } - } - } - - public CatalogEJBRemote create() throws CreateException, RemoteException { - while(true) { - if (!Util.isLocal(this)) { - InputStream in = null; - try { - try { - OutputStream out = _request("create", true); - in = (InputStream)_invoke(out); - return (CatalogEJBRemote) in.read_Object(CatalogEJBRemote.class); - } catch (ApplicationException ex) { - in = (InputStream) ex.getInputStream(); - String id = in.read_string(); - if (id.equals("IDL:javax/ejb/CreateEx:1.0")) { - throw (CreateException) in.read_value(CreateException.class); - } - throw new UnexpectedException(id); - } catch (RemarshalException ex) { - continue; - } - } catch (SystemException ex) { - throw Util.mapSystemException(ex); - } finally { - _releaseReply(in); - } - } else { - ServantObject so = _servant_preinvoke("create",services.ejb.CatalogEJBHome.class); - if (so == null) { - continue; - } - try { - CatalogEJBRemote result = ((services.ejb.CatalogEJBHome)so.servant).create(); - return (CatalogEJBRemote)Util.copyObject(result,_orb()); - } catch (Throwable ex) { - Throwable exCopy = (Throwable)Util.copyObject(ex,_orb()); - if (exCopy instanceof CreateException) { - throw (CreateException)exCopy; - } - throw Util.wrapException(exCopy); - } finally { - _servant_postinvoke(so); - } - } - } - } -} diff --git a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/test/java/services/ejb/_CatalogEJBRemote_Stub.java b/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/test/java/services/ejb/_CatalogEJBRemote_Stub.java deleted file mode 100644 index a24108714e..0000000000 --- a/branches/sca-java-1.3.2/tutorial/catalog-ejb/src/test/java/services/ejb/_CatalogEJBRemote_Stub.java +++ /dev/null @@ -1,292 +0,0 @@ -/* - * 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. - */ -// Stub class generated by rmic, do not edit. -// Contents subject to change without notice. - -package services.ejb; - -import java.rmi.RemoteException; -import java.rmi.UnexpectedException; - -import javax.ejb.EJBHome; -import javax.ejb.EJBObject; -import javax.ejb.Handle; -import javax.ejb.RemoveException; -import javax.rmi.CORBA.Stub; -import javax.rmi.CORBA.Util; - -import org.omg.CORBA.SystemException; -import org.omg.CORBA.portable.ApplicationException; -import org.omg.CORBA.portable.InputStream; -import org.omg.CORBA.portable.OutputStream; -import org.omg.CORBA.portable.RemarshalException; -import org.omg.CORBA.portable.ServantObject; - -public class _CatalogEJBRemote_Stub extends Stub implements CatalogEJBRemote { - - private static final String[] _type_ids = { - "RMI:services.ejb.CatalogEJBRemote:0000000000000000", - "RMI:javax.ejb.EJBObject:0000000000000000" - }; - - public String[] _ids() { - return _type_ids; - } - - public EJBHome getEJBHome() throws RemoteException { - while(true) { - if (!Util.isLocal(this)) { - InputStream in = null; - try { - try { - OutputStream out = _request("_get_EJBHome", true); - in = _invoke(out); - return (EJBHome) in.read_Object(EJBHome.class); - } catch (ApplicationException ex) { - in = ex.getInputStream(); - String id = in.read_string(); - throw new UnexpectedException(id); - } catch (RemarshalException ex) { - continue; - } - } catch (SystemException ex) { - throw Util.mapSystemException(ex); - } finally { - _releaseReply(in); - } - } else { - ServantObject so = _servant_preinvoke("_get_EJBHome",javax.ejb.EJBObject.class); - if (so == null) { - continue; - } - try { - EJBHome result = ((javax.ejb.EJBObject)so.servant).getEJBHome(); - return (EJBHome)Util.copyObject(result,_orb()); - } catch (Throwable ex) { - Throwable exCopy = (Throwable)Util.copyObject(ex,_orb()); - throw Util.wrapException(exCopy); - } finally { - _servant_postinvoke(so); - } - } - } - } - - public Handle getHandle() throws RemoteException { - while(true) { - if (!Util.isLocal(this)) { - org.omg.CORBA_2_3.portable.InputStream in = null; - try { - try { - OutputStream out = _request("_get_handle", true); - in = (org.omg.CORBA_2_3.portable.InputStream)_invoke(out); - return (Handle) in.read_abstract_interface(Handle.class); - } catch (ApplicationException ex) { - in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream(); - String id = in.read_string(); - throw new UnexpectedException(id); - } catch (RemarshalException ex) { - continue; - } - } catch (SystemException ex) { - throw Util.mapSystemException(ex); - } finally { - _releaseReply(in); - } - } else { - ServantObject so = _servant_preinvoke("_get_handle",javax.ejb.EJBObject.class); - if (so == null) { - continue; - } - try { - Handle result = ((javax.ejb.EJBObject)so.servant).getHandle(); - return (Handle)Util.copyObject(result,_orb()); - } catch (Throwable ex) { - Throwable exCopy = (Throwable)Util.copyObject(ex,_orb()); - throw Util.wrapException(exCopy); - } finally { - _servant_postinvoke(so); - } - } - } - } - - public Object getPrimaryKey() throws RemoteException { - while(true) { - if (!Util.isLocal(this)) { - InputStream in = null; - try { - try { - OutputStream out = _request("_get_primaryKey", true); - in = _invoke(out); - return Util.readAny(in); - } catch (ApplicationException ex) { - in = ex.getInputStream(); - String id = in.read_string(); - throw new UnexpectedException(id); - } catch (RemarshalException ex) { - continue; - } - } catch (SystemException ex) { - throw Util.mapSystemException(ex); - } finally { - _releaseReply(in); - } - } else { - ServantObject so = _servant_preinvoke("_get_primaryKey",javax.ejb.EJBObject.class); - if (so == null) { - continue; - } - try { - Object result = ((javax.ejb.EJBObject)so.servant).getPrimaryKey(); - return (Object)Util.copyObject(result,_orb()); - } catch (Throwable ex) { - Throwable exCopy = (Throwable)Util.copyObject(ex,_orb()); - throw Util.wrapException(exCopy); - } finally { - _servant_postinvoke(so); - } - } - } - } - - public boolean isIdentical(EJBObject arg0) throws RemoteException { - while(true) { - if (!Util.isLocal(this)) { - InputStream in = null; - try { - try { - OutputStream out = _request("isIdentical", true); - Util.writeRemoteObject(out,arg0); - in = _invoke(out); - return in.read_boolean(); - } catch (ApplicationException ex) { - in = ex.getInputStream(); - String id = in.read_string(); - throw new UnexpectedException(id); - } catch (RemarshalException ex) { - continue; - } - } catch (SystemException ex) { - throw Util.mapSystemException(ex); - } finally { - _releaseReply(in); - } - } else { - ServantObject so = _servant_preinvoke("isIdentical",javax.ejb.EJBObject.class); - if (so == null) { - continue; - } - try { - EJBObject arg0Copy = (EJBObject) Util.copyObject(arg0,_orb()); - return ((javax.ejb.EJBObject)so.servant).isIdentical(arg0Copy); - } catch (Throwable ex) { - Throwable exCopy = (Throwable)Util.copyObject(ex,_orb()); - throw Util.wrapException(exCopy); - } finally { - _servant_postinvoke(so); - } - } - } - } - - public void remove() throws RemoteException, RemoveException { - while(true) { - if (!Util.isLocal(this)) { - org.omg.CORBA_2_3.portable.InputStream in = null; - try { - try { - OutputStream out = _request("remove", true); - _invoke(out); - return; - } catch (ApplicationException ex) { - in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream(); - String id = in.read_string(); - if (id.equals("IDL:javax/ejb/RemoveEx:1.0")) { - throw (RemoveException) in.read_value(RemoveException.class); - } - throw new UnexpectedException(id); - } catch (RemarshalException ex) { - continue; - } - } catch (SystemException ex) { - throw Util.mapSystemException(ex); - } finally { - _releaseReply(in); - } - } else { - ServantObject so = _servant_preinvoke("remove",javax.ejb.EJBObject.class); - if (so == null) { - continue; - } - try { - ((javax.ejb.EJBObject)so.servant).remove(); - return; - } catch (Throwable ex) { - Throwable exCopy = (Throwable)Util.copyObject(ex,_orb()); - if (exCopy instanceof RemoveException) { - throw (RemoveException)exCopy; - } - throw Util.wrapException(exCopy); - } finally { - _servant_postinvoke(so); - } - } - } - } - - public Vegetable[] get() throws RemoteException { - while(true) { - if (!Util.isLocal(this)) { - org.omg.CORBA_2_3.portable.InputStream in = null; - try { - try { - OutputStream out = _request("get", true); - in = (org.omg.CORBA_2_3.portable.InputStream)_invoke(out); - return (Vegetable[]) in.read_value(Vegetable[].class); - } catch (ApplicationException ex) { - in = (org.omg.CORBA_2_3.portable.InputStream) ex.getInputStream(); - String id = in.read_string(); - throw new UnexpectedException(id); - } catch (RemarshalException ex) { - continue; - } - } catch (SystemException ex) { - throw Util.mapSystemException(ex); - } finally { - _releaseReply(in); - } - } else { - ServantObject so = _servant_preinvoke("get",services.ejb.CatalogEJBRemote.class); - if (so == null) { - continue; - } - try { - Vegetable[] result = ((services.ejb.CatalogEJBRemote)so.servant).get(); - return (Vegetable[])Util.copyObject(result,_orb()); - } catch (Throwable ex) { - Throwable exCopy = (Throwable)Util.copyObject(ex,_orb()); - throw Util.wrapException(exCopy); - } finally { - _servant_postinvoke(so); - } - } - } - } -} diff --git a/branches/sca-java-1.3.2/tutorial/catalog-mediation/META-INF/sca-contribution.xml b/branches/sca-java-1.3.2/tutorial/catalog-mediation/META-INF/sca-contribution.xml deleted file mode 100644 index 88950bf740..0000000000 --- a/branches/sca-java-1.3.2/tutorial/catalog-mediation/META-INF/sca-contribution.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/branches/sca-java-1.3.2/tutorial/catalog-mediation/catalog-mediation.composite b/branches/sca-java-1.3.2/tutorial/catalog-mediation/catalog-mediation.composite deleted file mode 100644 index d832e88acc..0000000000 --- a/branches/sca-java-1.3.2/tutorial/catalog-mediation/catalog-mediation.composite +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/catalog-mediation/pom.xml b/branches/sca-java-1.3.2/tutorial/catalog-mediation/pom.xml deleted file mode 100644 index c6b2f83e37..0000000000 --- a/branches/sca-java-1.3.2/tutorial/catalog-mediation/pom.xml +++ /dev/null @@ -1,91 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-tutorial - 1.3.2-SNAPSHOT - ../pom.xml - - tutorial-catalog-mediation - Apache Tuscany SCA Tutorial Catalog Mediation - - - - apache.incubator - http://people.apache.org/repo/m2-incubating-repository - - - - - - org.apache.tuscany.sca - tutorial-assets - 1.3.2-SNAPSHOT - - - - org.apache.tuscany.sca - tutorial-catalog-ejb - 1.3.2-SNAPSHOT - - - - org.apache.geronimo.specs - geronimo-ejb_3.0_spec - 1.0 - provided - - - - - ${artifactId} - ${basedir} - - - ${basedir} - - **/*.java - **/.*/** - pom.xml - build.xml - target/** - - - - - - - org.apache.tuscany.sca - tuscany-maven-ant-generator - 1.3.2-SNAPSHOT - - - - generate - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/catalog-mediation/services/mediation/VegetablesCatalogMediationImpl.java b/branches/sca-java-1.3.2/tutorial/catalog-mediation/services/mediation/VegetablesCatalogMediationImpl.java deleted file mode 100644 index 6cfa54e9de..0000000000 --- a/branches/sca-java-1.3.2/tutorial/catalog-mediation/services/mediation/VegetablesCatalogMediationImpl.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * 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. - */ - -package services.mediation; - -import java.rmi.RemoteException; - -import org.osoa.sca.ServiceRuntimeException; -import org.osoa.sca.annotations.Reference; - -import services.Catalog; -import services.Item; -import services.ejb.CatalogEJBRemote; -import services.ejb.Vegetable; - -public class VegetablesCatalogMediationImpl implements Catalog { - - @Reference - public CatalogEJBRemote catalog; - - public Item[] get() { - Vegetable[] vegetables; - try { - vegetables = catalog.get(); - } catch (RemoteException e) { - throw new ServiceRuntimeException(e); - } - Item[] items = new Item[vegetables.length]; - for (int i = 0; i < vegetables.length; i++) { - items[i] = new Item(vegetables[i].getName(), vegetables[i].getPrice()); - } - return items; - } - -} diff --git a/branches/sca-java-1.3.2/tutorial/catalog-webapp/catalog-web.composite b/branches/sca-java-1.3.2/tutorial/catalog-webapp/catalog-web.composite deleted file mode 100644 index 3ba76da078..0000000000 --- a/branches/sca-java-1.3.2/tutorial/catalog-webapp/catalog-web.composite +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - USD - - - - - - - - USD - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/catalog-webapp/pom.xml b/branches/sca-java-1.3.2/tutorial/catalog-webapp/pom.xml deleted file mode 100644 index 6c60a0f60c..0000000000 --- a/branches/sca-java-1.3.2/tutorial/catalog-webapp/pom.xml +++ /dev/null @@ -1,110 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-tutorial - 1.3.2-SNAPSHOT - ../pom.xml - - tutorial-catalog-webapp - Apache Tuscany SCA Tutorial Catalog WAR Contribution - war - - - - apache.incubator - http://people.apache.org/repo/m2-incubating-repository - - - - - - org.apache.tuscany.sca - tuscany-sca-api - 1.3.2-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-node2-api - 1.3.2-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tutorial-assets - 1.3.2-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-node2-launcher - 1.3.2-SNAPSHOT - runtime - - - - - - ${artifactId} - ${basedir} - - - ${basedir} - - **/*.java - **/.*/** - pom.xml - build.xml - target/** - webapp/** - target/** - - - - - - - org.apache.maven.plugins - maven-war-plugin - - webapp - - - - org.apache.tuscany.sca - tuscany-maven-ant-generator - 1.3.2-SNAPSHOT - - - - generate - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/catalog-webapp/webapp/META-INF/sca-contribution.xml b/branches/sca-java-1.3.2/tutorial/catalog-webapp/webapp/META-INF/sca-contribution.xml deleted file mode 100644 index 7f06dc7ccb..0000000000 --- a/branches/sca-java-1.3.2/tutorial/catalog-webapp/webapp/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/branches/sca-java-1.3.2/tutorial/catalog-webapp/webapp/WEB-INF/web.xml b/branches/sca-java-1.3.2/tutorial/catalog-webapp/webapp/WEB-INF/web.xml deleted file mode 100644 index e08d617dad..0000000000 --- a/branches/sca-java-1.3.2/tutorial/catalog-webapp/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - Fruit Catalog - - - tuscany - org.apache.tuscany.sca.node.launcher.NodeServletFilter - - - - tuscany - /* - - - - catalog.jsp - - - diff --git a/branches/sca-java-1.3.2/tutorial/catalog-webapp/webapp/catalog.jsp b/branches/sca-java-1.3.2/tutorial/catalog-webapp/webapp/catalog.jsp deleted file mode 100644 index dcee7c33f4..0000000000 --- a/branches/sca-java-1.3.2/tutorial/catalog-webapp/webapp/catalog.jsp +++ /dev/null @@ -1,52 +0,0 @@ -<%-- - * 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. ---%> - -<%@ page import="org.apache.tuscany.sca.node.SCAClient"%> -<%@ page import="services.Catalog" %> -<%@page import="services.Item"%> - -<%@ page contentType="text/html;charset=UTF-8" language="java" %> - -<% - - SCAClient client = (SCAClient) application.getAttribute("org.apache.tuscany.sca.node.SCAClient"); - - Catalog catalog = (Catalog)client.getService(Catalog.class, "LocalFruitsCatalog"); - Item[] items = catalog.get(); - -%> - - -Catalog - - -

Catalog

- - - -<% for (int i = 0, n = items.length; i < n; i++) { %> - - - -<% } %> - -
<%=items[i].getName() %><%=items[i].getPrice() %>
- - - diff --git a/branches/sca-java-1.3.2/tutorial/domain/cloud.composite b/branches/sca-java-1.3.2/tutorial/domain/cloud.composite deleted file mode 100644 index a2341571fc..0000000000 --- a/branches/sca-java-1.3.2/tutorial/domain/cloud.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/domain/cloud/CatalogEJBNode.composite b/branches/sca-java-1.3.2/tutorial/domain/cloud/CatalogEJBNode.composite deleted file mode 100644 index 02e83d4c8d..0000000000 --- a/branches/sca-java-1.3.2/tutorial/domain/cloud/CatalogEJBNode.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/domain/cloud/CatalogMediationNode.composite b/branches/sca-java-1.3.2/tutorial/domain/cloud/CatalogMediationNode.composite deleted file mode 100644 index bac96d9781..0000000000 --- a/branches/sca-java-1.3.2/tutorial/domain/cloud/CatalogMediationNode.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/domain/cloud/CatalogWebAppNode.composite b/branches/sca-java-1.3.2/tutorial/domain/cloud/CatalogWebAppNode.composite deleted file mode 100644 index f3ed2dfdd5..0000000000 --- a/branches/sca-java-1.3.2/tutorial/domain/cloud/CatalogWebAppNode.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/branches/sca-java-1.3.2/tutorial/domain/cloud/CatalogsNode.composite b/branches/sca-java-1.3.2/tutorial/domain/cloud/CatalogsNode.composite deleted file mode 100644 index 3a5ec770cb..0000000000 --- a/branches/sca-java-1.3.2/tutorial/domain/cloud/CatalogsNode.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/domain/cloud/CurrencyNode.composite b/branches/sca-java-1.3.2/tutorial/domain/cloud/CurrencyNode.composite deleted file mode 100644 index ed80268f22..0000000000 --- a/branches/sca-java-1.3.2/tutorial/domain/cloud/CurrencyNode.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/domain/cloud/StoreClientNode.composite b/branches/sca-java-1.3.2/tutorial/domain/cloud/StoreClientNode.composite deleted file mode 100644 index 91948b5476..0000000000 --- a/branches/sca-java-1.3.2/tutorial/domain/cloud/StoreClientNode.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/domain/cloud/StoreDBNode.composite b/branches/sca-java-1.3.2/tutorial/domain/cloud/StoreDBNode.composite deleted file mode 100644 index 9b09bd7344..0000000000 --- a/branches/sca-java-1.3.2/tutorial/domain/cloud/StoreDBNode.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/domain/cloud/StoreEUNode.composite b/branches/sca-java-1.3.2/tutorial/domain/cloud/StoreEUNode.composite deleted file mode 100644 index 6a50de56d5..0000000000 --- a/branches/sca-java-1.3.2/tutorial/domain/cloud/StoreEUNode.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/domain/cloud/StoreMarketNode.composite b/branches/sca-java-1.3.2/tutorial/domain/cloud/StoreMarketNode.composite deleted file mode 100644 index 1bdd994c2b..0000000000 --- a/branches/sca-java-1.3.2/tutorial/domain/cloud/StoreMarketNode.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/domain/cloud/StoreMashupNode.composite b/branches/sca-java-1.3.2/tutorial/domain/cloud/StoreMashupNode.composite deleted file mode 100644 index 0db43df8c3..0000000000 --- a/branches/sca-java-1.3.2/tutorial/domain/cloud/StoreMashupNode.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/domain/cloud/StoreMergerNode.composite b/branches/sca-java-1.3.2/tutorial/domain/cloud/StoreMergerNode.composite deleted file mode 100644 index 0ce6e6a231..0000000000 --- a/branches/sca-java-1.3.2/tutorial/domain/cloud/StoreMergerNode.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/domain/cloud/StoreNode.composite b/branches/sca-java-1.3.2/tutorial/domain/cloud/StoreNode.composite deleted file mode 100644 index e2b61a98e1..0000000000 --- a/branches/sca-java-1.3.2/tutorial/domain/cloud/StoreNode.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/domain/cloud/StoreSupplierNode.composite b/branches/sca-java-1.3.2/tutorial/domain/cloud/StoreSupplierNode.composite deleted file mode 100644 index df46bb8813..0000000000 --- a/branches/sca-java-1.3.2/tutorial/domain/cloud/StoreSupplierNode.composite +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/domain/domain.composite b/branches/sca-java-1.3.2/tutorial/domain/domain.composite deleted file mode 100644 index 06d1cb4133..0000000000 --- a/branches/sca-java-1.3.2/tutorial/domain/domain.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchCatalogMediationNode.java b/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchCatalogMediationNode.java deleted file mode 100644 index 4e0772d211..0000000000 --- a/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchCatalogMediationNode.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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. - */ - -package launch; - -import org.apache.tuscany.sca.node.launcher.NodeLauncher; - -public class LaunchCatalogMediationNode { - public static void main(String[] args) throws Exception { - NodeLauncher.main(new String[] {"http://localhost:9990/node-config/CatalogMediationNode"}); - } -} diff --git a/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchCatalogsNode.java b/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchCatalogsNode.java deleted file mode 100644 index a0c04a2f34..0000000000 --- a/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchCatalogsNode.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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. - */ - -package launch; - -import org.apache.tuscany.sca.node.launcher.NodeLauncher; - -public class LaunchCatalogsNode { - public static void main(String[] args) throws Exception { - NodeLauncher.main(new String[] {"http://localhost:9990/node-config/CatalogsNode"}); - } -} diff --git a/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchCurrencyNode.java b/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchCurrencyNode.java deleted file mode 100644 index d9110f5804..0000000000 --- a/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchCurrencyNode.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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. - */ - -package launch; - -import org.apache.tuscany.sca.node.launcher.NodeLauncher; - -public class LaunchCurrencyNode { - public static void main(String[] args) throws Exception { - NodeLauncher.main(new String[] {"http://localhost:9990/node-config/CurrencyNode"}); - } -} diff --git a/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchStoreDBNode.java b/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchStoreDBNode.java deleted file mode 100644 index b83db75646..0000000000 --- a/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchStoreDBNode.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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. - */ - -package launch; - -import org.apache.tuscany.sca.node.launcher.NodeLauncher; - -public class LaunchStoreDBNode { - public static void main(String[] args) throws Exception { - NodeLauncher.main(new String[] {"http://localhost:9990/node-config/StoreDBNode"}); - } -} diff --git a/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchStoreEUNode.java b/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchStoreEUNode.java deleted file mode 100644 index de0e421e2d..0000000000 --- a/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchStoreEUNode.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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. - */ - -package launch; - -import org.apache.tuscany.sca.node.launcher.NodeLauncher; - -public class LaunchStoreEUNode { - public static void main(String[] args) throws Exception { - NodeLauncher.main(new String[] {"http://localhost:9990/node-config/StoreEUNode"}); - } -} diff --git a/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchStoreMarketNode.java b/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchStoreMarketNode.java deleted file mode 100644 index b95d2a8d74..0000000000 --- a/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchStoreMarketNode.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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. - */ - -package launch; - -import org.apache.tuscany.sca.node.launcher.NodeLauncher; - -public class LaunchStoreMarketNode { - public static void main(String[] args) throws Exception { - NodeLauncher.main(new String[] {"http://localhost:9990/node-config/StoreMarketNode"}); - } -} diff --git a/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchStoreMashupNode.java b/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchStoreMashupNode.java deleted file mode 100644 index aa7cbdc4ca..0000000000 --- a/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchStoreMashupNode.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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. - */ - -package launch; - -import org.apache.tuscany.sca.node.launcher.NodeLauncher; - -public class LaunchStoreMashupNode { - public static void main(String[] args) throws Exception { - NodeLauncher.main(new String[] {"http://localhost:9990/node-config/StoreMashupNode"}); - } -} diff --git a/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchStoreMergerNode.java b/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchStoreMergerNode.java deleted file mode 100644 index a29c9b7d61..0000000000 --- a/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchStoreMergerNode.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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. - */ - -package launch; - -import org.apache.tuscany.sca.node.launcher.NodeLauncher; - -public class LaunchStoreMergerNode { - public static void main(String[] args) throws Exception { - NodeLauncher.main(new String[] {"http://localhost:9990/node-config/StoreMergerNode"}); - } -} diff --git a/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchStoreNode.java b/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchStoreNode.java deleted file mode 100644 index 11f1b2ce86..0000000000 --- a/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchStoreNode.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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. - */ - -package launch; - -import org.apache.tuscany.sca.node.launcher.NodeLauncher; - -public class LaunchStoreNode { - public static void main(String[] args) throws Exception { - NodeLauncher.main(new String[] {"http://localhost:9990/node-config/StoreNode"}); - } -} diff --git a/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchStoreSupplierNode.java b/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchStoreSupplierNode.java deleted file mode 100644 index fce27d7d3b..0000000000 --- a/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchStoreSupplierNode.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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. - */ - -package launch; - -import org.apache.tuscany.sca.node.launcher.NodeLauncher; - -public class LaunchStoreSupplierNode { - public static void main(String[] args) throws Exception { - NodeLauncher.main(new String[] {"http://localhost:9990/node-config/StoreSupplierNode"}); - } -} diff --git a/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchTutorialDomainManager.java b/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchTutorialDomainManager.java deleted file mode 100644 index 7408e99c63..0000000000 --- a/branches/sca-java-1.3.2/tutorial/domain/launch/LaunchTutorialDomainManager.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * 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. - */ - -package launch; - -/** - * Launches the domain manager from this module. - * - * @version $Rev$ $Date$ - */ -public class LaunchTutorialDomainManager { - - public static void main(String[] args) throws Exception { - org.apache.tuscany.sca.node.launcher.DomainManagerLauncher.main(args); - } - -} diff --git a/branches/sca-java-1.3.2/tutorial/domain/pom.xml b/branches/sca-java-1.3.2/tutorial/domain/pom.xml deleted file mode 100644 index 147d3cb68b..0000000000 --- a/branches/sca-java-1.3.2/tutorial/domain/pom.xml +++ /dev/null @@ -1,172 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-tutorial - 1.3.2-SNAPSHOT - ../pom.xml - - tutorial-domain - Apache Tuscany SCA Tutorial Domain - - - - apache.incubator - http://people.apache.org/repo/m2-incubating-repository - - - - - - org.apache.tuscany.sca - tuscany-node2-launcher - 1.3.2-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-domain-manager - 1.3.2-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-node-runtime - 1.3.2-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 1.3.2-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-widget-runtime - 1.3.2-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-resource-runtime - 1.3.2-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-atom-abdera - 1.3.2-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jsonrpc-runtime - 1.3.2-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-http-runtime - 1.3.2-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-ws-axis2 - 1.3.2-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-sca-axis2 - 1.3.2-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-ejb-runtime - 1.3.2-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-ejb - 1.3.2-SNAPSHOT - runtime - - - - org.apache.derby - derby - 10.3.1.4 - runtime - - - - - - ${artifactId} - ${basedir} - - - ${basedir} - - **/*.java - **/.*/** - pom.xml - build.xml - target/** - - - - - - org.apache.tuscany.sca - tuscany-maven-ant-generator - 1.3.2-SNAPSHOT - - - - launch.LaunchTutorialAdmin - - - generate - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/domain/workspace.xml b/branches/sca-java-1.3.2/tutorial/domain/workspace.xml deleted file mode 100644 index 702b9aff30..0000000000 --- a/branches/sca-java-1.3.2/tutorial/domain/workspace.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/pom.xml b/branches/sca-java-1.3.2/tutorial/pom.xml deleted file mode 100644 index 7241fb12a7..0000000000 --- a/branches/sca-java-1.3.2/tutorial/pom.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.3.2-SNAPSHOT - ../pom.xml - - tuscany-tutorial - pom - Apache Tuscany SCA Tutorial - - - - default - - true - - - domain - assets - store - store-merger - store-client - store-db - store-supplier - store-market - store-eu - web-services - catalog-webapp - catalog-ejb - catalog-mediation - store-test - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/store-client/META-INF/sca-contribution.xml b/branches/sca-java-1.3.2/tutorial/store-client/META-INF/sca-contribution.xml deleted file mode 100644 index 30ffa61ed2..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-client/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - \ No newline at end of file diff --git a/branches/sca-java-1.3.2/tutorial/store-client/client/Shopper.java b/branches/sca-java-1.3.2/tutorial/store-client/client/Shopper.java deleted file mode 100644 index f8643d4c52..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-client/client/Shopper.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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. - */ - -package client; - -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface Shopper { - - String shop(String itemName, int quantity); - -} diff --git a/branches/sca-java-1.3.2/tutorial/store-client/client/ShopperImpl.java b/branches/sca-java-1.3.2/tutorial/store-client/client/ShopperImpl.java deleted file mode 100644 index c017548fb3..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-client/client/ShopperImpl.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * 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. - */ - -package client; - -import org.apache.tuscany.sca.data.collection.NotFoundException; -import org.osoa.sca.annotations.Reference; - -import services.Cart; -import services.Catalog; -import services.Item; -import services.Total; - -public class ShopperImpl implements Shopper { - - @Reference - public Catalog catalog; - - @Reference - public Cart shoppingCart; - - @Reference - public Total shoppingTotal; - - public String shop(String itemName, int quantity) { - - Item[] items = catalog.get(); - for (Item item: items) { - if (item.getName().startsWith(itemName)) { - - try { - shoppingCart.delete(""); - } catch (NotFoundException e) { - } - - for (int i = 0; i < quantity; i++) { - shoppingCart.post("item" + i, item); - } - - return shoppingTotal.getTotal(); - } - } - - return ""; - } - -} diff --git a/branches/sca-java-1.3.2/tutorial/store-client/launch/LaunchStoreClientNode.java b/branches/sca-java-1.3.2/tutorial/store-client/launch/LaunchStoreClientNode.java deleted file mode 100644 index 4709240db5..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-client/launch/LaunchStoreClientNode.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * 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. - */ - -package launch; - -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCANode2; -import org.apache.tuscany.sca.node.launcher.NodeLauncher; - -import client.Shopper; - -public class LaunchStoreClientNode { - - public static void main(String[] args) throws Exception { - NodeLauncher nodeLauncher = NodeLauncher.newInstance(); - SCANode2 storeClientNode = nodeLauncher.createNode("http://localhost:9990/node-config/StoreClientNode"); - storeClientNode.start(); - SCAClient client = (SCAClient)storeClientNode; - - Shopper shopper = client.getService(Shopper.class, "StoreClient"); - - String total = shopper.shop("Orange", 5); - System.out.println("Total: " + total); - - storeClientNode.stop(); - } -} diff --git a/branches/sca-java-1.3.2/tutorial/store-client/pom.xml b/branches/sca-java-1.3.2/tutorial/store-client/pom.xml deleted file mode 100644 index bb36dad21b..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-client/pom.xml +++ /dev/null @@ -1,123 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-tutorial - 1.3.2-SNAPSHOT - ../pom.xml - - tutorial-store-client - Apache Tuscany SCA Tutorial Online Store Client - - - - apache.incubator - http://people.apache.org/repo/m2-incubating-repository - - - - - - org.apache.tuscany.sca - tuscany-sca-api - 1.3.2-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-data-api - 1.3.2-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-node2-launcher - 1.3.2-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-node2-api - 1.3.2-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-implementation-node-runtime - 1.3.2-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 1.3.2-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-atom-abdera - 1.3.2-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-ws-axis2 - 1.3.2-SNAPSHOT - runtime - - - - - ${artifactId} - ${basedir} - - - ${basedir} - - **/*.java - **/.*/** - pom.xml - build.xml - target/** - - - - - - org.apache.tuscany.sca - tuscany-maven-ant-generator - 1.3.2-SNAPSHOT - - - - generate - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/store-client/services/Cart.java b/branches/sca-java-1.3.2/tutorial/store-client/services/Cart.java deleted file mode 100644 index 9e6226d963..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-client/services/Cart.java +++ /dev/null @@ -1,28 +0,0 @@ -/* - * 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. - */ - -package services; - -import org.apache.tuscany.sca.data.collection.Collection; -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface Cart extends Collection { - -} diff --git a/branches/sca-java-1.3.2/tutorial/store-client/services/Catalog.java b/branches/sca-java-1.3.2/tutorial/store-client/services/Catalog.java deleted file mode 100644 index 2c3b19f579..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-client/services/Catalog.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * 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. - */ - -package services; - -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface Catalog { - Item[] get(); -} diff --git a/branches/sca-java-1.3.2/tutorial/store-client/services/Item.java b/branches/sca-java-1.3.2/tutorial/store-client/services/Item.java deleted file mode 100644 index 81cefcdbef..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-client/services/Item.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * 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. - */ - -package services; - - -public class Item { - private String name; - private String price; - private String origin; - - public Item() { - } - - public Item(String name, String price, String origin) { - this.name = name; - this.price = price; - this.origin = origin; - } - - public Item(String name, String price) { - this.name = name; - this.price = price; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public String getPrice() { - return price; - } - - public void setPrice(String price) { - this.price = price; - } - - public String getOrigin() { - return origin; - } - - public void setOrigin(String origin) { - this.origin = origin; - } - -} diff --git a/branches/sca-java-1.3.2/tutorial/store-client/services/Total.java b/branches/sca-java-1.3.2/tutorial/store-client/services/Total.java deleted file mode 100644 index 8f464e526f..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-client/services/Total.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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. - */ - -package services; - -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface Total { - - String getTotal(); - -} diff --git a/branches/sca-java-1.3.2/tutorial/store-client/store-client.composite b/branches/sca-java-1.3.2/tutorial/store-client/store-client.composite deleted file mode 100644 index 3c5f1637ef..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-client/store-client.composite +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/store-db/META-INF/sca-contribution.xml b/branches/sca-java-1.3.2/tutorial/store-db/META-INF/sca-contribution.xml deleted file mode 100644 index 7a5d5613be..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-db/META-INF/sca-contribution.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/branches/sca-java-1.3.2/tutorial/store-db/pom.xml b/branches/sca-java-1.3.2/tutorial/store-db/pom.xml deleted file mode 100644 index 6194982b0a..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-db/pom.xml +++ /dev/null @@ -1,126 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-tutorial - 1.3.2-SNAPSHOT - ../pom.xml - - tutorial-store-db - Apache Tuscany SCA Tutorial Online Store Using DB - - - - apache.incubator - http://people.apache.org/repo/m2-incubating-repository - - - - - - org.apache.tuscany.sca - tuscany-sca-api - 1.3.2-SNAPSHOT - - - - - ${artifactId} - ${basedir} - - - ${basedir} - - **/*.java - **/.*/** - pom.xml - build.xml - target/** - - - - - - org.apache.tuscany.sca - tuscany-maven-ant-generator - 1.3.2-SNAPSHOT - - - - generate - - - - - - org.codehaus.mojo - sql-maven-plugin - - 1.1-SNAPSHOT - - - - org.apache.derby - derby - 10.3.1.4 - - - - - - create-db - generate-resources - - execute - - - org.apache.derby.jdbc.EmbeddedDriver - jdbc:derby:${basedir}/target/cart-db;create=true - true - continue - skip - ; - - ${basedir}/../assets/services/db/cart.sql - - - - - - - shutdown-database-sothat-test-can-run - process-test-resources - - execute - - - org.apache.derby.jdbc.EmbeddedDriver - jdbc:derby:${basedir}/target/cart-db;shutdown=true - true - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/store-db/store-db.composite b/branches/sca-java-1.3.2/tutorial/store-db/store-db.composite deleted file mode 100644 index 03094be5ad..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-db/store-db.composite +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - USD - - - - - - - - - - - - - USD - - - - - - ../store-db/target/cart-db - - - - - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/store-eu/META-INF/sca-contribution.xml b/branches/sca-java-1.3.2/tutorial/store-eu/META-INF/sca-contribution.xml deleted file mode 100644 index 552932b0e7..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-eu/META-INF/sca-contribution.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/branches/sca-java-1.3.2/tutorial/store-eu/pom.xml b/branches/sca-java-1.3.2/tutorial/store-eu/pom.xml deleted file mode 100644 index 1a5589ae64..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-eu/pom.xml +++ /dev/null @@ -1,111 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-tutorial - 1.3.2-SNAPSHOT - ../pom.xml - - tutorial-store-eu - Apache Tuscany SCA Tutorial EU Online Store - - - - apache.incubator - http://people.apache.org/repo/m2-incubating-repository - - - - - - org.apache.tuscany.sca - tuscany-sca-api - 1.3.2-SNAPSHOT - - - - - ${artifactId} - ${basedir} - - - ${basedir} - - **/*.java - **/.*/** - pom.xml - build.xml - target/** - - - - - - org.apache.tuscany.sca - tuscany-maven-ant-generator - 1.3.2-SNAPSHOT - - - - generate - - - - - - - org.codehaus.mojo - sql-maven-plugin - 1.0 - - - - org.apache.derby - derby - 10.3.1.4 - - - - - - create-db - generate-resources - - execute - - - org.apache.derby.jdbc.EmbeddedDriver - jdbc:derby:${basedir}/target/cart-eu-db;create=true - true - continue - ; - - ${basedir}/../assets/services/db/cart.sql - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/store-eu/store-eu.composite b/branches/sca-java-1.3.2/tutorial/store-eu/store-eu.composite deleted file mode 100644 index a0b8b50975..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-eu/store-eu.composite +++ /dev/null @@ -1,70 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - EUR - - - - - - - - - - - - - - - - - - ../store-eu/target/cart-eu-db - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/store-eu/uiservices/store-eu.html b/branches/sca-java-1.3.2/tutorial/store-eu/uiservices/store-eu.html deleted file mode 100644 index ec72d9b2a7..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-eu/uiservices/store-eu.html +++ /dev/null @@ -1,142 +0,0 @@ - - - -EU Store - - - - - - - - -

Store

-

Fruits and Vegetables - Fruits et Legumes - Obst und Gemuese -

-

Catalog

-
-
-
- -
- -
- -

Your Shopping Cart

-
-
-
-
-
- - - (feed) -
-
- - diff --git a/branches/sca-java-1.3.2/tutorial/store-market/META-INF/sca-contribution.xml b/branches/sca-java-1.3.2/tutorial/store-market/META-INF/sca-contribution.xml deleted file mode 100644 index 491230c952..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-market/META-INF/sca-contribution.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/branches/sca-java-1.3.2/tutorial/store-market/build.xml b/branches/sca-java-1.3.2/tutorial/store-market/build.xml deleted file mode 100644 index 27fe113d9e..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-market/build.xml +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/store-market/pom.xml b/branches/sca-java-1.3.2/tutorial/store-market/pom.xml deleted file mode 100644 index e5e8add55a..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-market/pom.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-tutorial - 1.3.2-SNAPSHOT - ../pom.xml - - tutorial-store-market - Apache Tuscany SCA Tutorial Marketplace Online Store - - - - apache.incubator - http://people.apache.org/repo/m2-incubating-repository - - - - - - org.apache.tuscany.sca - tuscany-sca-api - 1.3.2-SNAPSHOT - - - - - ${artifactId} - ${basedir} - - - ${basedir} - - **/*.java - **/.*/** - pom.xml - build.xml - target/** - - - - - - org.apache.tuscany.sca - tuscany-maven-ant-generator - 1.3.2-SNAPSHOT - - - - generate - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/store-market/store-market.composite b/branches/sca-java-1.3.2/tutorial/store-market/store-market.composite deleted file mode 100644 index 1c225e6c07..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-market/store-market.composite +++ /dev/null @@ -1,68 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - USD - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/store-merger/META-INF/sca-contribution.xml b/branches/sca-java-1.3.2/tutorial/store-merger/META-INF/sca-contribution.xml deleted file mode 100644 index 700a84736c..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-merger/META-INF/sca-contribution.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/branches/sca-java-1.3.2/tutorial/store-merger/pom.xml b/branches/sca-java-1.3.2/tutorial/store-merger/pom.xml deleted file mode 100644 index 5e39770d6d..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-merger/pom.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-tutorial - 1.3.2-SNAPSHOT - ../pom.xml - - tutorial-store-merger - Apache Tuscany SCA Tutorial Merger Online Store - - - - apache.incubator - http://people.apache.org/repo/m2-incubating-repository - - - - - - org.apache.tuscany.sca - tuscany-sca-api - 1.3.2-SNAPSHOT - - - - - ${artifactId} - ${basedir} - - - ${basedir} - - **/*.java - **/.*/** - pom.xml - build.xml - target/** - - - - - - org.apache.tuscany.sca - tuscany-maven-ant-generator - 1.3.2-SNAPSHOT - - - - generate - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/store-merger/store-merger.composite b/branches/sca-java-1.3.2/tutorial/store-merger/store-merger.composite deleted file mode 100644 index 76d77dc693..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-merger/store-merger.composite +++ /dev/null @@ -1,75 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - USD - - - - - - - - - - - - - - USD - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/store-supplier/META-INF/sca-contribution.xml b/branches/sca-java-1.3.2/tutorial/store-supplier/META-INF/sca-contribution.xml deleted file mode 100644 index a75087aca1..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-supplier/META-INF/sca-contribution.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/branches/sca-java-1.3.2/tutorial/store-supplier/pom.xml b/branches/sca-java-1.3.2/tutorial/store-supplier/pom.xml deleted file mode 100644 index 04bcf37391..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-supplier/pom.xml +++ /dev/null @@ -1,127 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-tutorial - 1.3.2-SNAPSHOT - ../pom.xml - - tutorial-store-supplier - Apache Tuscany SCA Tutorial Supplier Online Store - - - - apache.incubator - http://people.apache.org/repo/m2-incubating-repository - - - - - - org.apache.tuscany.sca - tuscany-sca-api - 1.3.2-SNAPSHOT - - - - - ${artifactId} - ${basedir} - - - ${basedir} - - **/*.java - **/.*/** - pom.xml - build.xml - target/** - - - - - - org.apache.tuscany.sca - tuscany-maven-ant-generator - 1.3.2-SNAPSHOT - - - - generate - - - - - - - org.codehaus.mojo - sql-maven-plugin - - 1.1-SNAPSHOT - - - - org.apache.derby - derby - 10.3.1.4 - - - - - - create-db - generate-resources - - execute - - - org.apache.derby.jdbc.EmbeddedDriver - jdbc:derby:${basedir}/target/cart-db;create=true - true - continue - skip - ; - - ${basedir}/../assets/services/db/cart.sql - - - - - - - shutdown-database-sothat-test-can-run - process-test-resources - - execute - - - org.apache.derby.jdbc.EmbeddedDriver - jdbc:derby:${basedir}/target/cart-db;shutdown=true - true - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/store-supplier/store-supplier.composite b/branches/sca-java-1.3.2/tutorial/store-supplier/store-supplier.composite deleted file mode 100644 index 525bc889cb..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-supplier/store-supplier.composite +++ /dev/null @@ -1,77 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - USD - - - - - - - - - - - - - - USD - - - - - - ../store-supplier/target/cart-db - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/store-test/META-INF/sca-contribution.xml b/branches/sca-java-1.3.2/tutorial/store-test/META-INF/sca-contribution.xml deleted file mode 100644 index a75087aca1..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-test/META-INF/sca-contribution.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/branches/sca-java-1.3.2/tutorial/store-test/client/Shopper.java b/branches/sca-java-1.3.2/tutorial/store-test/client/Shopper.java deleted file mode 100644 index f8643d4c52..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-test/client/Shopper.java +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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. - */ - -package client; - -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface Shopper { - - String shop(String itemName, int quantity); - -} diff --git a/branches/sca-java-1.3.2/tutorial/store-test/pom.xml b/branches/sca-java-1.3.2/tutorial/store-test/pom.xml deleted file mode 100644 index b57e451c49..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-test/pom.xml +++ /dev/null @@ -1,201 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-tutorial - 1.3.2-SNAPSHOT - ../pom.xml - - tutorial-store-test - Apache Tuscany SCA Tutorial Integration Test - - - - apache.incubator - http://people.apache.org/repo/m2-incubating-repository - - - - - - org.apache.tuscany.sca - tuscany-sca-api - 1.3.2-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-data-api - 1.3.2-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-node2-launcher - 1.3.2-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-node2-api - 1.3.2-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-domain-manager - 1.3.2-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-node-runtime - 1.3.2-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 1.3.2-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-widget-runtime - 1.3.2-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-resource-runtime - 1.3.2-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-atom-abdera - 1.3.2-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jsonrpc-runtime - 1.3.2-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-http-runtime - 1.3.2-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-ws-axis2 - 1.3.2-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-sca-axis2 - 1.3.2-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-ejb-runtime - 1.3.2-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-ejb - 1.3.2-SNAPSHOT - runtime - - - - org.apache.derby - derby - 10.3.1.4 - runtime - - - - junit - junit - 4.2 - test - - - - org.apache.tuscany.sca - tutorial-store-supplier - 1.3.2-SNAPSHOT - runtime - - - - - - ${artifactId} - ${basedir} - - - ${basedir} - - **/*.java - **/.*/** - pom.xml - build.xml - target/** - - - - - - org.apache.tuscany.sca - tuscany-maven-ant-generator - 1.3.2-SNAPSHOT - - - - generate - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/store-test/test/StoreSupplierTestCase.java b/branches/sca-java-1.3.2/tutorial/store-test/test/StoreSupplierTestCase.java deleted file mode 100644 index a7cb97ccc2..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store-test/test/StoreSupplierTestCase.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * 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. - */ - -package test; - -import junit.framework.Assert; -import junit.framework.TestCase; - -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCANode2; -import org.apache.tuscany.sca.node.launcher.DomainManagerLauncher; -import org.apache.tuscany.sca.node.launcher.NodeLauncher; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -import client.Shopper; - - -/** - * Test the store-merger. - * - * @version $Rev$ $Date$ - */ -public class StoreSupplierTestCase { - - private SCANode2 domainManager; - private SCANode2 storeSupplierNode; - private SCANode2 storeCatalogsNode; - private SCANode2 storeClientNode; - - @Before - public void setup() throws Exception { - String baseDir = System.getProperty("basedir"); - String domainDir = baseDir != null? baseDir + "/" + "../domain" : "../domain"; - - DomainManagerLauncher managerLauncher = DomainManagerLauncher.newInstance(); - domainManager = managerLauncher.createDomainManager(domainDir); - domainManager.start(); - - NodeLauncher nodeLauncher = NodeLauncher.newInstance(); - storeSupplierNode = nodeLauncher.createNode("http://localhost:9990/node-config/StoreSupplierNode"); - storeSupplierNode.start(); - - storeCatalogsNode = nodeLauncher.createNode("http://localhost:9990/node-config/CatalogsNode"); - storeCatalogsNode.start(); - - storeClientNode = nodeLauncher.createNode("http://localhost:9990/node-config/StoreClientNode"); - storeClientNode.start(); - - } - - @After - public void tearDown() throws Exception { - storeSupplierNode.stop(); - storeCatalogsNode.stop(); - storeClientNode.stop(); - domainManager.stop(); - } - - @Test - public void testShop() { - SCAClient client = (SCAClient)storeClientNode; - Shopper shopper = client.getService(Shopper.class, "StoreClient"); - - String total = shopper.shop("Orange", 5); - System.out.println("Total: " + total); - - Assert.assertEquals("$17.75", total); - - } - -} diff --git a/branches/sca-java-1.3.2/tutorial/store/META-INF/sca-contribution.xml b/branches/sca-java-1.3.2/tutorial/store/META-INF/sca-contribution.xml deleted file mode 100644 index 3ed6e4a4ef..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store/META-INF/sca-contribution.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/branches/sca-java-1.3.2/tutorial/store/pom.xml b/branches/sca-java-1.3.2/tutorial/store/pom.xml deleted file mode 100644 index 0de1da43eb..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store/pom.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-tutorial - 1.3.2-SNAPSHOT - ../pom.xml - - tutorial-store - Apache Tuscany SCA Tutorial Online Store - - - - apache.incubator - http://people.apache.org/repo/m2-incubating-repository - - - - - - org.apache.tuscany.sca - tuscany-sca-api - 1.3.2-SNAPSHOT - - - - - ${artifactId} - ${basedir} - - - ${basedir} - - **/*.java - **/.*/** - pom.xml - build.xml - target/** - - - - - - org.apache.tuscany.sca - tuscany-maven-ant-generator - 1.3.2-SNAPSHOT - - - - generate - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/store/store.composite b/branches/sca-java-1.3.2/tutorial/store/store.composite deleted file mode 100644 index b3f3140c8c..0000000000 --- a/branches/sca-java-1.3.2/tutorial/store/store.composite +++ /dev/null @@ -1,64 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - USD - - - - - - - - - - - - - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/web-services/META-INF/sca-contribution.xml b/branches/sca-java-1.3.2/tutorial/web-services/META-INF/sca-contribution.xml deleted file mode 100644 index 10fbe6c448..0000000000 --- a/branches/sca-java-1.3.2/tutorial/web-services/META-INF/sca-contribution.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/branches/sca-java-1.3.2/tutorial/web-services/catalogs.composite b/branches/sca-java-1.3.2/tutorial/web-services/catalogs.composite deleted file mode 100644 index 154d475165..0000000000 --- a/branches/sca-java-1.3.2/tutorial/web-services/catalogs.composite +++ /dev/null @@ -1,43 +0,0 @@ - - - - - - - - - - USD - - - - - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/web-services/currency.composite b/branches/sca-java-1.3.2/tutorial/web-services/currency.composite deleted file mode 100644 index 7a3f70e299..0000000000 --- a/branches/sca-java-1.3.2/tutorial/web-services/currency.composite +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - diff --git a/branches/sca-java-1.3.2/tutorial/web-services/pom.xml b/branches/sca-java-1.3.2/tutorial/web-services/pom.xml deleted file mode 100644 index 8212e324e4..0000000000 --- a/branches/sca-java-1.3.2/tutorial/web-services/pom.xml +++ /dev/null @@ -1,77 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-tutorial - 1.3.2-SNAPSHOT - ../pom.xml - - tutorial-web-services - Apache Tuscany SCA Tutorial Web Services - - - - apache.incubator - http://people.apache.org/repo/m2-incubating-repository - - - - - - org.apache.tuscany.sca - tuscany-sca-api - 1.3.2-SNAPSHOT - - - - - ${artifactId} - ${basedir} - - - ${basedir} - - **/*.java - **/.*/** - pom.xml - build.xml - target/** - - - - - - org.apache.tuscany.sca - tuscany-maven-ant-generator - 1.3.2-SNAPSHOT - - - - generate - - - - - - - - -- cgit v1.2.3