From f875ca919485ba5a1195f27d56537551a54b89ef Mon Sep 17 00:00:00 2001 From: slaws Date: Sun, 24 Jan 2010 14:54:37 +0000 Subject: Contrib holds material that's no longer used in the same. Don't need it in trunk but it's still in the sandbox if you really need anything from here. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@902577 13f79535-47bb-0310-9956-ffa450edef68 --- .../META-INF/MANIFEST.MF | 28 -- .../OSGI-INF/sca/bundle.componentType | 34 -- .../OSGI-INF/sca/bundle.composite | 46 --- .../creditcard-payment-dosgi-contribution/pom.xml | 240 ------------- .../java/scatours/currency/CurrencyConverter.java | 33 -- .../currency/impl/CurrencyConverterImpl.java | 55 --- .../impl/CreditCardPaymentActivator.java | 40 --- .../creditcard/impl/CreditCardPaymentImpl.java | 97 ----- .../src/main/resources/CreditCardPayment.wsdl | 118 ------- .../creditcard/test/CreditCardPaymentClient.java | 54 --- .../test/CreditCardPaymentOSGiTestCase.java | 127 ------- .../payment/creditcard/test/OSGiTestUtils.java | 105 ------ .../creditcard-payment-web-contribution/pom.xml | 100 ------ .../src/main/resources/CreditCardPayment.wsdl | 116 ------ .../src/main/webapp/WEB-INF/web.composite | 33 -- .../src/main/webapp/WEB-INF/web.xml | 41 --- .../src/main/webapp/creditcard.jsp | 71 ---- .../META-INF/MANIFEST.MF | 21 -- .../OSGI-INF/sca/bundle.componentType | 27 -- .../OSGI-INF/sca/bundle.composite | 32 -- .../currency-converter-dosgi-contribution/pom.xml | 117 ------ .../java/scatours/currency/CurrencyConverter.java | 33 -- .../currency/impl/CurrencyConverterActivator.java | 40 --- .../currency/impl/CurrencyConverterImpl.java | 55 --- .../travelsample/contrib/chapter-01/build.xml | 52 --- .../travelsample/contrib/chapter-01/pom.xml | 78 ---- .../main/java/client/CurrencyConverterClient.java | 46 --- .../src/main/java/client/TripClient.java | 45 --- .../java/currencyconverter/CurrencyConverter.java | 31 -- .../currencyconverter/CurrencyConverterImpl.java | 32 -- .../chapter-01/src/main/java/trip/Trip.java | 26 -- .../chapter-01/src/main/java/trip/TripImpl.java | 42 --- .../src/main/resources/currencyconverter.composite | 29 -- .../chapter-01/src/main/resources/trip.composite | 34 -- .../travelsample/contrib/chapter-02/build.xml | 45 --- .../chapter-02/client-contribution/build.xml | 45 --- .../contrib/chapter-02/client-contribution/pom.xml | 48 --- .../src/main/java/scatours/client/TestClient.java | 46 --- .../main/resources/META-INF/sca-contribution.xml | 25 -- .../src/main/resources/client.composite | 29 -- .../goodvaluetrips-contribution/build.xml | 44 --- .../chapter-02/goodvaluetrips-contribution/pom.xml | 42 --- .../main/java/com/goodvaluetrips/TripProvider.java | 26 -- .../src/main/java/com/goodvaluetrips/Trips.java | 26 -- .../main/resources/META-INF/sca-contribution.xml | 24 -- .../src/main/resources/trips.composite | 30 -- .../contrib/chapter-02/node-jumpstart/build.xml | 56 --- .../contrib/chapter-02/node-jumpstart/pom.xml | 70 ---- .../src/main/java/scatours/LaunchNode.java | 53 --- .../main/resources/META-INF/sca-contribution.xml | 26 -- .../src/main/resources/scatours.composite | 31 -- .../src/test/java/scatours/NodeTestCase.java | 60 ---- .../travelsample/contrib/chapter-02/node/build.xml | 56 --- .../travelsample/contrib/chapter-02/node/pom.xml | 63 ---- .../node/src/main/java/scatours/LaunchNode.java | 52 --- .../main/resources/META-INF/sca-contribution.xml | 26 -- .../node/src/main/resources/scatours.composite | 31 -- .../node/src/test/java/scatours/NodeTestCase.java | 60 ---- .../travelsample/contrib/chapter-02/pom.xml | 48 --- .../tuscanyscatours-contribution/build.xml | 44 --- .../tuscanyscatours-contribution/pom.xml | 42 --- .../src/main/java/com/goodvaluetrips/Trips.java | 26 -- .../main/java/com/tuscanyscatours/Bookings.java | 26 -- .../main/java/com/tuscanyscatours/Checkout.java | 26 -- .../java/com/tuscanyscatours/ShoppingCart.java | 28 -- .../main/java/com/tuscanyscatours/TripBooking.java | 35 -- .../src/main/java/com/tuscanyscatours/Updates.java | 26 -- .../main/resources/META-INF/sca-contribution.xml | 25 -- .../src/main/resources/tours.composite | 46 --- .../travelsample/contrib/chapter-03/pom.xml | 46 --- .../travelsample/contrib/chapter-05/node/build.xml | 278 --------------- .../travelsample/contrib/chapter-05/node/pom.xml | 164 --------- .../node/src/main/java/scatours/LaunchNode.java | 65 ---- .../travelsample/contrib/chapter-05/pom.xml | 46 --- .../contrib/chapter-05/ui-contribution/build.xml | 116 ------ .../contrib/chapter-05/ui-contribution/pom.xml | 88 ----- .../main/resources/META-INF/sca-contribution.xml | 38 -- .../src/main/resources/scatours.composite | 167 --------- .../src/main/resources/scatours.html | 391 --------------------- .../src/main/resources/scatours.odg | Bin 11477 -> 0 bytes .../src/main/resources/scatours.png | Bin 11061 -> 0 bytes .../ui-contribution/src/main/resources/style.css | 135 ------- .../travelsample/contrib/chapter-06/node/build.xml | 214 ----------- .../travelsample/contrib/chapter-06/node/pom.xml | 186 ---------- .../main/java/scatours/LaunchBPELExampleNode.java | 66 ---- .../java/scatours/LaunchSpringExampleNode.java | 66 ---- .../payment-bpel-contribution/log4j.properties | 36 -- .../chapter-06/payment-bpel-contribution/pom.xml | 181 ---------- .../src/main/resources/CreditCardPayment.wsdl | 117 ------ .../src/main/resources/EmailGateway.wsdl | 89 ----- .../main/resources/META-INF/sca-contribution.xml | 23 -- .../src/main/resources/Payment.wsdl | 83 ----- .../src/main/resources/payment.bpel | 164 --------- .../java/scatours/payment/PaymentTestCase.java | 71 ---- .../scatours/payment/client/PaymentClientImpl.java | 37 -- .../test/resources/META-INF/sca-contribution.xml | 23 -- .../src/test/resources/payment.composite | 47 --- .../payment-javascript-contribution/pom.xml | 166 --------- .../src/main/resources/CreditCardPayment.wsdl | 116 ------ .../src/main/resources/EmailGateway.wsdl | 89 ----- .../main/resources/META-INF/sca-contribution.xml | 22 -- .../src/main/resources/Payment.wsdl | 83 ----- .../src/main/resources/payment.composite | 48 --- .../src/main/resources/payment/PaymentImpl.groovy | 31 -- .../src/test/java/payment/PaymentTestCase.java | 76 ---- .../java/payment/client/PaymentClientImpl.java | 37 -- .../payment/creditcard/CreditCardPaymentImpl.java | 41 --- .../scatours/emailgateway/EmailGatewayImpl.java | 29 -- .../payment-spring-annotation-contribution/pom.xml | 166 --------- .../src/main/java/payment/PaymentImpl.java | 78 ---- .../scatours/emailgateway/EmailGatewayImpl.java | 29 -- .../src/main/resources/CreditCardPayment.wsdl | 116 ------ .../src/main/resources/EmailGateway.wsdl | 89 ----- .../main/resources/META-INF/sca-contribution.xml | 24 -- .../src/main/resources/Payment-context.xml | 44 --- .../src/main/resources/Payment.wsdl | 83 ----- .../src/test/java/payment/PaymentTestCase.java | 73 ---- .../java/payment/client/PaymentClientImpl.java | 37 -- .../test/resources/META-INF/sca-contribution.xml | 24 -- .../src/test/resources/payment.composite | 48 --- .../chapter-06/payment-spring-contribution/pom.xml | 184 ---------- .../src/main/java/payment/PaymentImpl.java | 64 ---- .../scatours/emailgateway/EmailGatewayImpl.java | 29 -- .../src/main/resources/CreditCardPayment.wsdl | 116 ------ .../src/main/resources/EmailGateway.wsdl | 89 ----- .../main/resources/META-INF/sca-contribution.xml | 23 -- .../src/main/resources/Payment-context.xml | 34 -- .../src/main/resources/Payment.wsdl | 83 ----- .../src/test/java/payment/PaymentTestCase.java | 73 ---- .../java/payment/client/PaymentClientImpl.java | 37 -- .../test/resources/META-INF/sca-contribution.xml | 22 -- .../src/test/resources/payment.composite | 47 --- .../travelsample/contrib/chapter-06/pom.xml | 51 --- .../chapter-06/ui-bpel-contribution/build.xml | 117 ------ .../chapter-06/ui-bpel-contribution/pom.xml | 88 ----- .../main/resources/META-INF/sca-contribution.xml | 37 -- .../src/main/resources/scatours.composite | 178 ---------- .../src/main/resources/scatours.html | 391 --------------------- .../src/main/resources/scatours.odg | Bin 11477 -> 0 bytes .../src/main/resources/scatours.png | Bin 11061 -> 0 bytes .../src/main/resources/style.css | 135 ------- .../chapter-06/ui-spring-contribution/build.xml | 117 ------ .../chapter-06/ui-spring-contribution/pom.xml | 88 ----- .../main/resources/META-INF/sca-contribution.xml | 37 -- .../src/main/resources/scatours.composite | 169 --------- .../src/main/resources/scatours.html | 391 --------------------- .../src/main/resources/scatours.odg | Bin 11477 -> 0 bytes .../src/main/resources/scatours.png | Bin 11061 -> 0 bytes .../src/main/resources/style.css | 135 ------- .../travelsample/contrib/chapter-07/pom.xml | 46 --- .../travelsample/contrib/chapter-08/pom.xml | 46 --- .../chapter-08/ui-contribution-webapp/build.xml | 106 ------ .../chapter-08/ui-contribution-webapp/pom.xml | 103 ------ .../META-INF/sca-deployables/scatours.composite | 62 ---- .../src/main/webapp/WEB-INF/web.xml | 41 --- .../src/main/webapp/scatours.html | 143 -------- .../src/main/webapp/scatours.odg | Bin 11477 -> 0 bytes .../src/main/webapp/scatours.png | Bin 11061 -> 0 bytes .../src/main/webapp/style.css | 135 ------- .../creditcard-payment-sdo-contribution/pom.xml | 130 ------- .../java/payment/creditcard/CreditCardPayment.java | 39 -- .../creditcard/impl/CreditCardPaymentImpl.java | 47 --- .../src/main/resources/CreditCardPayment.wsdl | 117 ------ .../main/resources/META-INF/sca-contribution.xml | 25 -- .../src/main/resources/creditcard.composite | 35 -- .../creditcard/CreditCardPaymentTestCase.java | 86 ----- .../travelsample/contrib/chapter-09/node/build.xml | 210 ----------- .../travelsample/contrib/chapter-09/node/pom.xml | 144 -------- .../node/src/main/java/scatours/LaunchNode.java | 65 ---- .../chapter-09/payment-contribution/pom.xml | 124 ------- .../src/main/java/payment/Payment.java | 26 -- .../src/main/java/payment/PaymentImpl.java | 54 --- .../src/main/resources/CreditCardPayment.wsdl | 116 ------ .../main/resources/META-INF/sca-contribution.xml | 25 -- .../src/test/java/payment/PaymentTestCase.java | 76 ---- .../payment/creditcard/CreditCardPaymentImpl.java | 44 --- .../src/test/resources/payment.composite | 34 -- .../travelsample/contrib/chapter-09/pom.xml | 48 --- .../contrib/chapter-09/ui-contribution/build.xml | 108 ------ .../contrib/chapter-09/ui-contribution/pom.xml | 71 ---- .../chapter-09/ui-contribution/scatours.odg | Bin 11477 -> 0 bytes .../chapter-09/ui-contribution/scatours.png | Bin 11061 -> 0 bytes .../main/resources/META-INF/sca-contribution.xml | 37 -- .../src/main/resources/scatours.composite | 178 ---------- .../src/main/resources/scatours.html | 390 -------------------- .../ui-contribution/src/main/resources/style.css | 135 ------- .../contrib/scatours-android-ui/.classpath | 7 - .../contrib/scatours-android-ui/.project | 33 -- .../scatours-android-ui/AndroidManifest.xml | 17 - .../contrib/scatours-android-ui/default.properties | 22 -- .../gen/scatours/android/R.java | 35 -- .../scatours-android-ui/res/drawable/icon.png | Bin 3180 -> 0 bytes .../scatours-android-ui/res/layout/search.xml | 65 ---- .../res/layout/search_results.xml | 13 - .../scatours-android-ui/res/values/strings.xml | 7 - .../src/scatours/SCAToursSearch.java | 29 -- .../src/scatours/SCAToursSearchProxy.java | 81 ----- .../src/scatours/android/TripSearch.java | 186 ---------- .../src/scatours/android/TripSearchResults.java | 57 --- .../src/scatours/common/TripItem.java | 219 ------------ .../src/scatours/common/TripLeg.java | 97 ----- .../src/scatours/jsonrpc/JSONRpc.java | 63 ---- .../calendar-contribution/pom.xml | 57 --- .../src/main/java/calendar/Calendar.java | 28 -- .../src/main/java/calendar/CalendarImpl.java | 45 --- .../main/resources/META-INF/sca-contribution.xml | 22 -- .../src/main/resources/calendar.composite | 29 -- .../src/test/java/calendar/CalendarTestCase.java | 47 --- .../src/test/resources/calendar.composite | 29 -- .../shared-contributions/car-contribution/pom.xml | 62 ---- .../src/main/java/scatours/car/CarImpl.java | 100 ------ .../src/main/java/scatours/car/CarInfo.java | 120 ------- .../main/resources/META-INF/sca-contribution.xml | 23 -- .../common-contribution/build.xml | 61 ---- .../common-contribution/pom.xml | 56 --- .../src/main/java/scatours/common/Book.java | 27 -- .../src/main/java/scatours/common/Search.java | 33 -- .../main/java/scatours/common/SearchCallback.java | 27 -- .../src/main/java/scatours/common/TripItem.java | 219 ------------ .../src/main/java/scatours/common/TripLeg.java | 97 ----- .../main/resources/META-INF/sca-contribution.xml | 22 -- .../creditcard-payment-jaxb-contribution/pom.xml | 131 ------- .../payment/creditcard/CreditCardPaymentImpl.java | 44 --- .../src/main/resources/CreditCardPayment.wsdl | 116 ------ .../main/resources/META-INF/sca-contribution.xml | 22 -- .../creditcard/CreditCardPaymentTestCase.java | 83 ----- .../test/resources/META-INF/sca-contribution.xml | 22 -- .../src/test/resources/creditcard.composite | 34 -- .../currency-contribution/pom.xml | 57 --- .../currencyconverter/CurrencyConverter.java | 33 -- .../currencyconverter/CurrencyConverterImpl.java | 54 --- .../main/resources/META-INF/sca-contribution.xml | 22 -- .../emailgateway-contribution/pom.xml | 124 ------- .../scatours/emailgateway/EmailGatewayImpl.java | 36 -- .../src/main/resources/EmailGateway.wsdl | 89 ----- .../main/resources/META-INF/sca-contribution.xml | 22 -- .../emailgateway/EmailGatewayTestCase.java | 80 ----- .../client/EmailGatewayClientImpl.java | 41 --- .../src/test/resources/EmailGatewayImpl.java | 36 -- .../test/resources/META-INF/sca-contribution.xml | 22 -- .../src/test/resources/emailgateway.composite | 37 -- .../flight-contribution/pom.xml | 62 ---- .../src/main/java/scatours/flight/FlightImpl.java | 127 ------- .../src/main/java/scatours/flight/FlightInfo.java | 142 -------- .../main/resources/META-INF/sca-contribution.xml | 23 -- .../hotel-contribution/pom.xml | 62 ---- .../src/main/java/scatours/hotel/HotelImpl.java | 116 ------ .../src/main/java/scatours/hotel/HotelInfo.java | 120 ------- .../main/resources/META-INF/sca-contribution.xml | 23 -- .../payment-java-contribution/pom.xml | 155 -------- .../src/main/java/payment/PaymentImpl.java | 88 ----- .../payment/creditcard/CreditCardPaymentImpl.java | 50 --- .../src/main/java/scatours/customer/Customer.java | 70 ---- .../customer/CustomerNotFoundException.java | 58 --- .../java/scatours/customer/CustomerRegistry.java | 39 -- .../scatours/customer/CustomerRegistryImpl.java | 112 ------ .../java/scatours/emailgateway/EmailGateway.java | 30 -- .../scatours/emailgateway/EmailGatewayImpl.java | 35 -- .../src/main/resources/CreditCardPayment.wsdl | 130 ------- .../main/resources/META-INF/sca-contribution.xml | 22 -- .../src/main/resources/Payment.wsdl | 83 ----- .../src/main/resources/definitions.xml | 33 -- .../src/main/resources/payment.composite | 46 --- .../src/test/java/payment/PaymentTestCase.java | 77 ---- .../contrib/shared-contributions/pom.xml | 58 --- .../scatours-contribution/pom.xml | 94 ----- .../src/main/java/scatours/SCAToursBooking.java | 32 -- .../src/main/java/scatours/SCAToursCart.java | 33 -- .../src/main/java/scatours/SCAToursImpl.java | 99 ------ .../src/main/java/scatours/SCAToursSearch.java | 32 -- .../main/resources/META-INF/sca-contribution.xml | 26 -- .../shoppingcart-contribution/pom.xml | 119 ------- .../java/scatours/shoppingcart/ShoppingCart.java | 39 -- .../scatours/shoppingcart/ShoppingCartImpl.java | 95 ----- .../main/resources/META-INF/sca-contribution.xml | 24 -- .../src/main/resources/Payment.wsdl | 83 ----- .../travelcatalog-contribution/pom.xml | 74 ---- .../scatours/travelcatalog/TravelCatalogImpl.java | 132 ------- .../travelcatalog/TravelCatalogSearch.java | 32 -- .../main/resources/META-INF/sca-contribution.xml | 24 -- .../shared-contributions/trip-contribution/pom.xml | 62 ---- .../src/main/java/scatours/trip/TripImpl.java | 106 ------ .../src/main/java/scatours/trip/TripInfo.java | 142 -------- .../main/resources/META-INF/sca-contribution.xml | 23 -- .../tripbooking-contribution/build.xml | 61 ---- .../tripbooking-contribution/pom.xml | 74 ---- .../java/scatours/tripbooking/TripBooking.java | 32 -- .../java/scatours/tripbooking/TripBookingImpl.java | 135 ------- .../main/resources/META-INF/sca-contribution.xml | 25 -- 289 files changed, 20230 deletions(-) delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/META-INF/MANIFEST.MF delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/OSGI-INF/sca/bundle.componentType delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/OSGI-INF/sca/bundle.composite delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/main/java/scatours/currency/CurrencyConverter.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/main/java/scatours/currency/impl/CurrencyConverterImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/main/java/scatours/payment/creditcard/impl/CreditCardPaymentActivator.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/main/java/scatours/payment/creditcard/impl/CreditCardPaymentImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/main/resources/CreditCardPayment.wsdl delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/test/java/scatours/payment/creditcard/test/CreditCardPaymentClient.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/test/java/scatours/payment/creditcard/test/CreditCardPaymentOSGiTestCase.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/test/java/scatours/payment/creditcard/test/OSGiTestUtils.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/src/main/resources/CreditCardPayment.wsdl delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/src/main/webapp/WEB-INF/web.composite delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/src/main/webapp/WEB-INF/web.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/src/main/webapp/creditcard.jsp delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/META-INF/MANIFEST.MF delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/OSGI-INF/sca/bundle.componentType delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/OSGI-INF/sca/bundle.composite delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/src/main/java/scatours/currency/CurrencyConverter.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/src/main/java/scatours/currency/impl/CurrencyConverterActivator.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/src/main/java/scatours/currency/impl/CurrencyConverterImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/build.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/client/CurrencyConverterClient.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/client/TripClient.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/currencyconverter/CurrencyConverter.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/currencyconverter/CurrencyConverterImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/trip/Trip.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/trip/TripImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/resources/currencyconverter.composite delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/resources/trip.composite delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/build.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/build.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/src/main/java/scatours/client/TestClient.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/src/main/resources/client.composite delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/build.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/src/main/java/com/goodvaluetrips/TripProvider.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/src/main/java/com/goodvaluetrips/Trips.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/src/main/resources/trips.composite delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/build.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/src/main/java/scatours/LaunchNode.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/src/main/resources/scatours.composite delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/src/test/java/scatours/NodeTestCase.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/build.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/src/main/java/scatours/LaunchNode.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/src/main/resources/scatours.composite delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/src/test/java/scatours/NodeTestCase.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/build.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/goodvaluetrips/Trips.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/Bookings.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/Checkout.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/ShoppingCart.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/TripBooking.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/Updates.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/resources/tours.composite delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-03/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/node/build.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/node/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/node/src/main/java/scatours/LaunchNode.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/build.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/scatours.composite delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/scatours.html delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/scatours.odg delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/scatours.png delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/style.css delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/node/build.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/node/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/node/src/main/java/scatours/LaunchBPELExampleNode.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/node/src/main/java/scatours/LaunchSpringExampleNode.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/log4j.properties delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/CreditCardPayment.wsdl delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/EmailGateway.wsdl delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/Payment.wsdl delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/payment.bpel delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/test/java/scatours/payment/PaymentTestCase.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/test/java/scatours/payment/client/PaymentClientImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/test/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/test/resources/payment.composite delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/CreditCardPayment.wsdl delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/EmailGateway.wsdl delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/Payment.wsdl delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/payment.composite delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/payment/PaymentImpl.groovy delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/test/java/payment/PaymentTestCase.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/test/java/payment/client/PaymentClientImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/test/java/payment/creditcard/CreditCardPaymentImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/test/java/scatours/emailgateway/EmailGatewayImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/java/payment/PaymentImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/java/scatours/emailgateway/EmailGatewayImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/CreditCardPayment.wsdl delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/EmailGateway.wsdl delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/Payment-context.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/Payment.wsdl delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/test/java/payment/PaymentTestCase.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/test/java/payment/client/PaymentClientImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/test/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/test/resources/payment.composite delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/java/payment/PaymentImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/java/scatours/emailgateway/EmailGatewayImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/CreditCardPayment.wsdl delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/EmailGateway.wsdl delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/Payment-context.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/Payment.wsdl delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/test/java/payment/PaymentTestCase.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/test/java/payment/client/PaymentClientImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/test/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/test/resources/payment.composite delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/build.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/scatours.composite delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/scatours.html delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/scatours.odg delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/scatours.png delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/style.css delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/build.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/scatours.composite delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/scatours.html delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/scatours.odg delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/scatours.png delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/style.css delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-07/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/build.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/META-INF/sca-deployables/scatours.composite delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/WEB-INF/web.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.html delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.odg delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.png delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/style.css delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/java/payment/creditcard/CreditCardPayment.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/java/payment/creditcard/impl/CreditCardPaymentImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/resources/CreditCardPayment.wsdl delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/resources/creditcard.composite delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/test/java/payment/creditcard/CreditCardPaymentTestCase.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/node/build.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/node/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/node/src/main/java/scatours/LaunchNode.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/main/java/payment/Payment.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/main/java/payment/PaymentImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/main/resources/CreditCardPayment.wsdl delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/test/java/payment/PaymentTestCase.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/test/java/payment/creditcard/CreditCardPaymentImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/test/resources/payment.composite delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/build.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/scatours.odg delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/scatours.png delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/src/main/resources/scatours.composite delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/src/main/resources/scatours.html delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/src/main/resources/style.css delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/.classpath delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/.project delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/AndroidManifest.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/default.properties delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/gen/scatours/android/R.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/res/drawable/icon.png delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/res/layout/search.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/res/layout/search_results.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/res/values/strings.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/src/scatours/SCAToursSearch.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/src/scatours/SCAToursSearchProxy.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/src/scatours/android/TripSearch.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/src/scatours/android/TripSearchResults.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/src/scatours/common/TripItem.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/src/scatours/common/TripLeg.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/src/scatours/jsonrpc/JSONRpc.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/calendar-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/calendar-contribution/src/main/java/calendar/Calendar.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/calendar-contribution/src/main/java/calendar/CalendarImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/calendar-contribution/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/calendar-contribution/src/main/resources/calendar.composite delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/calendar-contribution/src/test/java/calendar/CalendarTestCase.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/calendar-contribution/src/test/resources/calendar.composite delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/car-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/car-contribution/src/main/java/scatours/car/CarImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/car-contribution/src/main/java/scatours/car/CarInfo.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/car-contribution/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/common-contribution/build.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/common-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/common-contribution/src/main/java/scatours/common/Book.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/common-contribution/src/main/java/scatours/common/Search.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/common-contribution/src/main/java/scatours/common/SearchCallback.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/common-contribution/src/main/java/scatours/common/TripItem.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/common-contribution/src/main/java/scatours/common/TripLeg.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/common-contribution/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/creditcard-payment-jaxb-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/creditcard-payment-jaxb-contribution/src/main/java/payment/creditcard/CreditCardPaymentImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/creditcard-payment-jaxb-contribution/src/main/resources/CreditCardPayment.wsdl delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/creditcard-payment-jaxb-contribution/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/creditcard-payment-jaxb-contribution/src/test/java/payment/creditcard/CreditCardPaymentTestCase.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/creditcard-payment-jaxb-contribution/src/test/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/creditcard-payment-jaxb-contribution/src/test/resources/creditcard.composite delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/currency-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/currency-contribution/src/main/java/scatours/currencyconverter/CurrencyConverter.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/currency-contribution/src/main/java/scatours/currencyconverter/CurrencyConverterImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/currency-contribution/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/emailgateway-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/emailgateway-contribution/src/main/java/scatours/emailgateway/EmailGatewayImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/emailgateway-contribution/src/main/resources/EmailGateway.wsdl delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/emailgateway-contribution/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/emailgateway-contribution/src/test/java/scatours/emailgateway/EmailGatewayTestCase.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/emailgateway-contribution/src/test/java/scatours/emailgateway/client/EmailGatewayClientImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/emailgateway-contribution/src/test/resources/EmailGatewayImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/emailgateway-contribution/src/test/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/emailgateway-contribution/src/test/resources/emailgateway.composite delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/flight-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/flight-contribution/src/main/java/scatours/flight/FlightImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/flight-contribution/src/main/java/scatours/flight/FlightInfo.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/flight-contribution/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/hotel-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/hotel-contribution/src/main/java/scatours/hotel/HotelImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/hotel-contribution/src/main/java/scatours/hotel/HotelInfo.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/hotel-contribution/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/src/main/java/payment/PaymentImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/src/main/java/payment/creditcard/CreditCardPaymentImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/src/main/java/scatours/customer/Customer.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/src/main/java/scatours/customer/CustomerNotFoundException.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/src/main/java/scatours/customer/CustomerRegistry.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/src/main/java/scatours/customer/CustomerRegistryImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/src/main/java/scatours/emailgateway/EmailGateway.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/src/main/java/scatours/emailgateway/EmailGatewayImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/src/main/resources/CreditCardPayment.wsdl delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/src/main/resources/Payment.wsdl delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/src/main/resources/definitions.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/src/main/resources/payment.composite delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/src/test/java/payment/PaymentTestCase.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/scatours-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/scatours-contribution/src/main/java/scatours/SCAToursBooking.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/scatours-contribution/src/main/java/scatours/SCAToursCart.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/scatours-contribution/src/main/java/scatours/SCAToursImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/scatours-contribution/src/main/java/scatours/SCAToursSearch.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/scatours-contribution/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/shoppingcart-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/shoppingcart-contribution/src/main/java/scatours/shoppingcart/ShoppingCart.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/shoppingcart-contribution/src/main/java/scatours/shoppingcart/ShoppingCartImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/shoppingcart-contribution/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/shoppingcart-contribution/src/main/resources/Payment.wsdl delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/travelcatalog-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/travelcatalog-contribution/src/main/java/scatours/travelcatalog/TravelCatalogImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/travelcatalog-contribution/src/main/java/scatours/travelcatalog/TravelCatalogSearch.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/travelcatalog-contribution/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/trip-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/trip-contribution/src/main/java/scatours/trip/TripImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/trip-contribution/src/main/java/scatours/trip/TripInfo.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/trip-contribution/src/main/resources/META-INF/sca-contribution.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/tripbooking-contribution/build.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/tripbooking-contribution/pom.xml delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/tripbooking-contribution/src/main/java/scatours/tripbooking/TripBooking.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/tripbooking-contribution/src/main/java/scatours/tripbooking/TripBookingImpl.java delete mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/tripbooking-contribution/src/main/resources/META-INF/sca-contribution.xml (limited to 'sca-java-1.x/trunk') diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/META-INF/MANIFEST.MF b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/META-INF/MANIFEST.MF deleted file mode 100644 index cdf9a9df05..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/META-INF/MANIFEST.MF +++ /dev/null @@ -1,28 +0,0 @@ -Manifest-Version: 1.0 -Private-Package: calculator;version="2.0.0" -Tool: Bnd-0.0.255 -Bundle-Name: SCATours CreditCard Payment -Created-By: 1.6.0_07 (Sun Microsystems Inc.) -Bundle-Vendor: The Apache Software Foundation -Eclipse-LazyStart: false -Bundle-Version: 1.0.0 -Bnd-LastModified: 1223949424781 -Bundle-ManifestVersion: 2 -Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt -Bundle-Description: Apache Tuscany SCA Calculator OSGi Sample -Import-Package: javax.jws, - javax.xml.bind, - javax.xml.bind.annotation, - javax.xml.namespace, - javax.xml.ws, - org.apache.tuscany.sca.node;version="2.0.0", - org.oasisopen.sca.annotation;version="2.0.0", - org.osgi.framework;version="1.4", - scatours.currency, - scatours.payment.creditcard -Bundle-SymbolicName: scatours.creditcard.payment -Bundle-DocURL: http://www.apache.org/ -Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6 -Bundle-Activator: scatours.payment.creditcard.impl.CreditCardPaymentActivator -Export-Package: scatours.currency, - scatours.payment.creditcard diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/OSGI-INF/sca/bundle.componentType b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/OSGI-INF/sca/bundle.componentType deleted file mode 100644 index 847213af37..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/OSGI-INF/sca/bundle.componentType +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/OSGI-INF/sca/bundle.composite b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/OSGI-INF/sca/bundle.composite deleted file mode 100644 index 7b12b36368..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/OSGI-INF/sca/bundle.composite +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/pom.xml deleted file mode 100644 index 074a6004cb..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/pom.xml +++ /dev/null @@ -1,240 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-SNAPSHOT - ../../pom.xml - - scatours-creditcard-payment-dosgi - SCATours CreditCard Payment OSGi - - - - - false - - java.net - java.net Maven 1.x Repository - http://download.java.net/maven/1 - legacy - - - - - - org.apache.tuscany.sca - tuscany-feature-ejava - 2.0-SNAPSHOT - pom - - - org.apache.tuscany.sca - tuscany-feature-webservice - 2.0-SNAPSHOT - pom - runtime - - - org.apache.tuscany.sca - tuscany-node-launcher-equinox - 2.0-SNAPSHOT - test - - - - org.apache.tuscany.sca - tuscany-node-impl-osgi - 2.0-SNAPSHOT - runtime - - - - org.eclipse.osgi - services - 3.2.0-v20090520-1800 - - - - com.sun.xml.ws - jaxws-rt - 2.1.7 - runtime - - - - junit - junit - 4.5 - test - - - - - org.eclipse.equinox - ds - 1.1.0-v20090601 - test - - - - org.eclipse.equinox - util - 1.0.100-v20090520-1800 - test - - - - - ${artifactId} - - - org.apache.maven.plugins - maven-dependency-plugin - - - copy - generate-sources - - copy - - - - - javax.xml.ws - jaxws-api - 2.1 - jar - - - javax.xml.bind - jaxb-api - 2.1 - jar - - - com.sun.xml.bind - jaxb-impl - 2.1.12 - jar - - - org.apache.geronimo.specs - geronimo-activation_1.1_spec - 1.0.1 - - - org.apache.geronimo.specs - geronimo-stax-api_1.0_spec - 1.0.1 - - - ${project.build.directory}/endorsed - false - true - - - - - - org.apache.maven.plugins - maven-surefire-plugin - - -Djava.endorsed.dirs=target/endorsed - - - - maven-eclipse-plugin - 2.5.1 - - - org.eclipse.pde.ManifestBuilder - org.eclipse.jdt.core.javabuilder - - - org.eclipse.jdt.core.javanature - org.eclipse.pde.PluginNature - - - org.eclipse.jdt.launching.JRE_CONTAINER - - - - - - - maven-jar-plugin - - - ${basedir}/META-INF/MANIFEST.MF - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 1.0 - - - add-source - generate-sources - - add-source - - - - target/jaxws-source - - - - - - - org.codehaus.mojo - jaxws-maven-plugin - 1.12 - - - wsimport - generate-sources - - wsimport - - - scatours.payment.creditcard - ${basedir}/src/main/resources - - - CreditCardPayment.wsdl - - ${project.build.directory}/jaxws-source - - false - true - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/main/java/scatours/currency/CurrencyConverter.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/main/java/scatours/currency/CurrencyConverter.java deleted file mode 100644 index 49e1f6a119..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/main/java/scatours/currency/CurrencyConverter.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 scatours.currency; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * The CurrencyConverter service interface - */ -@Remotable -public interface CurrencyConverter { - - float getExchangeRate(String fromCurrencyCode, String toCurrencyCode); - - float convert(String fromCurrencyCode, String toCurrencyCode, float amount); - -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/main/java/scatours/currency/impl/CurrencyConverterImpl.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/main/java/scatours/currency/impl/CurrencyConverterImpl.java deleted file mode 100644 index 2a3ffc1a1e..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/main/java/scatours/currency/impl/CurrencyConverterImpl.java +++ /dev/null @@ -1,55 +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 scatours.currency.impl; - -import java.util.HashMap; -import java.util.Map; - -import org.oasisopen.sca.annotation.Service; - -import scatours.currency.CurrencyConverter; - -/** - * An implementation of the CurrencyConverter service - */ -@Service(CurrencyConverter.class) -public class CurrencyConverterImpl implements CurrencyConverter { - - // currency index - private Map currencyIndex = new HashMap(); - - // exchange rates - private final float rates[][] = { {1.00f, 0.50f, 0.66f}, {2.00f, 1.00f, 1.33f}, {1.50f, 0.75f, 1.00f}}; - - public CurrencyConverterImpl() { - currencyIndex.put("USD", new Integer(0)); - currencyIndex.put("GBP", new Integer(1)); - currencyIndex.put("EUR", new Integer(2)); - } - - public float getExchangeRate(String fromCurrencyCode, String toCurrencyCode) { - return rates[currencyIndex.get(fromCurrencyCode).intValue()][currencyIndex.get(toCurrencyCode).intValue()]; - } - - public float convert(String fromCurrencyCode, String toCurrencyCode, float amount) { - float converted = amount * getExchangeRate(fromCurrencyCode, toCurrencyCode); - System.out.println(fromCurrencyCode + amount + "=" + toCurrencyCode + converted); - return converted; - } -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/main/java/scatours/payment/creditcard/impl/CreditCardPaymentActivator.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/main/java/scatours/payment/creditcard/impl/CreditCardPaymentActivator.java deleted file mode 100644 index 9c7364d4d5..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/main/java/scatours/payment/creditcard/impl/CreditCardPaymentActivator.java +++ /dev/null @@ -1,40 +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 scatours.payment.creditcard.impl; - -import org.osgi.framework.BundleActivator; -import org.osgi.framework.BundleContext; - -import scatours.payment.creditcard.CreditCardPayment; - -/** - * - */ -public class CreditCardPaymentActivator implements BundleActivator { - - public void start(BundleContext context) throws Exception { - System.out.println("[" + context.getBundle().getSymbolicName() + "]: Registering CreditCardPayment service..."); - context.registerService(CreditCardPayment.class.getName(), new CreditCardPaymentImpl(context), null); - } - - public void stop(BundleContext context) throws Exception { - } - -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/main/java/scatours/payment/creditcard/impl/CreditCardPaymentImpl.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/main/java/scatours/payment/creditcard/impl/CreditCardPaymentImpl.java deleted file mode 100644 index d726b85f9f..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/main/java/scatours/payment/creditcard/impl/CreditCardPaymentImpl.java +++ /dev/null @@ -1,97 +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 scatours.payment.creditcard.impl; - -import java.io.StringWriter; -import java.util.UUID; - -import javax.xml.bind.JAXBContext; -import javax.xml.bind.JAXBElement; -import javax.xml.bind.JAXBException; -import javax.xml.bind.Marshaller; -import javax.xml.bind.PropertyException; -import javax.xml.namespace.QName; - -import org.osgi.framework.BundleContext; -import org.osgi.framework.ServiceReference; - -import scatours.currency.CurrencyConverter; -import scatours.payment.creditcard.CreditCardDetailsType; -import scatours.payment.creditcard.CreditCardPayment; - -public class CreditCardPaymentImpl implements CreditCardPayment { - private BundleContext context; - - public CreditCardPaymentImpl(BundleContext context) { - super(); - this.context = context; - } - - public String authorize(CreditCardDetailsType creditCard, float amount) { - float charge = amount; - if (creditCard != null) { - try { - print(creditCard); - } catch (Exception e) { - e.printStackTrace(); - } - - System.out.println("Credit card: name = " + creditCard.getCardOwner().getName() - + " number = " - + creditCard.getCreditCardNumber() - + " for amount " - + amount - + " EUR"); - charge = convertCurrency(amount); - } else { - System.out.println("Credit card is null"); - return "FAILURE: Invalid Credit Card Number"; - } - - return "SUCCESS: Auth Code=" + UUID.randomUUID() + " (EUR" + amount + "->USD" + charge + ")"; - } - - private void print(CreditCardDetailsType creditCard) throws JAXBException, PropertyException { - JAXBContext context = JAXBContext.newInstance(CreditCardDetailsType.class); - QName name = new QName("http://ns1", "creditCard"); - JAXBElement element = new JAXBElement(name, Object.class, creditCard); - StringWriter writer = new StringWriter(); - Marshaller marshaller = context.createMarshaller(); - marshaller.setProperty(Marshaller.JAXB_FRAGMENT, true); - marshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); - context.createMarshaller().marshal(element, writer); - writer.flush(); - System.out.println("[CreditCard]: "); - System.out.println(writer.toString()); - } - - private float convertCurrency(float amount) { - ServiceReference ref = context.getServiceReference(CurrencyConverter.class.getName()); - if (ref != null) { - CurrencyConverter converter = (CurrencyConverter)context.getService(ref); - if (converter != null) { - amount = converter.convert("EUR", "USD", amount); - context.ungetService(ref); - return amount; - } - } - throw new IllegalArgumentException("Currency cannot be converted"); - } -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/main/resources/CreditCardPayment.wsdl b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/main/resources/CreditCardPayment.wsdl deleted file mode 100644 index d50a63ac42..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/main/resources/CreditCardPayment.wsdl +++ /dev/null @@ -1,118 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/test/java/scatours/payment/creditcard/test/CreditCardPaymentClient.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/test/java/scatours/payment/creditcard/test/CreditCardPaymentClient.java deleted file mode 100644 index d41571f679..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/test/java/scatours/payment/creditcard/test/CreditCardPaymentClient.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 scatours.payment.creditcard.test; - -import scatours.payment.creditcard.CreditCardDetailsType; -import scatours.payment.creditcard.CreditCardPayment; -import scatours.payment.creditcard.CreditCardPaymentService; -import scatours.payment.creditcard.CreditCardTypeType; -import scatours.payment.creditcard.ObjectFactory; -import scatours.payment.creditcard.PayerType; - -/** - * - */ -public class CreditCardPaymentClient { - static String invoke() { - CreditCardPaymentService service = new CreditCardPaymentService(); - ObjectFactory objectFactory = new ObjectFactory(); - CreditCardDetailsType ccDetails = objectFactory.createCreditCardDetailsType(); - ccDetails.setCreditCardType(CreditCardTypeType.fromValue("Visa")); - ccDetails.setCreditCardNumber("1234-5678-1234-5678"); - ccDetails.setCVV2("123"); - ccDetails.setExpMonth(12); - ccDetails.setExpYear(2011); - PayerType ccOwner = objectFactory.createPayerType(); - ccOwner.setName("Fred"); - ccDetails.setCardOwner(ccOwner); - CreditCardPayment cc = service.getCreditCardPaymentPort(); - String status = cc.authorize(ccDetails, 100.00f); - System.out.println("Status of the transaction: " + status); - return status; - } - - public static void main(String[] args) { - invoke(); - } -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/test/java/scatours/payment/creditcard/test/CreditCardPaymentOSGiTestCase.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/test/java/scatours/payment/creditcard/test/CreditCardPaymentOSGiTestCase.java deleted file mode 100644 index 98c1fced9d..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/test/java/scatours/payment/creditcard/test/CreditCardPaymentOSGiTestCase.java +++ /dev/null @@ -1,127 +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 scatours.payment.creditcard.test; - -import static scatours.payment.creditcard.test.OSGiTestUtils.bundleStatus; - -import java.io.InputStream; -import java.io.InputStreamReader; -import java.io.Reader; -import java.net.URL; - -import org.apache.tuscany.sca.node.equinox.launcher.EquinoxHost; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.BeforeClass; -import org.junit.Test; -import org.osgi.framework.Bundle; -import org.osgi.framework.BundleContext; -import org.osgi.framework.Constants; - -/** - * - */ -public class CreditCardPaymentOSGiTestCase { - private static EquinoxHost host; - private static BundleContext context; - private static Bundle ccBundle; - - /** - * @throws java.lang.Exception - */ - @BeforeClass - public static void setUpBeforeClass() throws Exception { - try { - host = new EquinoxHost(); - context = host.start(); - - for (Bundle b : context.getBundles()) { - System.out.println(b); - if (b.getSymbolicName().equals("org.eclipse.equinox.ds") || b.getSymbolicName() - .startsWith("org.apache.tuscany.sca.")) { - try { - if (b.getHeaders().get(Constants.FRAGMENT_HOST) == null) { - // Start the non-fragment bundle - b.start(); - } - } catch (Exception e) { - e.printStackTrace(); - } - System.out.println(bundleStatus(b, false)); - } - if ("scatours.creditcard.payment".equals(b.getSymbolicName())) { - ccBundle = b; - } - } - - if (ccBundle != null) { - ccBundle.start(); - System.out.println(bundleStatus(ccBundle, false)); - } - - } catch (Exception e) { - e.printStackTrace(); - throw e; - } - } - - @Test - // @Ignore("Now we use the testClient") - public void testWS() throws Exception { - URL url = new URL("http://localhost:8082/CreditCardPayment?wsdl"); - InputStream is = url.openStream(); - Reader reader = new InputStreamReader(is); - char[] content = new char[10240]; // 10k - int len = 0; - while (true) { - int size = reader.read(content, len, content.length - len); - if (size < 0) { - break; - } - len += size; - } - Assert.assertTrue(len > 0); - String str = new String(content, 0, len); - System.out.println(str); - Assert.assertTrue(str.indexOf(" - * @param obj - * @param cls - * @return - */ - public static T cast(Object obj, Class cls) { - if (cls.isInstance(obj)) { - return cls.cast(obj); - } else { - return cls.cast(Proxy.newProxyInstance(cls.getClassLoader(), - new Class[] {cls}, - new InvocationHandlerImpl(obj))); - } - } -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/pom.xml deleted file mode 100644 index a7fa84ae74..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/pom.xml +++ /dev/null @@ -1,100 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-SNAPSHOT - ../../pom.xml - - - scatours-creditcard-payment-web - war - SCATours Credit Card Payment Web - - - - org.apache.tuscany.sca - tuscany-sca-api - 2.0-SNAPSHOT - provided - - - - - - java.net2 - java.net Maven 2.x Repository - http://download.java.net/maven/2 - - - - ${artifactId} - - - org.codehaus.mojo - build-helper-maven-plugin - 1.0 - - - add-source - generate-sources - - add-source - - - - target/jaxws-source - - - - - - - org.codehaus.mojo - jaxws-maven-plugin - 1.12 - - - wsimport - generate-sources - - wsimport - - - scatours.payment.creditcard - ${basedir}/src/main/resources - - - CreditCardPayment.wsdl - - ${project.build.directory}/jaxws-source - - false - true - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/src/main/resources/CreditCardPayment.wsdl b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/src/main/resources/CreditCardPayment.wsdl deleted file mode 100644 index c8660c4ffe..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/src/main/resources/CreditCardPayment.wsdl +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/src/main/webapp/WEB-INF/web.composite b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/src/main/webapp/WEB-INF/web.composite deleted file mode 100644 index 188c9937f7..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/src/main/webapp/WEB-INF/web.composite +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/src/main/webapp/WEB-INF/web.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index 33332936b3..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - Apache Tuscany CreditCard Payment - - - tuscany - org.apache.tuscany.sca.host.webapp.TuscanyServletFilter - - - - tuscany - /* - - - - creditcard.jsp - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/src/main/webapp/creditcard.jsp b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/src/main/webapp/creditcard.jsp deleted file mode 100644 index d40f91eabf..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/src/main/webapp/creditcard.jsp +++ /dev/null @@ -1,71 +0,0 @@ - - -<%@ page contentType="text/html;charset=UTF-8" language="java"%> -<%@ taglib uri="http://www.osoa.org/sca/sca_jsp.tld" prefix="sca"%> - - - - -<%@page import="scatours.payment.creditcard.CreditCardPaymentService"%> -<%@page import="scatours.payment.creditcard.ObjectFactory"%> -<%@page import="scatours.payment.creditcard.CreditCardDetailsType"%> -<%@page import="scatours.payment.creditcard.CreditCardTypeType"%> -<%@page import="scatours.payment.creditcard.PayerType"%> - - -

SCATours Credit Card Payment Web Application

- -

-

Card Type:
-Card Number:
-Card Holder:
-Amount (EUR):
-

-

- -<% - String c = request.getParameter("charge"); - if (c != null) { - ObjectFactory objectFactory = new ObjectFactory(); - CreditCardDetailsType ccDetails = objectFactory.createCreditCardDetailsType(); - ccDetails.setCreditCardType(CreditCardTypeType.fromValue(request.getParameter("type"))); - ccDetails.setCreditCardNumber(request.getParameter("cardNumber")); - ccDetails.setCVV2("123"); - ccDetails.setExpMonth(12); - ccDetails.setExpYear(2011); - PayerType ccOwner = objectFactory.createPayerType(); - ccOwner.setName(request.getParameter("cardHolder")); - ccDetails.setCardOwner(ccOwner); - float amount = Float.parseFloat(request.getParameter("amount")); -%> -<%=service.authorize(ccDetails, amount)%> -<% - } -%> - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/META-INF/MANIFEST.MF b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/META-INF/MANIFEST.MF deleted file mode 100644 index 68c5603763..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/META-INF/MANIFEST.MF +++ /dev/null @@ -1,21 +0,0 @@ -Manifest-Version: 1.0 -Private-Package: calculator;version="2.0.0" -Tool: Bnd-0.0.255 -Bundle-Name: SCATours Currency Converter -Created-By: 1.6.0_07 (Sun Microsystems Inc.) -Bundle-Vendor: The Apache Software Foundation -Eclipse-LazyStart: true -Bundle-Version: 1.0.0 -Bnd-LastModified: 1223949424781 -Bundle-ManifestVersion: 2 -Bundle-License: http://www.apache.org/licenses/LICENSE-2.0.txt -Bundle-Description: Apache Tuscany SCA Calculator OSGi Sample -Import-Package: org.oasisopen.sca.annotation;version="2.0.0", - org.osgi.framework;version="1.4", - scatours.currency -Bundle-SymbolicName: scatours.currency.converter -Bundle-DocURL: http://www.apache.org/ -Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6 -Export-Package: scatours.currency -Bundle-Activator: scatours.currency.impl.CurrencyConverterActivator - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/OSGI-INF/sca/bundle.componentType b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/OSGI-INF/sca/bundle.componentType deleted file mode 100644 index c673715e21..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/OSGI-INF/sca/bundle.componentType +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/OSGI-INF/sca/bundle.composite b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/OSGI-INF/sca/bundle.composite deleted file mode 100644 index b59e8bf248..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/OSGI-INF/sca/bundle.composite +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/pom.xml deleted file mode 100644 index 6d7388d833..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/pom.xml +++ /dev/null @@ -1,117 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 2.0-SNAPSHOT - ../../pom.xml - - scatours-currency-converter-dosgi - SCATours Currency Converter OSGi - - - - org.apache.tuscany.sca - tuscany-feature-ejava - 2.0-SNAPSHOT - pom - - - - org.apache.tuscany.sca - tuscany-node-launcher-equinox - 2.0-SNAPSHOT - test - - - - org.apache.tuscany.sca - tuscany-node-impl-osgi - 2.0-SNAPSHOT - runtime - - - - org.eclipse.osgi - services - 3.2.0-v20090520-1800 - - - - junit - junit - 4.5 - test - - - - - org.eclipse.equinox - ds - 1.1.0-v20090601 - test - - - - org.eclipse.equinox - util - 1.0.100-v20090520-1800 - test - - - - - - ${artifactId} - - - - maven-eclipse-plugin - 2.5.1 - - - org.eclipse.pde.ManifestBuilder - org.eclipse.jdt.core.javabuilder - - - org.eclipse.jdt.core.javanature - org.eclipse.pde.PluginNature - - - org.eclipse.jdt.launching.JRE_CONTAINER - - - - - - - maven-jar-plugin - - - ${basedir}/META-INF/MANIFEST.MF - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/src/main/java/scatours/currency/CurrencyConverter.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/src/main/java/scatours/currency/CurrencyConverter.java deleted file mode 100644 index 49e1f6a119..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/src/main/java/scatours/currency/CurrencyConverter.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 scatours.currency; - -import org.oasisopen.sca.annotation.Remotable; - -/** - * The CurrencyConverter service interface - */ -@Remotable -public interface CurrencyConverter { - - float getExchangeRate(String fromCurrencyCode, String toCurrencyCode); - - float convert(String fromCurrencyCode, String toCurrencyCode, float amount); - -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/src/main/java/scatours/currency/impl/CurrencyConverterActivator.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/src/main/java/scatours/currency/impl/CurrencyConverterActivator.java deleted file mode 100644 index 90b26aa2b3..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/src/main/java/scatours/currency/impl/CurrencyConverterActivator.java +++ /dev/null @@ -1,40 +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 scatours.currency.impl; - -import org.osgi.framework.BundleActivator; -import org.osgi.framework.BundleContext; - -import scatours.currency.CurrencyConverter; - -/** - * - */ -public class CurrencyConverterActivator implements BundleActivator { - - public void start(BundleContext context) throws Exception { - System.out.println("[" + context.getBundle().getSymbolicName() + "]: Registering CurrencyConverter service..."); - context.registerService(CurrencyConverter.class.getName(), new CurrencyConverterImpl(), null); - } - - public void stop(BundleContext context) throws Exception { - } - -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/src/main/java/scatours/currency/impl/CurrencyConverterImpl.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/src/main/java/scatours/currency/impl/CurrencyConverterImpl.java deleted file mode 100644 index 2a3ffc1a1e..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/src/main/java/scatours/currency/impl/CurrencyConverterImpl.java +++ /dev/null @@ -1,55 +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 scatours.currency.impl; - -import java.util.HashMap; -import java.util.Map; - -import org.oasisopen.sca.annotation.Service; - -import scatours.currency.CurrencyConverter; - -/** - * An implementation of the CurrencyConverter service - */ -@Service(CurrencyConverter.class) -public class CurrencyConverterImpl implements CurrencyConverter { - - // currency index - private Map currencyIndex = new HashMap(); - - // exchange rates - private final float rates[][] = { {1.00f, 0.50f, 0.66f}, {2.00f, 1.00f, 1.33f}, {1.50f, 0.75f, 1.00f}}; - - public CurrencyConverterImpl() { - currencyIndex.put("USD", new Integer(0)); - currencyIndex.put("GBP", new Integer(1)); - currencyIndex.put("EUR", new Integer(2)); - } - - public float getExchangeRate(String fromCurrencyCode, String toCurrencyCode) { - return rates[currencyIndex.get(fromCurrencyCode).intValue()][currencyIndex.get(toCurrencyCode).intValue()]; - } - - public float convert(String fromCurrencyCode, String toCurrencyCode, float amount) { - float converted = amount * getExchangeRate(fromCurrencyCode, toCurrencyCode); - System.out.println(fromCurrencyCode + amount + "=" + toCurrencyCode + converted); - return converted; - } -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/build.xml deleted file mode 100644 index 549f1f740b..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/build.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/pom.xml deleted file mode 100644 index 4eb2e218d5..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/pom.xml +++ /dev/null @@ -1,78 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.6-SNAPSHOT - - - scatours-chapter-01 - Apache Tuscany SCA Tours Chapter 01 Examples - - - - org.apache.tuscany.sca - tuscany-node-api - 1.6-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-node-impl - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 1.6-SNAPSHOT - test - - - - org.apache.tuscany.sca - tuscany-binding-ws-axis2 - 1.6-SNAPSHOT - test - - - - org.apache.tuscany.sca - tuscany-host-tomcat - 1.6-SNAPSHOT - test - - - - junit - junit - 4.5 - test - - - - - - ${artifactId} - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/client/CurrencyConverterClient.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/client/CurrencyConverterClient.java deleted file mode 100644 index df6cdc10e1..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/client/CurrencyConverterClient.java +++ /dev/null @@ -1,46 +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.node.SCAClient; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; - -import currencyconverter.CurrencyConverter; - -/** - * This shows how to run the CurrencyConverter component. - */ -public class CurrencyConverterClient { - - public final static void main(String[] args) throws Exception { - SCANodeFactory factory = SCANodeFactory.newInstance(); - SCANode node = factory.createSCANodeFromClassLoader("currencyconverter.composite", - null); - node.start(); - - CurrencyConverter currencyConverter = - ((SCAClient)node).getService(CurrencyConverter.class, - "CurrencyConverterComponent"); - - System.out.println(currencyConverter.convert("GBP", "USD", 10.00)); - - node.stop(); - } -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/client/TripClient.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/client/TripClient.java deleted file mode 100644 index f221ac9106..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/client/TripClient.java +++ /dev/null @@ -1,45 +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.node.SCAClient; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; - -import trip.Trip; - -/** - * This shows how to run the CurrencyConverter component. - */ -public class TripClient { - - public final static void main(String[] args) throws Exception { - SCANodeFactory factory = SCANodeFactory.newInstance(); - SCANode node = factory.createSCANodeFromClassLoader("trip.composite", - null); - node.start(); - - Trip trip = ((SCAClient)node).getService(Trip.class, - "TripComponent"); - - System.out.println(trip.getTotalPrice()); - - node.stop(); - } -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/currencyconverter/CurrencyConverter.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/currencyconverter/CurrencyConverter.java deleted file mode 100644 index 95863271c4..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/currencyconverter/CurrencyConverter.java +++ /dev/null @@ -1,31 +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 currencyconverter; - -import org.osoa.sca.annotations.Remotable; - -/** - * The CurrencyConverter service interface - */ -@Remotable -public interface CurrencyConverter { - double convert(String fromCurrencyCode, - String toCurrencyCode, - double amount); -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/currencyconverter/CurrencyConverterImpl.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/currencyconverter/CurrencyConverterImpl.java deleted file mode 100644 index d5b470ddeb..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/currencyconverter/CurrencyConverterImpl.java +++ /dev/null @@ -1,32 +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 currencyconverter; - - -/** - * An implementation of the CurrencyConverter service - */ -public class CurrencyConverterImpl implements CurrencyConverter { - public double convert(String fromCurrencyCode, - String toCurrencyCode, - double amount){ - // this currency conversion is pretty dumb - return amount * 1.23; - } -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/trip/Trip.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/trip/Trip.java deleted file mode 100644 index c7f930c631..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/trip/Trip.java +++ /dev/null @@ -1,26 +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 trip; - -/** - * The Trip service interface - */ -public interface Trip { - double getTotalPrice(); -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/trip/TripImpl.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/trip/TripImpl.java deleted file mode 100644 index 9fe9fb1834..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/trip/TripImpl.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 trip; - -import org.osoa.sca.annotations.Reference; - -import currencyconverter.CurrencyConverter; - -/** - * An implementation of the Trip service - */ -public class TripImpl implements Trip { - - @Reference - protected CurrencyConverter currencyConverter; - - private double totalPrice = 100.00; - private String supplierCurrency = "USD"; - private String quoteCurrency = "GBP"; - - public double getTotalPrice(){ - return currencyConverter.convert(supplierCurrency, - quoteCurrency, - totalPrice); - } -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/resources/currencyconverter.composite b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/resources/currencyconverter.composite deleted file mode 100644 index 2a37151e08..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/resources/currencyconverter.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/resources/trip.composite b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/resources/trip.composite deleted file mode 100644 index 32a3eed4be..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/resources/trip.composite +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/build.xml deleted file mode 100644 index a58fed933a..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/build.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/build.xml deleted file mode 100644 index 17bc0d7d5b..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/build.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/pom.xml deleted file mode 100644 index e5982fe7bd..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/pom.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.6-SNAPSHOT - - - scatours-chapter-02-client-contribution - Apache Tuscany SCA Tours Chapter 02 Test Client Contribution - - - - org.apache.tuscany.sca - tuscany-sca-api - 1.6-SNAPSHOT - - - - org.apache.tuscany.sca - scatours-chapter-02-tuscanyscatours-contribution - 1.6-SNAPSHOT - - - - - ${artifactId} - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/src/main/java/scatours/client/TestClient.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/src/main/java/scatours/client/TestClient.java deleted file mode 100644 index cb80368918..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/src/main/java/scatours/client/TestClient.java +++ /dev/null @@ -1,46 +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 scatours.client; - -import com.tuscanyscatours.Bookings; -import com.tuscanyscatours.Checkout; - -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -@Service(Runnable.class) -public class TestClient { - @Reference - protected Bookings bookings; - - @Reference - protected Checkout checkout; - - public TestClient() { - } - - public void run() { - String bookingCode = bookings.newBooking("FS1APR4", 1); - System.out.println("Booking code is " + bookingCode); - - checkout.makePayment(1995.00, "1234567843218765 10/10"); - System.out.println("Paid $1995.00"); - } -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/src/main/resources/META-INF/sca-contribution.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 54ae0dbd0a..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/src/main/resources/client.composite b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/src/main/resources/client.composite deleted file mode 100644 index 05c2755114..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/src/main/resources/client.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/build.xml deleted file mode 100644 index fa67a921e2..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/pom.xml deleted file mode 100644 index 5ff8cc8382..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/pom.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.6-SNAPSHOT - - - scatours-chapter-02-goodvaluetrips-contribution - Apache Tuscany SCA Tours Chapter 02 Good Value Trips Contribution - - - - org.apache.tuscany.sca - tuscany-sca-api - 1.6-SNAPSHOT - - - - - ${artifactId} - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/src/main/java/com/goodvaluetrips/TripProvider.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/src/main/java/com/goodvaluetrips/TripProvider.java deleted file mode 100644 index d30046aaef..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/src/main/java/com/goodvaluetrips/TripProvider.java +++ /dev/null @@ -1,26 +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 com.goodvaluetrips; - -public class TripProvider implements Trips { - public String checkAvailability(String trip, int people) { - // call non-SCA code to reserve trip and return booking code - return "6R98Y"; - } -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/src/main/java/com/goodvaluetrips/Trips.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/src/main/java/com/goodvaluetrips/Trips.java deleted file mode 100644 index 365a210368..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/src/main/java/com/goodvaluetrips/Trips.java +++ /dev/null @@ -1,26 +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 com.goodvaluetrips; - -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface Trips { - String checkAvailability(String trip, int people); -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/src/main/resources/META-INF/sca-contribution.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 6ed07d5612..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/src/main/resources/trips.composite b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/src/main/resources/trips.composite deleted file mode 100644 index ab173e5ef7..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/src/main/resources/trips.composite +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/build.xml deleted file mode 100644 index 0c3c506b67..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/build.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/pom.xml deleted file mode 100644 index f858f9f7e7..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/pom.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.6-SNAPSHOT - - - scatours-chapter-02-node-jumpstart - Apache Tuscany SCA Tours Chapter 02 Node Jumpstart - - - - org.apache.tuscany.sca - tuscany-node-api - 1.6-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-node-runtime - 1.6-SNAPSHOT - test - - - - org.apache.tuscany.sca - scatours-chapter-02-goodvaluetrips-contribution - 1.6-SNAPSHOT - test - - - - junit - junit - 4.5 - test - - - - - ${artifactId} - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/src/main/java/scatours/LaunchNode.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/src/main/java/scatours/LaunchNode.java deleted file mode 100644 index b09939e49f..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/src/main/java/scatours/LaunchNode.java +++ /dev/null @@ -1,53 +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 scatours; - -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; - -import com.goodvaluetrips.Trips; - -public class LaunchNode { - - public static void main(String[] args) throws Exception { - try { - SCAContribution gvtContribution = - new SCAContribution("goodvaluetrips", - "../goodvaluetrips-contribution/target/classes"); - SCANode node = SCANodeFactory.newInstance(). - createSCANode("trips.composite", - gvtContribution); - node.start(); - - Trips tripProvider = ((SCAClient)node).getService(Trips.class, - "TripProvider/Trips"); - - System.out.println("Trip boooking code = " + - tripProvider.checkAvailability("FS1APR4", 2)); - - node.stop(); - - } catch (Throwable th) { - th.printStackTrace(); - } - } -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/src/main/resources/META-INF/sca-contribution.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index e3ac806b9a..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/src/main/resources/scatours.composite b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/src/main/resources/scatours.composite deleted file mode 100644 index 6524f078f5..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/src/main/resources/scatours.composite +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/src/test/java/scatours/NodeTestCase.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/src/test/java/scatours/NodeTestCase.java deleted file mode 100644 index 16cff30934..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/src/test/java/scatours/NodeTestCase.java +++ /dev/null @@ -1,60 +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 scatours; - -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * Tests all the components and services in chapter 2 - */ -public class NodeTestCase { - - private SCANode node; - - @Before - public void startServer() throws Exception { - try { - node = SCANodeFactory.newInstance().createSCANode("scatours.composite", - new SCAContribution("goodvaluetrips", "../goodvaluetrips-contribution/target/classes"), - new SCAContribution("tuscanyscatours", "../tuscanyscatours-contribution/target/classes"), - new SCAContribution("client", "../client-contribution/target/classes"), - new SCAContribution("node", "./target/classes")); - node.start(); - } catch (Exception ex) { - System.out.println(ex.toString()); - } - } - - @Test - public void testClient() throws Exception { - Runnable runner = ((SCAClient)node).getService(Runnable.class, "TestClient/Runnable"); - runner.run(); - } - - @After - public void stopServer() throws Exception { - node.stop(); - } -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/build.xml deleted file mode 100644 index 0c3c506b67..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/build.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/pom.xml deleted file mode 100644 index 849bfef794..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/pom.xml +++ /dev/null @@ -1,63 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.6-SNAPSHOT - - - scatours-chapter-02-node - Apache Tuscany SCA Tours Chapter 02 Node - - - - org.apache.tuscany.sca - tuscany-node-api - 1.6-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-node-runtime - 1.6-SNAPSHOT - test - - - - junit - junit - 4.5 - test - - - - - ${artifactId} - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/src/main/java/scatours/LaunchNode.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/src/main/java/scatours/LaunchNode.java deleted file mode 100644 index b7888c8749..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/src/main/java/scatours/LaunchNode.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 scatours; - -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; - -public class LaunchNode { - - public static void main(String[] args) throws Exception { - LaunchNode.launchFromFileSystemDir(); - } - - // OK for development but you must launch the node from this module - public static void launchFromFileSystemDir(){ - try { - SCANode node = SCANodeFactory.newInstance().createSCANode("scatours.composite", - new SCAContribution("goodvaluetrips", "../goodvaluetrips-contribution/target/classes"), - new SCAContribution("tuscanyscatours", "../tuscanyscatours-contribution/target/classes"), - new SCAContribution("client", "../client-contribution/target/classes"), - new SCAContribution("node", "./target/classes")); - node.start(); - - Runnable runner = ((SCAClient)node).getService(Runnable.class, "TestClient/Runnable"); - runner.run(); - - node.stop(); - - } catch (Throwable th) { - th.printStackTrace(); - } - } -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/src/main/resources/META-INF/sca-contribution.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 4a6250ad25..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/src/main/resources/scatours.composite b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/src/main/resources/scatours.composite deleted file mode 100644 index a5e26fd7b7..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/src/main/resources/scatours.composite +++ /dev/null @@ -1,31 +0,0 @@ - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/src/test/java/scatours/NodeTestCase.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/src/test/java/scatours/NodeTestCase.java deleted file mode 100644 index d37e52a409..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/src/test/java/scatours/NodeTestCase.java +++ /dev/null @@ -1,60 +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 scatours; - -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.junit.After; -import org.junit.Before; -import org.junit.Test; - -/** - * Tests all the components and services in chapter 2 - */ -public class NodeTestCase { - - private SCANode node; - - @Before - public void startServer() throws Exception { - try { - node = SCANodeFactory.newInstance().createSCANode("scatours.composite", - new SCAContribution("goodvaluetrips", "../goodvaluetrips-contribution/target/classes"), - new SCAContribution("tuscanyscatours", "../tuscanyscatours-contribution/target/classes"), - new SCAContribution("client", "../client-contribution/target/classes"), - new SCAContribution("node", "./target/classes")); - node.start(); - } catch (Exception ex) { - System.out.println(ex.toString()); - } - } - - @Test - public void testClient() throws Exception { - Runnable runner = ((SCAClient)node).getService(Runnable.class, "TestClient/Runnable"); - runner.run(); - } - - @After - public void stopServer() throws Exception { - node.stop(); - } -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/pom.xml deleted file mode 100644 index 0132a445e5..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/pom.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.5-SNAPSHOT - - - tuscany-scatours-chapter-02 - pom - Apache Tuscany SCA Tours Chapter 02 Examples - - - - default - - true - - - goodvaluetrips-contribution - tuscanyscatours-contribution - client-contribution - node - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/build.xml deleted file mode 100644 index d9961176f3..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/build.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/pom.xml deleted file mode 100644 index 6296c58e95..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/pom.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.6-SNAPSHOT - - - scatours-chapter-02-tuscanyscatours-contribution - Apache Tuscany SCA Tours Chapter 02 SCA Tours Contribution - - - - org.apache.tuscany.sca - tuscany-sca-api - 1.6-SNAPSHOT - - - - - ${artifactId} - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/goodvaluetrips/Trips.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/goodvaluetrips/Trips.java deleted file mode 100644 index 365a210368..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/goodvaluetrips/Trips.java +++ /dev/null @@ -1,26 +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 com.goodvaluetrips; - -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface Trips { - String checkAvailability(String trip, int people); -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/Bookings.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/Bookings.java deleted file mode 100644 index 9d54d46bb6..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/Bookings.java +++ /dev/null @@ -1,26 +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 com.tuscanyscatours; - -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface Bookings { - String newBooking(String trip, int people); -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/Checkout.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/Checkout.java deleted file mode 100644 index 688fc7e83b..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/Checkout.java +++ /dev/null @@ -1,26 +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 com.tuscanyscatours; - -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface Checkout { - void makePayment(double amount, String cardInfo); -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/ShoppingCart.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/ShoppingCart.java deleted file mode 100644 index 68bf25a8cd..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/ShoppingCart.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 com.tuscanyscatours; - -public class ShoppingCart implements Checkout, Updates { - public void makePayment(double amount, String cardInfo) { - // make payment for trips in cart giving card details - } - public void addTrip(String resCode) { - // add the booked trip to the cart - } -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/TripBooking.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/TripBooking.java deleted file mode 100644 index e64d60545e..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/TripBooking.java +++ /dev/null @@ -1,35 +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 com.tuscanyscatours; - -import org.osoa.sca.annotations.Reference; - -public class TripBooking implements Bookings { - @Reference - protected com.goodvaluetrips.Trips mytrips; - - @Reference - protected Updates cart; - - public String newBooking(String trip, int people) { - String resCode = mytrips.checkAvailability(trip, people); - cart.addTrip(resCode); - return "GV" + resCode; - } -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/Updates.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/Updates.java deleted file mode 100644 index e33b0399cb..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/Updates.java +++ /dev/null @@ -1,26 +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 com.tuscanyscatours; - -import org.osoa.sca.annotations.Remotable; - -@Remotable -public interface Updates { - void addTrip(String resCode); -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/resources/META-INF/sca-contribution.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index cf1153ac14..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/resources/tours.composite b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/resources/tours.composite deleted file mode 100644 index f166a1635d..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/resources/tours.composite +++ /dev/null @@ -1,46 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-03/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-03/pom.xml deleted file mode 100644 index 7d417a20de..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-03/pom.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.5-SNAPSHOT-SNAPSHOT - - - tuscany-scatours-chapter-03 - pom - Apache Tuscany SCA Tours Chapter 03 Examples - - - - default - - true - - - node - ui-contribution - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/node/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/node/build.xml deleted file mode 100644 index 3627e840ad..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/node/build.xml +++ /dev/null @@ -1,278 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/node/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/node/pom.xml deleted file mode 100644 index 46dd653664..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/node/pom.xml +++ /dev/null @@ -1,164 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.6-SNAPSHOT - - - scatours-chapter-05-node - Apache Tuscany SCA Tours Chapter 05 Node - - - - org.apache.tuscany.sca - tuscany-node-api - 1.6-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-node-launcher - 1.6-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-domain-manager - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-node-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-widget-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-resource-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-atom-abdera - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jsonrpc-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-http-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-ws-axis2 - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-sca-axis2 - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-ejb-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-ejb - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-bpel-ode - 1.6-SNAPSHOT - runtime - - - - org.apache.derby - derby - 10.3.1.4 - runtime - - - - - - ${artifactId} - - - org.apache.tuscany.sca - tuscany-maven-ant-generator - 1.6-SNAPSHOT - - - - scatours.LaunchNode - - - generate - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/node/src/main/java/scatours/LaunchNode.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/node/src/main/java/scatours/LaunchNode.java deleted file mode 100644 index 6b1c673579..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/node/src/main/java/scatours/LaunchNode.java +++ /dev/null @@ -1,65 +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 scatours; - -import java.io.IOException; - -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; - -public class LaunchNode { - public static void main(String[] args) throws Exception { - LaunchNode.launchFromFileSystemDir(); - } - - // OK for development but you must launch the node from this module - public static void launchFromFileSystemDir(){ - SCANode node = null; - - try { - node = SCANodeFactory.newInstance().createSCANode("scatours.composite", - new SCAContribution("common", "../../shared-contributions/common-contribution/target/classes"), - new SCAContribution("currency", "../../shared-contributions/currency-contribution/target/classes"), - new SCAContribution("hotel", "../../shared-contributions/hotel-contribution/target/classes"), - new SCAContribution("flight", "../../shared-contributions/flight-contribution/target/classes"), - new SCAContribution("car", "../../shared-contributions/car-contribution/target/classes"), - new SCAContribution("trip", "../../shared-contributions/trip-contribution/target/classes"), - new SCAContribution("tripbooking", "../../shared-contributions/tripbooking-contribution/target/classes"), - new SCAContribution("travelcatalog", "../../shared-contributions/travelcatalog-contribution/target/classes"), - new SCAContribution("payment", "../../shared-contributions/payment-java-contribution/target/classes"), - new SCAContribution("creditcard", "../../shared-contributions/creditcard-payment-jaxb-contribution/target/classes"), - new SCAContribution("shoppingcart", "../../shared-contributions/shoppingcart-contribution/target/classes"), - new SCAContribution("scatours", "../../shared-contributions/scatours-contribution/target/classes"), - new SCAContribution("ui", "../ui-contribution/target/classes")); - node.start(); - - System.out.println("Node started - Press enter to shutdown."); - try { - System.in.read(); - } catch (IOException e) {} - - node.stop(); - - } catch (Exception ex) { - System.out.println(ex.toString()); - } - } -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/pom.xml deleted file mode 100644 index 5507b545d1..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/pom.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.5-SNAPSHOT - - - tuscany-scatours-chapter-05 - pom - Apache Tuscany SCA Tours Chapter 05 Examples - - - - default - - true - - - node - ui-contribution - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/build.xml deleted file mode 100644 index 2d7b30e1e2..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/build.xml +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/pom.xml deleted file mode 100644 index a706c9ab8d..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/pom.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.6-SNAPSHOT - - - scatours-chapter-05-ui-contribution - Apache Tuscany SCA Tours Chapter 05 User Interface Contribution - - - - org.apache.tuscany.sca - tuscany-host-embedded - 1.6-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 1.6-SNAPSHOT - test - - - - org.apache.tuscany.sca - tuscany-binding-ws-axis2 - 1.6-SNAPSHOT - test - - - - org.apache.tuscany.sca - tuscany-host-tomcat - 1.6-SNAPSHOT - test - - - - junit - junit - 4.5 - test - - - - - - ${artifactId} - - - org.apache.tuscany.sca - tuscany-maven-ant-generator - 1.6-SNAPSHOT - - - - launch.LaunchTutorialAdmin - - - generate - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/META-INF/sca-contribution.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 4064565d41..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/scatours.composite b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/scatours.composite deleted file mode 100644 index ae8d4b7ff6..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/scatours.composite +++ /dev/null @@ -1,167 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - GBP - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/scatours.html b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/scatours.html deleted file mode 100644 index b8e27e87fc..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/scatours.html +++ /dev/null @@ -1,391 +0,0 @@ - - - -SCA Tours - - - - - - - - - - - -
-
-

Search for trips, hotels, flights and cars

-
- - - - - - - - - - - - - - - - - -
From Location:To Location:
Start Date:End Date:
Number of people: - -
-
- -
-
-
-
-
-
-
-
-

Shopping Cart

-
-
- Total Price:
-
- -
-
- - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/scatours.odg b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/scatours.odg deleted file mode 100644 index 8ca8fbf133..0000000000 Binary files a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/scatours.odg and /dev/null differ diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/scatours.png b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/scatours.png deleted file mode 100644 index f68cd84704..0000000000 Binary files a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/scatours.png and /dev/null differ diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/style.css b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/style.css deleted file mode 100644 index 6e17c2747b..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/style.css +++ /dev/null @@ -1,135 +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. - */ - - - -/*******************************************/ - -p,table,li,h1,h2,h3 -{ -font-family: verdana, arial, 'sans serif'; -} - -p, h1, h2, h3, table, li, hr -{ -margin-left: 10pt; -} - -table -{ -border-color: black; -border-collapse: separate; -border-spacing: 0px 1px; - -margin-right: 10pt; -margin-left: 10pt; -width: 800px; -} - -.sourceDetailsTable -{ -width: 600px; -} - -tr, td -{ -margin-left: 0pt; -margin-right: 0pt; -padding-left: 10pt; -font-size: 90%; -} - -p,li,th -{ -font-size: 90%; -margin-left: 10pt; -} - -pre -{ -margin-left: 10pt; -} - -body -{ -#ffffff; -} - -h1,h2,h3,hr -{ -color: firebrick; -} - -a:link {COLOR: firebrick;} -a:visited {COLOR: firebrick;} -a:active {COLOR: navy;} - -.link -{ -COLOR: firebrick; -text-decoration: underline; -} - -.clickable -{ -cursor: pointer -} - -.unread_title -{ -font-weight: bold; -} - -.read_title -{ -font-weight: normal; -} - -.summary -{ -color: DimGrey; -} - -.hidden -{ -display: none; -} - -.source_name -{ -width: 600px; -} - -.alert_text -{ -width: 600px; -} - -.alert_data -{ -margin-left: 10px; -width: 800px; -height: 800px; -} - -.source_0 -{ -background-color: LightGreen; -} - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/node/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/node/build.xml deleted file mode 100644 index e49a915d6d..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/node/build.xml +++ /dev/null @@ -1,214 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/node/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/node/pom.xml deleted file mode 100644 index 19262eeb89..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/node/pom.xml +++ /dev/null @@ -1,186 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.6-SNAPSHOT - - - scatours-chapter-06-node - Apache Tuscany SCA Tours Chapter 06 Node - - - - org.apache.tuscany.sca - tuscany-node-api - 1.6-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-node-launcher - 1.6-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-domain-manager - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-node-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-widget-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-resource-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-atom-abdera - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jsonrpc-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-http-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-ws-axis2 - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-sca-axis2 - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-spring - 1.6-SNAPSHOT - runtime - - - - org.apache.derby - derby - 10.3.1.4 - runtime - - - - - - ${artifactId} - - - org.apache.tuscany.sca - tuscany-maven-ant-generator - 1.6-SNAPSHOT - - - - launch.LaunchTutorialAdmin - - - generate - - - - - - org.apache.maven.plugins - maven-surefire-plugin - - 2.3.1 - - false - false - true - - - - org.apache.maven.plugins - maven-dependency-plugin - - - unpack - test-compile - - unpack - - - - - org.apache.ode - ode-dao-jpa-ojpa-derby - 1.1 - zip - true - ${project.build.directory}/test-classes/ - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/node/src/main/java/scatours/LaunchBPELExampleNode.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/node/src/main/java/scatours/LaunchBPELExampleNode.java deleted file mode 100644 index e87b0ca44e..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/node/src/main/java/scatours/LaunchBPELExampleNode.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 scatours; - -import java.io.IOException; - -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; - -public class LaunchBPELExampleNode { - public static void main(String[] args) throws Exception { - LaunchBPELExampleNode.launchFromFileSystemDir(); - } - - // OK for development but you must launch the node from this module - public static void launchFromFileSystemDir(){ - SCANode node = null; - - try { - node = SCANodeFactory.newInstance().createSCANode("scatours.composite", - new SCAContribution("common", "../../shared-contributions/common-contribution/target/classes"), - new SCAContribution("currency", "../../shared-contributions/currency-contribution/target/classes"), - new SCAContribution("hotel", "../../shared-contributions/hotel-contribution/target/classes"), - new SCAContribution("flight", "../../shared-contributions/flight-contribution/target/classes"), - new SCAContribution("car", "../../shared-contributions/car-contribution/target/classes"), - new SCAContribution("trip", "../../shared-contributions/trip-contribution/target/classes"), - new SCAContribution("tripbooking", "../../shared-contributions/tripbooking-contribution/target/classes"), - new SCAContribution("travelcatalog", "../../shared-contributions/travelcatalog-contribution/target/classes"), - new SCAContribution("creditcardpayment", "../../shared-contributions/creditcard-payment-jaxb-contribution/target/classes"), - new SCAContribution("emailgateway", "../../shared-contributions/emailgateway-contribution/target/classes"), - new SCAContribution("shoppingcart", "../../shared-contributions/shoppingcart-contribution/target/classes"), - new SCAContribution("scatours", "../../shared-contributions/scatours-contribution/target/classes"), - new SCAContribution("payment", "../payment-bpel-contribution/target/classes"), - new SCAContribution("ui", "../ui-bpel-contribution/target/classes")); - node.start(); - - System.out.println("Node started - Press enter to shutdown."); - try { - System.in.read(); - } catch (IOException e) {} - - node.stop(); - - } catch (Exception ex) { - System.out.println(ex.toString()); - } - } -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/node/src/main/java/scatours/LaunchSpringExampleNode.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/node/src/main/java/scatours/LaunchSpringExampleNode.java deleted file mode 100644 index 45c9be4bce..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/node/src/main/java/scatours/LaunchSpringExampleNode.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 scatours; - -import java.io.IOException; - -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; - -public class LaunchSpringExampleNode { - public static void main(String[] args) throws Exception { - LaunchSpringExampleNode.launchFromFileSystemDir(); - } - - // OK for development but you must launch the node from this module - public static void launchFromFileSystemDir(){ - SCANode node = null; - - try { - node = SCANodeFactory.newInstance().createSCANode("scatours.composite", - new SCAContribution("common", "../../shared-contributions/common-contribution/target/classes"), - new SCAContribution("currency", "../../shared-contributions/currency-contribution/target/classes"), - new SCAContribution("hotel", "../../shared-contributions/hotel-contribution/target/classes"), - new SCAContribution("flight", "../../shared-contributions/flight-contribution/target/classes"), - new SCAContribution("car", "../../shared-contributions/car-contribution/target/classes"), - new SCAContribution("trip", "../../shared-contributions/trip-contribution/target/classes"), - new SCAContribution("tripbooking", "../../shared-contributions/tripbooking-contribution/target/classes"), - new SCAContribution("travelcatalog", "../../shared-contributions/travelcatalog-contribution/target/classes"), - new SCAContribution("creditcardpayment", "../../shared-contributions/creditcard-payment-jaxb-contribution/target/classes"), - new SCAContribution("emailgateway", "../../shared-contributions/emailgateway-contribution/target/classes"), - new SCAContribution("shoppingcart", "../../shared-contributions/shoppingcart-contribution/target/classes"), - new SCAContribution("scatours", "../../shared-contributions/scatours-contribution/target/classes"), - new SCAContribution("payment", "../payment-spring-annotation-contribution/target/classes"), - new SCAContribution("ui", "../ui-spring-contribution/target/classes")); - node.start(); - - System.out.println("Node started - Press enter to shutdown."); - try { - System.in.read(); - } catch (IOException e) {} - - node.stop(); - - } catch (Exception ex) { - System.out.println(ex.toString()); - } - } -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/log4j.properties b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/log4j.properties deleted file mode 100644 index 7ed0bcaf77..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/log4j.properties +++ /dev/null @@ -1,36 +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. -# - -# Set root logger level to WARN and its only appender to CONSOLE -log4j.rootLogger=OFF, CONSOLE - -# log4j properties to work with commandline tools. -log4j.category.org.mortbay=OFF -log4j.category.org.hibernate.type=OFF -log4j.category.org.objectweb=OFF -log4j.category.org.apache.ode.axis2=OFF -log4j.category.org.apache.ode.bpel.engine=DEBUG -log4j.category.org.apache.ode.daohib.bpel.CorrelatorDaoImpl=OFF -log4j.category.org.apache.ode.bpel.epr=OFF -log4j.category.org.apache.tuscany.sca.implementation.bpel=DEBUG -log4j.category.org.apache.tuscany.sca.implementation.bpel.ode=DEBUG -log4j.category.org.apache.tuscany.sca.implementation.bpel.provider=DEBUG - -# Console appender -log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender -log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout -log4j.appender.CONSOLE.layout.ConversionPattern=[%p] - %C{1}.%M(%L) | %m%n diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/pom.xml deleted file mode 100644 index 8cfe95771a..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/pom.xml +++ /dev/null @@ -1,181 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.6-SNAPSHOT - - - scatours-chapter-06-payment-bpel-contribution - Apache Tuscany SCA Tours Chapter 06 Payment BPEL Contribution - - - - org.apache.tuscany.sca - tuscany-node-api - 1.6-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-node-impl - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-bpel-ode - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-ws-axis2 - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-host-jetty - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - scatours-emailgateway-contribution - 1.6-SNAPSHOT - test - - - - org.apache.tuscany.sca - scatours-creditcard-payment-jaxb-contribution - 1.6-SNAPSHOT - test - - - - junit - junit - 4.5 - test - - - - - ${artifactId} - - - org.codehaus.mojo - build-helper-maven-plugin - 1.0 - - - add-source - generate-sources - - add-source - - - - target/jaxws-source - - - - - - - org.codehaus.mojo - jaxws-maven-plugin - 1.9 - - - wsimport - generate-sources - - wsimport - - - scatours.payment - ${basedir}/src/main/resources - - - Payment.wsdl - - ${project.build.directory}/jaxws-source - - false - true - - - - - - org.apache.maven.plugins - maven-surefire-plugin - - 2.3.1 - - false - false - true - - - - org.apache.maven.plugins - maven-dependency-plugin - - - unpack - test-compile - - unpack - - - - - org.apache.ode - ode-dao-jpa-ojpa-derby - 1.1 - zip - true - ${project.build.directory}/classes/ - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/CreditCardPayment.wsdl b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/CreditCardPayment.wsdl deleted file mode 100644 index 22ef6de317..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/CreditCardPayment.wsdl +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/EmailGateway.wsdl b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/EmailGateway.wsdl deleted file mode 100644 index a097d9b7e4..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/EmailGateway.wsdl +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/META-INF/sca-contribution.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 725c95a2bd..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/Payment.wsdl b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/Payment.wsdl deleted file mode 100644 index e2c4062f2e..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/Payment.wsdl +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/payment.bpel b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/payment.bpel deleted file mode 100644 index 8f11d76888..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/payment.bpel +++ /dev/null @@ -1,164 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Visa - 12345678 - 2 - 2010 - - Empty -
- 1 The Road - Winchester - Hampshire - AB1 2CD - 12345678 -
-
-
- 0.0 -
-
-
- $authorizeRequestMessage.parameters -
- - $makePaymentMemberRequestMessage.parameters/CustomerId/text() - $authorizeRequestMessage.parameters/CreditCard/CardOwner/Name - - - $makePaymentMemberRequestMessage.parameters/Amount/text() - $authorizeRequestMessage.parameters/Amount - -
- - - - - - - - - - - Default - Payment Confirmation - Your payment has been confirmed - - - - - $sendEmailRequestMessage.parameters - - - $makePaymentMemberRequestMessage.parameters/CustomerId/text() - $sendEmailRequestMessage.parameters/Email/To - - - - - - - - - - - - - OK - - - - $makePaymentMemberResponseMessage.parameters - - - - - - -
-
diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/test/java/scatours/payment/PaymentTestCase.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/test/java/scatours/payment/PaymentTestCase.java deleted file mode 100644 index a69c16a726..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/test/java/scatours/payment/PaymentTestCase.java +++ /dev/null @@ -1,71 +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 scatours.payment; - -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * - */ -public class PaymentTestCase { - private static SCANode paymentNode; - private static SCANode creditCardNode; - private static SCANode emailGatewayNode; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - try { - creditCardNode = SCANodeFactory.newInstance().createSCANode("creditcard.composite", - new SCAContribution("creditcard", "../../shared-contributions/creditcard-payment-jaxb-contribution/target/test-classes")); - emailGatewayNode = SCANodeFactory.newInstance().createSCANode("emailgateway.composite", - new SCAContribution("creditcard", "../../shared-contributions/emailgateway-contribution/target/test-classes")); - paymentNode = SCANodeFactory.newInstance().createSCANode("payment.composite", - new SCAContribution("payment-bpel", "./target/classes"), - new SCAContribution("payment-bpel-test", "./target/test-classes")); - - creditCardNode.start(); - emailGatewayNode.start(); - paymentNode.start(); - } catch (Exception ex) { - ex.printStackTrace(); - } - } - - @Test - public void testPayment() { - SCAClient client = (SCAClient) paymentNode; - Payment payment = client.getService(Payment.class, "PaymentClient"); - System.out.println("Result = " + payment.makePaymentMember("Fred", 100.00f)); - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - paymentNode.stop(); - creditCardNode.stop(); - emailGatewayNode.stop(); - } - -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/test/java/scatours/payment/client/PaymentClientImpl.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/test/java/scatours/payment/client/PaymentClientImpl.java deleted file mode 100644 index eaa7498e84..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/test/java/scatours/payment/client/PaymentClientImpl.java +++ /dev/null @@ -1,37 +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 scatours.payment.client; - -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -import scatours.payment.Payment; - -@Service(Payment.class) -public class PaymentClientImpl implements Payment { - @Reference - protected Payment payment; - - public String makePaymentMember(String customerId, float amount) { - // Delegate the external web service - return payment.makePaymentMember(customerId, amount); - } - -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/test/resources/META-INF/sca-contribution.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/test/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 4984ef0252..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/test/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/test/resources/payment.composite b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/test/resources/payment.composite deleted file mode 100644 index ab26a48b20..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/test/resources/payment.composite +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/pom.xml deleted file mode 100644 index 67882f6ddb..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/pom.xml +++ /dev/null @@ -1,166 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.6-SNAPSHOT - - - scatours-payment-javascript-contribution - Apache Tuscany SCA Tours Payment JavaScript Contribution - - - - org.apache.tuscany.sca - tuscany-host-embedded - 1.6-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-script - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jsonrpc-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-ws-axis2 - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-host-jetty - 1.6-SNAPSHOT - runtime - - - - junit - junit - 4.5 - test - - - - - ${artifactId} - - - org.codehaus.mojo - build-helper-maven-plugin - 1.0 - - - add-source - generate-sources - - add-source - - - - target/jaxws-source - - - - - - - org.codehaus.mojo - jaxws-maven-plugin - 1.9 - - - payment - generate-sources - - wsimport - - - payment - ${basedir}/src/main/resources - - Payment.wsdl - - ${project.build.directory}/jaxws-source - ${project.build.directory}/jaxws-source/stale/payment.stale - false - true - - - - payment.creditcard - process-sources - - wsimport - - - payment.creditcard - ${basedir}/src/main/resources - - CreditCardPayment.wsdl - - ${project.build.directory}/jaxws-source - ${project.build.directory}/jaxws-source/stale/creditcard.stale - false - true - - - - emailgateway - process-sources - - wsimport - - - scatours.emailgateway - ${basedir}/src/main/resources - - EmailGateway.wsdl - - ${project.build.directory}/jaxws-source - ${project.build.directory}/jaxws-source/stale/emailgateway.stale - false - true - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/CreditCardPayment.wsdl b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/CreditCardPayment.wsdl deleted file mode 100644 index 1813c77436..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/CreditCardPayment.wsdl +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/EmailGateway.wsdl b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/EmailGateway.wsdl deleted file mode 100644 index a097d9b7e4..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/EmailGateway.wsdl +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/META-INF/sca-contribution.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 7adba24d58..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/Payment.wsdl b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/Payment.wsdl deleted file mode 100644 index 2519d7642e..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/Payment.wsdl +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/payment.composite b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/payment.composite deleted file mode 100644 index 9743f24ada..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/payment.composite +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - 9.73 - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/payment/PaymentImpl.groovy b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/payment/PaymentImpl.groovy deleted file mode 100644 index dab3003eed..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/payment/PaymentImpl.groovy +++ /dev/null @@ -1,31 +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. - */ - -def makePaymentMember(customerId, amount) { - - def finalAmount = amount + processingCharge; - - scatours.emailgateway.EmailType email = new scatours.emailgateway.EmailType(); - email.setTo(customerId); - email.setTitle("Payment " + finalAmount + " Received"); - - emailGateway.sendEmail(email); - - return "Success"; -} \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/test/java/payment/PaymentTestCase.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/test/java/payment/PaymentTestCase.java deleted file mode 100644 index 21bf6ff428..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/test/java/payment/PaymentTestCase.java +++ /dev/null @@ -1,76 +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 payment; - -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * - */ -public class PaymentTestCase { - private static SCANode node; - - /** - * @throws java.lang.Exception - */ - @BeforeClass - public static void setUpBeforeClass() throws Exception { - SCANodeFactory factory = SCANodeFactory.newInstance(); - node = factory.createSCANodeFromClassLoader("payment.composite", Payment.class.getClassLoader()); - node.start(); - } - - @Test - public void testCreditCardPayment() { - SCAClient client = (SCAClient) node; - Payment payment = client.getService(Payment.class, "PaymentComponent"); - System.out.println(payment.makePaymentMember("Fred Bloggs", 100.00f)); - } - - @Test - //@Ignore - public void testWaitForInput() { -/* - System.out.println("Press a key to end"); - try { - System.in.read(); - } catch (Exception ex) { - } - System.out.println("Shutting down"); -*/ - } - - /** - * @throws java.lang.Exception - */ - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (node != null) { - node.stop(); - node = null; - } - } - -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/test/java/payment/client/PaymentClientImpl.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/test/java/payment/client/PaymentClientImpl.java deleted file mode 100644 index 556a699ad8..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/test/java/payment/client/PaymentClientImpl.java +++ /dev/null @@ -1,37 +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 payment.client; - -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -import payment.Payment; - -@Service(Payment.class) -public class PaymentClientImpl implements Payment { - @Reference - protected Payment payment; - - public String makePaymentMember(String customerId, float amount) { - // Delegate the external web service - return payment.makePaymentMember(customerId, amount); - } - -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/test/java/payment/creditcard/CreditCardPaymentImpl.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/test/java/payment/creditcard/CreditCardPaymentImpl.java deleted file mode 100644 index ac05bf7359..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/test/java/payment/creditcard/CreditCardPaymentImpl.java +++ /dev/null @@ -1,41 +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 payment.creditcard; - -import org.osoa.sca.annotations.Service; - -@Service(CreditCardPayment.class) -public class CreditCardPaymentImpl implements CreditCardPayment { - - public String authorize(CreditCardDetailsType creditCard, float amount) { - if (creditCard != null){ - System.out.println("Checking card: name = " + - creditCard.getCardOwner().getName() + - " number = " + - creditCard.getCreditCardNumber() + - " for amount " + - amount); - } else { - System.out.println("Checking card is null"); - } - - return "OK"; - } -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/test/java/scatours/emailgateway/EmailGatewayImpl.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/test/java/scatours/emailgateway/EmailGatewayImpl.java deleted file mode 100644 index 974c902f5d..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/test/java/scatours/emailgateway/EmailGatewayImpl.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 scatours.emailgateway; - -public class EmailGatewayImpl implements EmailGateway { - - public String sendEmail(EmailType email) { - System.out.println("Sending mail " + email.getTitle() + " to " + email.getTo()); - return "SENT"; - } - -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/pom.xml deleted file mode 100644 index 3018bc651d..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/pom.xml +++ /dev/null @@ -1,166 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.6-SNAPSHOT - - - scatours-payment-spring-annotation-contribution - Apache Tuscany SCA Tours Payment Spring Annotation Contribution - - - - org.apache.tuscany.sca - tuscany-host-embedded - 1.6-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jsonrpc-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-ws-axis2 - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-host-jetty - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-spring - 1.6-SNAPSHOT - runtime - - - - junit - junit - 4.5 - test - - - - - ${artifactId} - - - org.codehaus.mojo - build-helper-maven-plugin - 1.0 - - - add-source - generate-sources - - add-source - - - - target/jaxws-source - - - - - - - org.codehaus.mojo - jaxws-maven-plugin - 1.9 - - - payment - generate-sources - - wsimport - - - payment - ${basedir}/src/main/resources - - Payment.wsdl - - ${project.build.directory}/jaxws-source - ${project.build.directory}/jaxws-source/stale/payment.stale - false - true - - - - payment.creditcard - process-sources - - wsimport - - - payment.creditcard - ${basedir}/src/main/resources - - CreditCardPayment.wsdl - - ${project.build.directory}/jaxws-source - ${project.build.directory}/jaxws-source/stale/creditcard.stale - false - true - - - - scatours.emailgateway - process-sources - - wsimport - - - scatours.emailgateway - ${basedir}/src/main/resources - - EmailGateway.wsdl - - ${project.build.directory}/jaxws-source - ${project.build.directory}/jaxws-source/stale/emailgateway.stale - false - true - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/java/payment/PaymentImpl.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/java/payment/PaymentImpl.java deleted file mode 100644 index 68e941e138..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/java/payment/PaymentImpl.java +++ /dev/null @@ -1,78 +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 payment; - -import org.osoa.sca.annotations.Property; -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -import payment.creditcard.CreditCardDetailsType; -import payment.creditcard.CreditCardPayment; -import payment.creditcard.CreditCardTypeType; -import payment.creditcard.ObjectFactory; -import payment.creditcard.PayerType; -import scatours.emailgateway.EmailGateway; -import scatours.emailgateway.EmailType; - -@Service(Payment.class) -public class PaymentImpl implements Payment { - - protected CreditCardPayment creditCardPayment; - protected EmailGateway emailGateway; - protected float processingCharge = 0; - - @Reference - public void setCreditCardPayment(CreditCardPayment creditCardPayment) { - this.creditCardPayment = creditCardPayment; - } - - public void setEmailGateway(EmailGateway emailGateway) { - this.emailGateway = emailGateway; - } - - @Property - public void setProcessingCharge(float processingCharge) { - this.processingCharge = processingCharge; - } - - public String makePaymentMember(String customerId, float amount) { - - ObjectFactory objectFactory = new ObjectFactory(); - CreditCardDetailsType ccDetails = objectFactory.createCreditCardDetailsType(); - ccDetails.setCreditCardType(CreditCardTypeType.fromValue("Visa")); - PayerType ccOwner = objectFactory.createPayerType(); - ccOwner.setName(customerId); - ccDetails.setCardOwner(ccOwner); - - amount += processingCharge; - - String status = creditCardPayment.authorize(ccDetails, amount); - - scatours.emailgateway.ObjectFactory emailFactory = new scatours.emailgateway.ObjectFactory(); - EmailType email = emailFactory.createEmailType(); - email.setTitle("Payment Received"); - email.setTo(customerId); - - emailGateway.sendEmail(email); - - return status; - } - -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/java/scatours/emailgateway/EmailGatewayImpl.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/java/scatours/emailgateway/EmailGatewayImpl.java deleted file mode 100644 index 644519a5e7..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/java/scatours/emailgateway/EmailGatewayImpl.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 scatours.emailgateway; - -public class EmailGatewayImpl implements EmailGateway { - - public String sendEmail(EmailType email) { - System.out.println("Sending mail to " + email.getTo()); - return "SENT"; - } - -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/CreditCardPayment.wsdl b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/CreditCardPayment.wsdl deleted file mode 100644 index dbf89924cc..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/CreditCardPayment.wsdl +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/EmailGateway.wsdl b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/EmailGateway.wsdl deleted file mode 100644 index a097d9b7e4..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/EmailGateway.wsdl +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/META-INF/sca-contribution.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 896b1ceb48..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/Payment-context.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/Payment-context.xml deleted file mode 100644 index 6942649d8a..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/Payment-context.xml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/Payment.wsdl b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/Payment.wsdl deleted file mode 100644 index e2c4062f2e..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/Payment.wsdl +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/test/java/payment/PaymentTestCase.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/test/java/payment/PaymentTestCase.java deleted file mode 100644 index 5e47c9075e..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/test/java/payment/PaymentTestCase.java +++ /dev/null @@ -1,73 +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 payment; - -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * - */ -public class PaymentTestCase { - private static SCANode paymentNode; - private static SCANode creditCardNode; - private static SCANode emailGatewayNode; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - try { - creditCardNode = SCANodeFactory.newInstance().createSCANode("creditcard.composite", - new SCAContribution("creditcard", "../../shared-contributions/creditcard-payment-jaxb-contribution/target/classes"), - new SCAContribution("creditcard-test", "../../shared-contributions/creditcard-payment-jaxb-contribution/target/test-classes")); - //emailGatewayNode = SCANodeFactory.newInstance().createSCANode("emailgateway.composite", - // new SCAContribution("creditcard", "../../shared-contributions/emailgateway-contribution/target/classes"), - // new SCAContribution("creditcard-test", "../../shared-contributions/emailgateway-contribution/target/test-classes")); - paymentNode = SCANodeFactory.newInstance().createSCANode("payment.composite", - new SCAContribution("payment-spring", "./target/classes"), - new SCAContribution("payment-spring-test", "./target/test-classes")); - - creditCardNode.start(); - //emailGatewayNode.start(); - paymentNode.start(); - } catch (Exception ex) { - ex.printStackTrace(); - } - } - - @Test - public void testPayment() { - SCAClient client = (SCAClient) paymentNode; - Payment payment = client.getService(Payment.class, "PaymentClient"); - System.out.println("Result = " + payment.makePaymentMember("Fred", 100.00f)); - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - paymentNode.stop(); - creditCardNode.stop(); - //emailGatewayNode.stop(); - } - -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/test/java/payment/client/PaymentClientImpl.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/test/java/payment/client/PaymentClientImpl.java deleted file mode 100644 index 556a699ad8..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/test/java/payment/client/PaymentClientImpl.java +++ /dev/null @@ -1,37 +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 payment.client; - -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -import payment.Payment; - -@Service(Payment.class) -public class PaymentClientImpl implements Payment { - @Reference - protected Payment payment; - - public String makePaymentMember(String customerId, float amount) { - // Delegate the external web service - return payment.makePaymentMember(customerId, amount); - } - -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/test/resources/META-INF/sca-contribution.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/test/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 92de8d375b..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/test/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/test/resources/payment.composite b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/test/resources/payment.composite deleted file mode 100644 index aeb9a3e413..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/test/resources/payment.composite +++ /dev/null @@ -1,48 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - 9.73 - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/pom.xml deleted file mode 100644 index 299b989cca..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/pom.xml +++ /dev/null @@ -1,184 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.6-SNAPSHOT - - - scatours-payment-spring-contribution - Apache Tuscany SCA Tours Payment Spring Contribution - - - - org.apache.tuscany.sca - tuscany-host-embedded - 1.6-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jsonrpc-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-ws-axis2 - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-host-jetty - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-spring - 1.6-SNAPSHOT - runtime - - - - - - junit - junit - 4.5 - test - - - - - ${artifactId} - - - org.codehaus.mojo - build-helper-maven-plugin - 1.0 - - - add-source - generate-sources - - add-source - - - - target/jaxws-source - - - - - - - org.codehaus.mojo - jaxws-maven-plugin - 1.9 - - - payment - generate-sources - - wsimport - - - payment - ${basedir}/src/main/resources - - Payment.wsdl - - ${project.build.directory}/jaxws-source - ${project.build.directory}/jaxws-source/stale/payment.stale - false - true - - - - payment.creditcard - process-sources - - wsimport - - - payment.creditcard - ${basedir}/src/main/resources - - CreditCardPayment.wsdl - - ${project.build.directory}/jaxws-source - ${project.build.directory}/jaxws-source/stale/creditcard.stale - false - true - - - - scatours.emailgateway - process-sources - - wsimport - - - scatours.emailgateway - ${basedir}/src/main/resources - - EmailGateway.wsdl - - ${project.build.directory}/jaxws-source - ${project.build.directory}/jaxws-source/stale/emailgateway.stale - false - true - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/java/payment/PaymentImpl.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/java/payment/PaymentImpl.java deleted file mode 100644 index 48f829ae0f..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/java/payment/PaymentImpl.java +++ /dev/null @@ -1,64 +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 payment; - -import payment.creditcard.CreditCardDetailsType; -import payment.creditcard.CreditCardPayment; -import payment.creditcard.CreditCardTypeType; -import payment.creditcard.ObjectFactory; -import payment.creditcard.PayerType; -import scatours.emailgateway.EmailGateway; -import scatours.emailgateway.EmailType; - -public class PaymentImpl implements Payment { - - private CreditCardPayment creditCardPayment; - private EmailGateway emailGateway; - - public void setCreditCardPayment(CreditCardPayment creditCardPayment) { - this.creditCardPayment = creditCardPayment; - } - - public void setEmailGateway(EmailGateway emailGateway) { - this.emailGateway = emailGateway; - } - - public String makePaymentMember(String customerId, float amount) { - - ObjectFactory objectFactory = new ObjectFactory(); - CreditCardDetailsType ccDetails = objectFactory.createCreditCardDetailsType(); - ccDetails.setCreditCardType(CreditCardTypeType.fromValue("Visa")); - PayerType ccOwner = objectFactory.createPayerType(); - ccOwner.setName(customerId); - ccDetails.setCardOwner(ccOwner); - - String status = creditCardPayment.authorize(ccDetails, amount); - - scatours.emailgateway.ObjectFactory emailFactory = new scatours.emailgateway.ObjectFactory(); - EmailType email = emailFactory.createEmailType(); - email.setTitle("Payment Received"); - email.setTo(customerId); - - emailGateway.sendEmail(email); - - return status; - } - -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/java/scatours/emailgateway/EmailGatewayImpl.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/java/scatours/emailgateway/EmailGatewayImpl.java deleted file mode 100644 index 644519a5e7..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/java/scatours/emailgateway/EmailGatewayImpl.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 scatours.emailgateway; - -public class EmailGatewayImpl implements EmailGateway { - - public String sendEmail(EmailType email) { - System.out.println("Sending mail to " + email.getTo()); - return "SENT"; - } - -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/CreditCardPayment.wsdl b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/CreditCardPayment.wsdl deleted file mode 100644 index dbf89924cc..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/CreditCardPayment.wsdl +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/EmailGateway.wsdl b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/EmailGateway.wsdl deleted file mode 100644 index a097d9b7e4..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/EmailGateway.wsdl +++ /dev/null @@ -1,89 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/META-INF/sca-contribution.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 78a5d851f9..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/Payment-context.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/Payment-context.xml deleted file mode 100644 index e786e15d55..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/Payment-context.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/Payment.wsdl b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/Payment.wsdl deleted file mode 100644 index e2c4062f2e..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/Payment.wsdl +++ /dev/null @@ -1,83 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/test/java/payment/PaymentTestCase.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/test/java/payment/PaymentTestCase.java deleted file mode 100644 index 8046e8b2cd..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/test/java/payment/PaymentTestCase.java +++ /dev/null @@ -1,73 +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 payment; - -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * - */ -public class PaymentTestCase { - private static SCANode paymentNode; - private static SCANode creditCardNode; - private static SCANode emailGatewayNode; - - @BeforeClass - public static void setUpBeforeClass() throws Exception { - try { - creditCardNode = SCANodeFactory.newInstance().createSCANode("creditcard.composite", - new SCAContribution("creditcard", "../../shared-contributions/creditcard-payment-jaxb-contribution/target/classes"), - new SCAContribution("creditcard-test", "../../shared-contributions/creditcard-payment-jaxb-contribution/target/test-classes")); - emailGatewayNode = SCANodeFactory.newInstance().createSCANode("emailgateway.composite", - new SCAContribution("creditcard", "../../shared-contributions/emailgateway-contribution/target/classes"), - new SCAContribution("creditcard-test", "../../shared-contributions/emailgateway-contribution/target/test-classes")); - paymentNode = SCANodeFactory.newInstance().createSCANode("payment.composite", - new SCAContribution("payment-spring", "./target/classes"), - new SCAContribution("payment-spring-test", "./target/test-classes")); - - creditCardNode.start(); - emailGatewayNode.start(); - paymentNode.start(); - } catch (Exception ex) { - ex.printStackTrace(); - } - } - - @Test - public void testPayment() { - SCAClient client = (SCAClient) paymentNode; - Payment payment = client.getService(Payment.class, "PaymentClient"); - System.out.println("Result = " + payment.makePaymentMember("Fred", 100.00f)); - } - - @AfterClass - public static void tearDownAfterClass() throws Exception { - paymentNode.stop(); - creditCardNode.stop(); - emailGatewayNode.stop(); - } - -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/test/java/payment/client/PaymentClientImpl.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/test/java/payment/client/PaymentClientImpl.java deleted file mode 100644 index 556a699ad8..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/test/java/payment/client/PaymentClientImpl.java +++ /dev/null @@ -1,37 +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 payment.client; - -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -import payment.Payment; - -@Service(Payment.class) -public class PaymentClientImpl implements Payment { - @Reference - protected Payment payment; - - public String makePaymentMember(String customerId, float amount) { - // Delegate the external web service - return payment.makePaymentMember(customerId, amount); - } - -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/test/resources/META-INF/sca-contribution.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/test/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 4e61a2f127..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/test/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,22 +0,0 @@ - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/test/resources/payment.composite b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/test/resources/payment.composite deleted file mode 100644 index 52deda7a18..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/test/resources/payment.composite +++ /dev/null @@ -1,47 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/pom.xml deleted file mode 100644 index 605a362c31..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/pom.xml +++ /dev/null @@ -1,51 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.5-SNAPSHOT - - - tuscany-scatours-chapter-06 - pom - Apache Tuscany SCA Tours Chapter 06 Examples - - - - default - - true - - - node - payment-bpel-contribution - payment-spring-contribution - payment-spring-annotation-contribution - payment-javascript-contribution - ui-bpel-contribution - ui-spring-contribution - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/build.xml deleted file mode 100644 index 37b6800014..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/build.xml +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/pom.xml deleted file mode 100644 index 448bd8a96f..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/pom.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.6-SNAPSHOT - - - scatours-chapter-06-ui-bpel-contribution - Apache Tuscany SCA Tours Chapter 06 User Interface Contribution - - - - org.apache.tuscany.sca - tuscany-host-embedded - 1.6-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 1.6-SNAPSHOT - test - - - - org.apache.tuscany.sca - tuscany-binding-ws-axis2 - 1.6-SNAPSHOT - test - - - - org.apache.tuscany.sca - tuscany-host-tomcat - 1.6-SNAPSHOT - test - - - - junit - junit - 4.5 - test - - - - - - ${artifactId} - - - org.apache.tuscany.sca - tuscany-maven-ant-generator - 1.6-SNAPSHOT - - - - launch.LaunchTutorialAdmin - - - generate - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/META-INF/sca-contribution.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index b3de1910d1..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/scatours.composite b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/scatours.composite deleted file mode 100644 index 4b5290b910..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/scatours.composite +++ /dev/null @@ -1,178 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - GBP - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/scatours.html b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/scatours.html deleted file mode 100644 index b8e27e87fc..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/scatours.html +++ /dev/null @@ -1,391 +0,0 @@ - - - -SCA Tours - - - - - - - - - - - -
-
-

Search for trips, hotels, flights and cars

-
- - - - - - - - - - - - - - - - - -
From Location:To Location:
Start Date:End Date:
Number of people: - -
-
- -
-
-
-
-
-
-
-
-

Shopping Cart

-
-
- Total Price:
-
- -
-
- - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/scatours.odg b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/scatours.odg deleted file mode 100644 index 8ca8fbf133..0000000000 Binary files a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/scatours.odg and /dev/null differ diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/scatours.png b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/scatours.png deleted file mode 100644 index f68cd84704..0000000000 Binary files a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/scatours.png and /dev/null differ diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/style.css b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/style.css deleted file mode 100644 index 6e17c2747b..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/style.css +++ /dev/null @@ -1,135 +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. - */ - - - -/*******************************************/ - -p,table,li,h1,h2,h3 -{ -font-family: verdana, arial, 'sans serif'; -} - -p, h1, h2, h3, table, li, hr -{ -margin-left: 10pt; -} - -table -{ -border-color: black; -border-collapse: separate; -border-spacing: 0px 1px; - -margin-right: 10pt; -margin-left: 10pt; -width: 800px; -} - -.sourceDetailsTable -{ -width: 600px; -} - -tr, td -{ -margin-left: 0pt; -margin-right: 0pt; -padding-left: 10pt; -font-size: 90%; -} - -p,li,th -{ -font-size: 90%; -margin-left: 10pt; -} - -pre -{ -margin-left: 10pt; -} - -body -{ -#ffffff; -} - -h1,h2,h3,hr -{ -color: firebrick; -} - -a:link {COLOR: firebrick;} -a:visited {COLOR: firebrick;} -a:active {COLOR: navy;} - -.link -{ -COLOR: firebrick; -text-decoration: underline; -} - -.clickable -{ -cursor: pointer -} - -.unread_title -{ -font-weight: bold; -} - -.read_title -{ -font-weight: normal; -} - -.summary -{ -color: DimGrey; -} - -.hidden -{ -display: none; -} - -.source_name -{ -width: 600px; -} - -.alert_text -{ -width: 600px; -} - -.alert_data -{ -margin-left: 10px; -width: 800px; -height: 800px; -} - -.source_0 -{ -background-color: LightGreen; -} - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/build.xml deleted file mode 100644 index 68b3a3adf9..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/build.xml +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/pom.xml deleted file mode 100644 index 42df0ab469..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/pom.xml +++ /dev/null @@ -1,88 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.6-SNAPSHOT - - - scatours-ui-spring-contribution - Apache Tuscany SCA Tours User Interface Spring Contribution - - - - org.apache.tuscany.sca - tuscany-host-embedded - 1.6-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 1.6-SNAPSHOT - test - - - - org.apache.tuscany.sca - tuscany-binding-ws-axis2 - 1.6-SNAPSHOT - test - - - - org.apache.tuscany.sca - tuscany-host-tomcat - 1.6-SNAPSHOT - test - - - - junit - junit - 4.5 - test - - - - - - ${artifactId} - - - org.apache.tuscany.sca - tuscany-maven-ant-generator - 1.6-SNAPSHOT - - - - launch.LaunchTutorialAdmin - - - generate - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/META-INF/sca-contribution.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index b3de1910d1..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/scatours.composite b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/scatours.composite deleted file mode 100644 index 9b21c2a9f2..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/scatours.composite +++ /dev/null @@ -1,169 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - GBP - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 9.73 - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/scatours.html b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/scatours.html deleted file mode 100644 index b8e27e87fc..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/scatours.html +++ /dev/null @@ -1,391 +0,0 @@ - - - -SCA Tours - - - - - - - - - - - -
-
-

Search for trips, hotels, flights and cars

-
- - - - - - - - - - - - - - - - - -
From Location:To Location:
Start Date:End Date:
Number of people: - -
-
- -
-
-
-
-
-
-
-
-

Shopping Cart

-
-
- Total Price:
-
- -
-
- - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/scatours.odg b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/scatours.odg deleted file mode 100644 index 8ca8fbf133..0000000000 Binary files a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/scatours.odg and /dev/null differ diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/scatours.png b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/scatours.png deleted file mode 100644 index f68cd84704..0000000000 Binary files a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/scatours.png and /dev/null differ diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/style.css b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/style.css deleted file mode 100644 index 6e17c2747b..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/style.css +++ /dev/null @@ -1,135 +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. - */ - - - -/*******************************************/ - -p,table,li,h1,h2,h3 -{ -font-family: verdana, arial, 'sans serif'; -} - -p, h1, h2, h3, table, li, hr -{ -margin-left: 10pt; -} - -table -{ -border-color: black; -border-collapse: separate; -border-spacing: 0px 1px; - -margin-right: 10pt; -margin-left: 10pt; -width: 800px; -} - -.sourceDetailsTable -{ -width: 600px; -} - -tr, td -{ -margin-left: 0pt; -margin-right: 0pt; -padding-left: 10pt; -font-size: 90%; -} - -p,li,th -{ -font-size: 90%; -margin-left: 10pt; -} - -pre -{ -margin-left: 10pt; -} - -body -{ -#ffffff; -} - -h1,h2,h3,hr -{ -color: firebrick; -} - -a:link {COLOR: firebrick;} -a:visited {COLOR: firebrick;} -a:active {COLOR: navy;} - -.link -{ -COLOR: firebrick; -text-decoration: underline; -} - -.clickable -{ -cursor: pointer -} - -.unread_title -{ -font-weight: bold; -} - -.read_title -{ -font-weight: normal; -} - -.summary -{ -color: DimGrey; -} - -.hidden -{ -display: none; -} - -.source_name -{ -width: 600px; -} - -.alert_text -{ -width: 600px; -} - -.alert_data -{ -margin-left: 10px; -width: 800px; -height: 800px; -} - -.source_0 -{ -background-color: LightGreen; -} - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-07/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-07/pom.xml deleted file mode 100644 index 5f9e3ef56b..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-07/pom.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.5-SNAPSHOT-SNAPSHOT - - - tuscany-scatours-chapter-07 - pom - Apache Tuscany SCA Tours Chapter 07 Examples - - - - default - - true - - - node - ui-contribution - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/pom.xml deleted file mode 100644 index caf9636c18..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/pom.xml +++ /dev/null @@ -1,46 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.5-SNAPSHOT-SNAPSHOT - - - tuscany-scatours-chapter-08 - pom - Apache Tuscany SCA Tours Chapter 08 Examples - - - - default - - true - - - node - ui-contribution - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/build.xml deleted file mode 100644 index f453e53815..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/build.xml +++ /dev/null @@ -1,106 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/pom.xml deleted file mode 100644 index a253fbf74b..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/pom.xml +++ /dev/null @@ -1,103 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.5-SNAPSHOT-SNAPSHOT - - - war - scatours-ui - Apache Tuscany SCA Tours User Interface Contribution - - - - org.apache.tuscany.sca - tuscany-host-embedded - 1.5-SNAPSHOT-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 1.5-SNAPSHOT-SNAPSHOT - test - - - - org.apache.tuscany.sca - tuscany-binding-ws-axis2 - 1.5-SNAPSHOT-SNAPSHOT - test - - - - org.apache.tuscany.sca - tuscany-host-tomcat - 1.5-SNAPSHOT-SNAPSHOT - test - - - - junit - junit - 4.2 - test - - - - - - ${artifactId} - ${basedir}/src - - - ${basedir} - - **/*.java - **/.*/** - pom.xml - build.xml - target/** - src/** - - - - - - org.apache.tuscany.sca - tuscany-maven-ant-generator - 1.5-SNAPSHOT-SNAPSHOT - - - - launch.LaunchTutorialAdmin - - - generate - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/META-INF/sca-deployables/scatours.composite b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/META-INF/sca-deployables/scatours.composite deleted file mode 100644 index 2fa83b7a3b..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/META-INF/sca-deployables/scatours.composite +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/WEB-INF/web.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/WEB-INF/web.xml deleted file mode 100644 index 3f833b6856..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/WEB-INF/web.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - Apache Tuscany SCA Tours User Interface Webapp - - - tuscany - org.apache.tuscany.sca.host.webapp.TuscanyServletFilter - - - - tuscany - /* - - - - scatours.html - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.html b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.html deleted file mode 100644 index 9aad807887..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.html +++ /dev/null @@ -1,143 +0,0 @@ - - - -SCA Tours - - - - - - - - - - - -
-
-
- - - - - - - - - - - - - - - - - -
From Location:To Location:
Start Date:End Date:
Number of people: - -
- - -
-
-
-
- -
-
-
-
-
-
- - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.odg b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.odg deleted file mode 100644 index 8ca8fbf133..0000000000 Binary files a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.odg and /dev/null differ diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.png b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.png deleted file mode 100644 index f68cd84704..0000000000 Binary files a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.png and /dev/null differ diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/style.css b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/style.css deleted file mode 100644 index 6e17c2747b..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/style.css +++ /dev/null @@ -1,135 +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. - */ - - - -/*******************************************/ - -p,table,li,h1,h2,h3 -{ -font-family: verdana, arial, 'sans serif'; -} - -p, h1, h2, h3, table, li, hr -{ -margin-left: 10pt; -} - -table -{ -border-color: black; -border-collapse: separate; -border-spacing: 0px 1px; - -margin-right: 10pt; -margin-left: 10pt; -width: 800px; -} - -.sourceDetailsTable -{ -width: 600px; -} - -tr, td -{ -margin-left: 0pt; -margin-right: 0pt; -padding-left: 10pt; -font-size: 90%; -} - -p,li,th -{ -font-size: 90%; -margin-left: 10pt; -} - -pre -{ -margin-left: 10pt; -} - -body -{ -#ffffff; -} - -h1,h2,h3,hr -{ -color: firebrick; -} - -a:link {COLOR: firebrick;} -a:visited {COLOR: firebrick;} -a:active {COLOR: navy;} - -.link -{ -COLOR: firebrick; -text-decoration: underline; -} - -.clickable -{ -cursor: pointer -} - -.unread_title -{ -font-weight: bold; -} - -.read_title -{ -font-weight: normal; -} - -.summary -{ -color: DimGrey; -} - -.hidden -{ -display: none; -} - -.source_name -{ -width: 600px; -} - -.alert_text -{ -width: 600px; -} - -.alert_data -{ -margin-left: 10px; -width: 800px; -height: 800px; -} - -.source_0 -{ -background-color: LightGreen; -} - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/pom.xml deleted file mode 100644 index 9388e4e3fb..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/pom.xml +++ /dev/null @@ -1,130 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.6-SNAPSHOT - - - scatours-chapter-09-creditcard-payment-sdo-contribution - Apache Tuscany SCA Tours Chapter 09 SDO-based Credit Card Payment Contribution - - - - org.apache.tuscany.sca - tuscany-node-api - 1.6-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-node-impl - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-databinding-sdo - 1.6-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-binding-ws-axis2 - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-host-jetty - 1.6-SNAPSHOT - runtime - - - - junit - junit - 4.5 - test - - - - - ${artifactId} - - - org.codehaus.mojo - build-helper-maven-plugin - 1.0 - - - add-source - generate-sources - - add-source - - - - target/sdo-source - - - - - - - org.apache.tuscany.sdo - tuscany-sdo-plugin - 1.1.1 - - - generate-sdo - generate-sources - - - ${basedir}/src/main/resources/CreditCardPayment.wsdl - - payment.creditcard - CreditCardPayment - true - true - true - - - generate - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/java/payment/creditcard/CreditCardPayment.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/java/payment/creditcard/CreditCardPayment.java deleted file mode 100644 index 5b333648f4..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/java/payment/creditcard/CreditCardPayment.java +++ /dev/null @@ -1,39 +0,0 @@ - -package payment.creditcard; - -import javax.jws.WebMethod; -import javax.jws.WebParam; -import javax.jws.WebResult; -import javax.jws.WebService; -import javax.xml.ws.RequestWrapper; -import javax.xml.ws.ResponseWrapper; - - -/** - * This class was generated by the JAX-WS RI. - * JAX-WS RI 2.1.3-b02- - * Generated source version: 2.1 - * - */ -@WebService(name = "CreditCardPayment", targetNamespace = "http://www.example.org/CreditCardPayment/") -public interface CreditCardPayment { - - - /** - * - * @param amount - * @param creditCard - * @return - * returns java.lang.String - */ - @WebMethod(action = "http://www.example.org/CreditCardPayment/authorize") - @WebResult(name = "Status", targetNamespace = "") - @RequestWrapper(localName = "authorize", targetNamespace = "http://www.example.org/CreditCardPayment/", className = "payment.creditcard.AuthorizeType") - @ResponseWrapper(localName = "authorizeResponse", targetNamespace = "http://www.example.org/CreditCardPayment/", className = "payment.creditcard.AuthorizeResponseType") - public String authorize( - @WebParam(name = "CreditCard", targetNamespace = "") - CreditCardDetailsType creditCard, - @WebParam(name = "Amount", targetNamespace = "") - float amount); - -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/java/payment/creditcard/impl/CreditCardPaymentImpl.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/java/payment/creditcard/impl/CreditCardPaymentImpl.java deleted file mode 100644 index 178268eac1..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/java/payment/creditcard/impl/CreditCardPaymentImpl.java +++ /dev/null @@ -1,47 +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 payment.creditcard.impl; - -import org.osoa.sca.annotations.Service; - -import payment.creditcard.CreditCardDetailsType; -import payment.creditcard.CreditCardPayment; - -/** - * - */ -@Service(CreditCardPayment.class) -public class CreditCardPaymentImpl implements CreditCardPayment { - - public String authorize(CreditCardDetailsType creditCard, float amount) { - if (creditCard != null){ - System.out.println("Checking card: name = " + - creditCard.getCardOwner().getName() + - " number = " + - creditCard.getCreditCardNumber() + - " for amount " + - amount); - } else { - System.out.println("Checking card is null"); - } - - return "OK"; - } -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/resources/CreditCardPayment.wsdl b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/resources/CreditCardPayment.wsdl deleted file mode 100644 index f73279e7d8..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/resources/CreditCardPayment.wsdl +++ /dev/null @@ -1,117 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/resources/META-INF/sca-contribution.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index d22f4816ab..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/resources/creditcard.composite b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/resources/creditcard.composite deleted file mode 100644 index 938385dbf9..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/resources/creditcard.composite +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/test/java/payment/creditcard/CreditCardPaymentTestCase.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/test/java/payment/creditcard/CreditCardPaymentTestCase.java deleted file mode 100644 index 041e4e4847..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/test/java/payment/creditcard/CreditCardPaymentTestCase.java +++ /dev/null @@ -1,86 +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 payment.creditcard; - -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Ignore; -import org.junit.Test; - -/** - * - */ -public class CreditCardPaymentTestCase { - private static SCANode node; - - /** - * @throws java.lang.Exception - */ - @BeforeClass - public static void setUpBeforeClass() throws Exception { - SCANodeFactory factory = SCANodeFactory.newInstance(); - node = factory.createSCANodeFromClassLoader("creditcard.composite", CreditCardPayment.class.getClassLoader()); - node.start(); - } - - @Test - public void testCreditCardPayment() { - SCAClient client = (SCAClient) node; - CreditCardPayment cc = client.getService(CreditCardPayment.class, "CreditCardPaymentComponent/CreditCardPayment"); - - CreditCardPaymentFactory factory = CreditCardPaymentFactory.INSTANCE; - CreditCardDetailsType ccDetails = factory.createCreditCardDetailsType(); - ccDetails.setCreditCardType("Visa"); - ccDetails.setCreditCardNumber("1111-2222-3333-4444"); - ccDetails.setExpMonth(9); - ccDetails.setExpYear(2010); - PayerType ccOwner = factory.createPayerType(); - ccOwner.setName("Fred"); - ccDetails.setCardOwner(ccOwner); - - System.out.println(cc.authorize(ccDetails, 100.00f)); - } - - @Test - @Ignore - public void testWaitForInput() { - System.out.println("Press a key to end"); - try { - System.in.read(); - } catch (Exception ex) { - } - System.out.println("Shutting down"); - } - - /** - * @throws java.lang.Exception - */ - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (node != null) { - node.stop(); - node = null; - } - } - -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/node/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/node/build.xml deleted file mode 100644 index 46333e4852..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/node/build.xml +++ /dev/null @@ -1,210 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/node/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/node/pom.xml deleted file mode 100644 index 8deb76212c..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/node/pom.xml +++ /dev/null @@ -1,144 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.6-SNAPSHOT - - - scatours-chapter-09-node - Apache Tuscany SCA Tours Chapter 09 Node - - - - org.apache.tuscany.sca - tuscany-node-api - 1.6-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-node-launcher - 1.6-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-domain-manager - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-node-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-widget-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-implementation-resource-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-atom-abdera - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jsonrpc-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-http-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-ws-axis2 - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-sca-axis2 - 1.6-SNAPSHOT - runtime - - - - - org.apache.derby - derby - 10.3.1.4 - runtime - - - - - - ${artifactId} - - - org.apache.tuscany.sca - tuscany-maven-ant-generator - 1.6-SNAPSHOT - - - - scatours.LaunchNode - - - generate - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/node/src/main/java/scatours/LaunchNode.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/node/src/main/java/scatours/LaunchNode.java deleted file mode 100644 index 7ed9b0d126..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/node/src/main/java/scatours/LaunchNode.java +++ /dev/null @@ -1,65 +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 scatours; - -import java.io.IOException; - -import org.apache.tuscany.sca.node.SCAContribution; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; - -public class LaunchNode { - public static void main(String[] args) throws Exception { - LaunchNode.launchFromFileSystemDir(); - } - - // OK for development but you must launch the node from this module - public static void launchFromFileSystemDir(){ - SCANode node = null; - - try { - node = SCANodeFactory.newInstance().createSCANode("scatours.composite", - new SCAContribution("common", "../../shared-contributions/common-contribution/target/classes"), - new SCAContribution("currency", "../../shared-contributions/currency-contribution/target/classes"), - new SCAContribution("hotel", "../../shared-contributions/hotel-contribution/target/classes"), - new SCAContribution("flight", "../../shared-contributions/flight-contribution/target/classes"), - new SCAContribution("car", "../../shared-contributions/car-contribution/target/classes"), - new SCAContribution("trip", "../../shared-contributions/trip-contribution/target/classes"), - new SCAContribution("tripbooking", "../../shared-contributions/tripbooking-contribution/target/classes"), - new SCAContribution("travelcatalog", "../../shared-contributions/travelcatalog-contribution/target/classes"), - new SCAContribution("payment", "../payment-contribution/target/classes"), - new SCAContribution("emailgateway", "../../shared-contributions/emailgateway-contribution/target/classes"), - new SCAContribution("shoppingcart", "../../shared-contributions/shoppingcart-contribution/target/classes"), - new SCAContribution("scatours", "../../shared-contributions/scatours-contribution/target/classes"), - new SCAContribution("ui", "../ui-contribution/target/classes")); - node.start(); - - System.out.println("Node started - Press enter to shutdown."); - try { - System.in.read(); - } catch (IOException e) {} - - node.stop(); - - } catch (Exception ex) { - System.out.println(ex.toString()); - } - } -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/pom.xml deleted file mode 100644 index d642fa3d17..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/pom.xml +++ /dev/null @@ -1,124 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.6-SNAPSHOT - - - scatours-chapter-09-payment-contribution - Apache Tuscany SCA Tours Chapter 09 Payment Contribution - - - - org.apache.tuscany.sca - tuscany-host-embedded - 1.6-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-jsonrpc-runtime - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-binding-ws-axis2 - 1.6-SNAPSHOT - runtime - - - - org.apache.tuscany.sca - tuscany-host-jetty - 1.6-SNAPSHOT - runtime - - - - junit - junit - 4.5 - test - - - - - ${artifactId} - - - org.codehaus.mojo - build-helper-maven-plugin - 1.0 - - - add-source - generate-sources - - add-source - - - - target/jaxws-source - - - - - - - org.codehaus.mojo - jaxws-maven-plugin - 1.9 - - - wsimport - generate-sources - - wsimport - - - payment.creditcard - ${basedir}/src/main/resources - - - CreditCardPayment.wsdl - - ${project.build.directory}/jaxws-source - - false - true - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/main/java/payment/Payment.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/main/java/payment/Payment.java deleted file mode 100644 index f1a45cb031..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/main/java/payment/Payment.java +++ /dev/null @@ -1,26 +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 payment; - -public interface Payment { - - public String makePaymentMember(String customerId, - float amount); -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/main/java/payment/PaymentImpl.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/main/java/payment/PaymentImpl.java deleted file mode 100644 index aa8f3cd01a..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/main/java/payment/PaymentImpl.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 payment; - -import org.osoa.sca.annotations.Reference; -import org.osoa.sca.annotations.Service; - -import payment.creditcard.CreditCardDetailsType; -import payment.creditcard.CreditCardPayment; -import payment.creditcard.CreditCardTypeType; -import payment.creditcard.ObjectFactory; -import payment.creditcard.PayerType; - -/** - * - */ -@Service(Payment.class) -public class PaymentImpl implements Payment { - - @Reference - protected CreditCardPayment creditCardPayment; - - public String makePaymentMember(String customerId, float amount) { - - ObjectFactory objectFactory = new ObjectFactory(); - CreditCardDetailsType ccDetails = objectFactory.createCreditCardDetailsType(); - ccDetails.setCreditCardType(CreditCardTypeType.fromValue("Visa")); - PayerType ccOwner = objectFactory.createPayerType(); - ccOwner.setName(customerId); - ccDetails.setCardOwner(ccOwner); - - String status = creditCardPayment.authorize(ccDetails, amount); - - return status; - } - -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/main/resources/CreditCardPayment.wsdl b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/main/resources/CreditCardPayment.wsdl deleted file mode 100644 index b40c341389..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/main/resources/CreditCardPayment.wsdl +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/main/resources/META-INF/sca-contribution.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index d22f4816ab..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/test/java/payment/PaymentTestCase.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/test/java/payment/PaymentTestCase.java deleted file mode 100644 index 21bf6ff428..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/test/java/payment/PaymentTestCase.java +++ /dev/null @@ -1,76 +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 payment; - -import org.apache.tuscany.sca.node.SCAClient; -import org.apache.tuscany.sca.node.SCANode; -import org.apache.tuscany.sca.node.SCANodeFactory; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -/** - * - */ -public class PaymentTestCase { - private static SCANode node; - - /** - * @throws java.lang.Exception - */ - @BeforeClass - public static void setUpBeforeClass() throws Exception { - SCANodeFactory factory = SCANodeFactory.newInstance(); - node = factory.createSCANodeFromClassLoader("payment.composite", Payment.class.getClassLoader()); - node.start(); - } - - @Test - public void testCreditCardPayment() { - SCAClient client = (SCAClient) node; - Payment payment = client.getService(Payment.class, "PaymentComponent"); - System.out.println(payment.makePaymentMember("Fred Bloggs", 100.00f)); - } - - @Test - //@Ignore - public void testWaitForInput() { -/* - System.out.println("Press a key to end"); - try { - System.in.read(); - } catch (Exception ex) { - } - System.out.println("Shutting down"); -*/ - } - - /** - * @throws java.lang.Exception - */ - @AfterClass - public static void tearDownAfterClass() throws Exception { - if (node != null) { - node.stop(); - node = null; - } - } - -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/test/java/payment/creditcard/CreditCardPaymentImpl.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/test/java/payment/creditcard/CreditCardPaymentImpl.java deleted file mode 100644 index b7d44c1abe..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/test/java/payment/creditcard/CreditCardPaymentImpl.java +++ /dev/null @@ -1,44 +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 payment.creditcard; - -import org.osoa.sca.annotations.Service; - -/** - * - */ -@Service(CreditCardPayment.class) -public class CreditCardPaymentImpl implements CreditCardPayment { - - public String authorize(CreditCardDetailsType creditCard, float amount) { - if (creditCard != null){ - System.out.println("Checking card: name = " + - creditCard.getCardOwner().getName() + - " number = " + - creditCard.getCreditCardNumber() + - " for amount " + - amount); - } else { - System.out.println("Checking card is null"); - } - - return "OK"; - } -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/test/resources/payment.composite b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/test/resources/payment.composite deleted file mode 100644 index 90665e86e0..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/test/resources/payment.composite +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/pom.xml deleted file mode 100644 index 7d7bee30ff..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/pom.xml +++ /dev/null @@ -1,48 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.5-SNAPSHOT - - - tuscany-scatours-chapter-09 - pom - Apache Tuscany SCA Tours Chapter 09 Examples - - - - default - - true - - - node - ui-contribution - payment-contribution - creditcard-payment-sdo-contribution - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/build.xml deleted file mode 100644 index 9bb124b5d0..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/build.xml +++ /dev/null @@ -1,108 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/pom.xml deleted file mode 100644 index 958aed8d7b..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/pom.xml +++ /dev/null @@ -1,71 +0,0 @@ - - - - 4.0.0 - - org.apache.tuscany.sca - tuscany-sca - 1.6-SNAPSHOT - - - scatours-chapter-09-ui-contribution - Apache Tuscany SCA Tours Chapter 09 User Interface Contribution - - - - org.apache.tuscany.sca - tuscany-host-embedded - 1.6-SNAPSHOT - - - - org.apache.tuscany.sca - tuscany-implementation-java-runtime - 1.6-SNAPSHOT - test - - - - org.apache.tuscany.sca - tuscany-binding-ws-axis2 - 1.6-SNAPSHOT - test - - - - org.apache.tuscany.sca - tuscany-host-tomcat - 1.6-SNAPSHOT - test - - - - junit - junit - 4.5 - test - - - - - - ${artifactId} - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/scatours.odg b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/scatours.odg deleted file mode 100644 index 8ca8fbf133..0000000000 Binary files a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/scatours.odg and /dev/null differ diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/scatours.png b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/scatours.png deleted file mode 100644 index f68cd84704..0000000000 Binary files a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/scatours.png and /dev/null differ diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/src/main/resources/META-INF/sca-contribution.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/src/main/resources/META-INF/sca-contribution.xml deleted file mode 100644 index 764030c28e..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/src/main/resources/META-INF/sca-contribution.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/src/main/resources/scatours.composite b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/src/main/resources/scatours.composite deleted file mode 100644 index 53fac26d3e..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/src/main/resources/scatours.composite +++ /dev/null @@ -1,178 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - GBP - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/src/main/resources/scatours.html b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/src/main/resources/scatours.html deleted file mode 100644 index f4206548c0..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/src/main/resources/scatours.html +++ /dev/null @@ -1,390 +0,0 @@ - - - -SCA Tours - - - - - - - - - - - -
-
-

Search for trips, hotels, flights and cars

-
- - - - - - - - - - - - - - - - - -
From Location:To Location:
Start Date:End Date:
Number of people: - -
-
- -
-
-
-
-
-
-
-
-

Shopping Cart

-
-
- Total Price:
-
- -
-
- - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/src/main/resources/style.css b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/src/main/resources/style.css deleted file mode 100644 index 6e17c2747b..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/src/main/resources/style.css +++ /dev/null @@ -1,135 +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. - */ - - - -/*******************************************/ - -p,table,li,h1,h2,h3 -{ -font-family: verdana, arial, 'sans serif'; -} - -p, h1, h2, h3, table, li, hr -{ -margin-left: 10pt; -} - -table -{ -border-color: black; -border-collapse: separate; -border-spacing: 0px 1px; - -margin-right: 10pt; -margin-left: 10pt; -width: 800px; -} - -.sourceDetailsTable -{ -width: 600px; -} - -tr, td -{ -margin-left: 0pt; -margin-right: 0pt; -padding-left: 10pt; -font-size: 90%; -} - -p,li,th -{ -font-size: 90%; -margin-left: 10pt; -} - -pre -{ -margin-left: 10pt; -} - -body -{ -#ffffff; -} - -h1,h2,h3,hr -{ -color: firebrick; -} - -a:link {COLOR: firebrick;} -a:visited {COLOR: firebrick;} -a:active {COLOR: navy;} - -.link -{ -COLOR: firebrick; -text-decoration: underline; -} - -.clickable -{ -cursor: pointer -} - -.unread_title -{ -font-weight: bold; -} - -.read_title -{ -font-weight: normal; -} - -.summary -{ -color: DimGrey; -} - -.hidden -{ -display: none; -} - -.source_name -{ -width: 600px; -} - -.alert_text -{ -width: 600px; -} - -.alert_data -{ -margin-left: 10px; -width: 800px; -height: 800px; -} - -.source_0 -{ -background-color: LightGreen; -} - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/.classpath b/sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/.classpath deleted file mode 100644 index 609aa00ebc..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/.classpath +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/.project b/sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/.project deleted file mode 100644 index e4a44c86de..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/.project +++ /dev/null @@ -1,33 +0,0 @@ - - - scatours-android-ui - - - - - - com.android.ide.eclipse.adt.ResourceManagerBuilder - - - - - com.android.ide.eclipse.adt.PreCompilerBuilder - - - - - org.eclipse.jdt.core.javabuilder - - - - - com.android.ide.eclipse.adt.ApkBuilder - - - - - - com.android.ide.eclipse.adt.AndroidNature - org.eclipse.jdt.core.javanature - - diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/AndroidManifest.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/AndroidManifest.xml deleted file mode 100644 index 7bda31e187..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/AndroidManifest.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - - - - - - - \ No newline at end of file diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/default.properties b/sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/default.properties deleted file mode 100644 index 6b8ae52b90..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/default.properties +++ /dev/null @@ -1,22 +0,0 @@ -# This file is automatically generated by Android Tools. -# Do not modify this file -- YOUR CHANGES WILL BE ERASED! -# -# This file must be checked in Version Control Systems. -# -# To customize properties used by the Ant build system use, -# "build.properties", and override values to adapt the script to your -# project structure. - -# apk configurations. This property allows creation of APK files with limited -# resources. For example, if your application contains many locales and -# you wish to release multiple smaller apks instead of a large one, you can -# define configuration to create apks with limited language sets. -# Format is a comma separated list of configuration names. For each -# configuration, a property will declare the resource configurations to -# include. Example: -# apk-configurations=european,northamerica -# apk-config-european=en,fr,it,de,es -# apk-config-northamerica=en,es -apk-configurations= -# Project target. -target=android-3 diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/gen/scatours/android/R.java b/sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/gen/scatours/android/R.java deleted file mode 100644 index 777832aa4c..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/gen/scatours/android/R.java +++ /dev/null @@ -1,35 +0,0 @@ -/* AUTO-GENERATED FILE. DO NOT MODIFY. - * - * This class was automatically generated by the - * aapt tool from the resource data it found. It - * should not be modified by hand. - */ - -package scatours.android; - -public final class R { - public static final class attr { - } - public static final class drawable { - public static final int icon=0x7f020000; - } - public static final class id { - public static final int btnSearch=0x7f050005; - public static final int edit_NumberOfPeople=0x7f050004; - public static final int edit_date_end=0x7f050003; - public static final int edit_date_start=0x7f050002; - public static final int edit_fromLocation=0x7f050000; - public static final int edit_toLocation=0x7f050001; - public static final int listPackages=0x7f050006; - } - public static final class layout { - public static final int search=0x7f030000; - public static final int search_results=0x7f030001; - } - public static final class string { - public static final int alert_cancel=0x7f040003; - public static final int alert_yes=0x7f040002; - public static final int app_name=0x7f040000; - public static final int title_search=0x7f040001; - } -} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/res/drawable/icon.png b/sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/res/drawable/icon.png deleted file mode 100644 index 75024841d3..0000000000 Binary files a/sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/res/drawable/icon.png and /dev/null differ diff --git a/sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/res/layout/search.xml b/sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/res/layout/search.xml deleted file mode 100644 index cb7ae6acb6..0000000000 --- a/sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/res/layout/search.xml +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - -