From 3d3670cdd4ee1aaf6d3e22fd7de7fb362c9eefba Mon Sep 17 00:00:00 2001 From: slaws Date: Sun, 24 Jan 2010 14:24:14 +0000 Subject: Copy into trunk from sandbox git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@902572 13f79535-47bb-0310-9956-ffa450edef68 --- sca-java-1.x/trunk/tutorials/travelsample/README | 255 +++ .../trunk/tutorials/travelsample/antdefs.xml | 447 ++++++ .../trunk/tutorials/travelsample/build.xml | 49 + .../trunk/tutorials/travelsample/clients/build.xml | 47 + .../clients/currency-converter-corba/build.xml | 42 + .../clients/currency-converter-corba/pom.xml | 85 + .../scatours/CurrencyConverterCORBAClient.java | 41 + .../src/main/resources/currency-converter.idl | 29 + .../clients/currency-converter-jms/build.xml | 42 + .../clients/currency-converter-jms/pom.xml | 105 ++ .../java/scatours/CurrencyConverterJMSClient.java | 103 ++ .../clients/currency-converter-rmi/build.xml | 36 + .../clients/currency-converter-rmi/pom.xml | 59 + .../currencyconverter/CurrencyConverter.java | 30 + .../java/scatours/CurrencyConverterRMIClient.java | 36 + .../clients/currency-converter-ws-jaxws/build.xml | 44 + .../clients/currency-converter-ws-jaxws/pom.xml | 89 ++ .../java/scatours/CurrencyConverterWSClient.java | 33 + .../src/main/resources/wsdl/CurrencyConverter.wsdl | 115 ++ .../trunk/tutorials/travelsample/clients/pom.xml | 49 + .../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 0 -> 11477 bytes .../src/main/resources/scatours.png | Bin 0 -> 11061 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 0 -> 11477 bytes .../src/main/resources/scatours.png | Bin 0 -> 11061 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 0 -> 11477 bytes .../src/main/resources/scatours.png | Bin 0 -> 11061 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 0 -> 11477 bytes .../src/main/webapp/scatours.png | Bin 0 -> 11061 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 0 -> 11477 bytes .../chapter-09/ui-contribution/scatours.png | Bin 0 -> 11061 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 0 -> 3180 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 + .../travelsample/contributions/blog-feed/build.xml | 22 + .../travelsample/contributions/blog-feed/pom.xml | 80 + .../java/com/tuscanyscatours/blog/BlogPost.java | 68 + .../blog/feed/impl/AtomBlogFeedImpl.java | 124 ++ .../blog/feed/impl/BaseBlogFeedImpl.java | 88 ++ .../blog/feed/impl/GenericBlogFeedImpl.java | 70 + .../blog/feed/impl/RSSBlogFeedImpl.java | 94 ++ .../main/resources/META-INF/sca-contribution.xml | 21 + .../src/main/resources/blog-feed.composite | 58 + .../tutorials/travelsample/contributions/build.xml | 96 ++ .../contributions/buildingblocks-client/build.xml | 22 + .../contributions/buildingblocks-client/pom.xml | 125 ++ .../src/main/java/scatours/Bookings.java | 26 + .../src/main/java/scatours/Checkout.java | 28 + .../main/java/scatours/impl/ApplClientImpl.java | 52 + .../main/java/scatours/impl/ToursClientImpl.java | 47 + .../main/resources/META-INF/sca-contribution.xml | 26 + .../src/main/resources/tours-appl-client.composite | 40 + .../src/main/resources/tours-impl-client.composite | 32 + .../resources/tours-impl-include-client.composite | 32 + .../java/scatours/BuildingBlocksApplTestCase.java | 77 + .../BuildingBlocksImplIncludeTestCase.java | 59 + .../java/scatours/BuildingBlocksImplTestCase.java | 58 + .../src/test/resources/jndi.properties | 39 + .../contributions/buildingblocks/build.xml | 22 + .../contributions/buildingblocks/pom.xml | 91 ++ .../src/main/java/com/budgettours/Tours.java | 26 + .../com/budgettours/impl/TourProviderImpl.java | 28 + .../src/main/java/com/goodvaluetrips/Trips.java | 26 + .../main/java/com/tuscanyscatours/Bookings.java | 26 + .../main/java/com/tuscanyscatours/Checkout.java | 28 + .../src/main/java/com/tuscanyscatours/Updates.java | 26 + .../com/tuscanyscatours/impl/ShoppingCartImpl.java | 49 + .../com/tuscanyscatours/impl/TripBookingImpl.java | 39 + .../main/java/scatours/impl/TripProviderImpl.java | 28 + .../main/resources/META-INF/sca-contribution.xml | 27 + .../src/main/resources/tours-appl.composite | 54 + .../main/resources/tours-impl-include.composite | 33 + .../src/main/resources/tours-impl.composite | 34 + .../src/main/resources/tours.composite | 43 + .../BuildingBlocksImplIncludeTestCase.java | 66 + .../java/scatours/BuildingBlocksImplTestCase.java | 65 + .../travelsample/contributions/calendar/build.xml | 22 + .../travelsample/contributions/calendar/pom.xml | 64 + .../com/tuscanyscatours/calendar/Calendar.java | 25 + .../calendar/impl/CalendarImpl.java | 47 + .../main/resources/META-INF/sca-contribution.xml | 23 + .../java/scatours/calendar/CalendarTestCase.java | 57 + .../test/resources/META-INF/sca-contribution.xml | 23 + .../calendar/src/test/resources/calendar.composite | 28 + .../travelsample/contributions/car/build.xml | 25 + .../travelsample/contributions/car/pom.xml | 62 + .../java/com/tuscanyscatours/car/impl/CarImpl.java | 91 ++ .../java/com/tuscanyscatours/car/impl/CarInfo.java | 118 ++ .../main/resources/META-INF/sca-contribution.xml | 23 + .../travelsample/contributions/common/build.xml | 22 + .../travelsample/contributions/common/pom.xml | 56 + .../main/java/com/tuscanyscatours/common/Book.java | 27 + .../java/com/tuscanyscatours/common/Search.java | 37 + .../com/tuscanyscatours/common/SearchCallback.java | 33 + .../java/com/tuscanyscatours/common/TripItem.java | 242 +++ .../java/com/tuscanyscatours/common/TripLeg.java | 85 + .../main/resources/META-INF/sca-contribution.xml | 22 + .../creditcard-payment-jaxb-policy/build.xml | 30 + .../maven-eclipse.xml | 8 + .../creditcard-payment-jaxb-policy/pom.xml | 144 ++ .../creditcard/impl/CreditCardPaymentImpl.java | 46 + .../src/main/resources/CreditCardPayment.wsdl | 134 ++ .../main/resources/META-INF/sca-contribution.xml | 24 + .../src/main/resources/creditcard.composite | 33 + .../src/main/resources/definitions.xml | 36 + .../creditcard/CreditCardPaymentTestCase.java | 100 ++ .../creditcard-payment-jaxb/build.xml | 30 + .../contributions/creditcard-payment-jaxb/pom.xml | 144 ++ .../creditcard/impl/CreditCardPaymentImpl.java | 46 + .../src/main/resources/CreditCardPayment.wsdl | 134 ++ .../main/resources/META-INF/sca-contribution.xml | 24 + .../src/main/resources/creditcard.composite | 33 + .../creditcard/CreditCardPaymentTestCase.java | 100 ++ .../contributions/creditcard-payment-sdo/build.xml | 31 + .../contributions/creditcard-payment-sdo/pom.xml | 130 ++ .../payment/creditcard/CreditCardPayment.java | 33 + .../creditcard/impl/CreditCardPaymentImpl.java | 46 + .../src/main/resources/CreditCardPayment.wsdl | 117 ++ .../main/resources/META-INF/sca-contribution.xml | 23 + .../src/main/resources/creditcard.composite | 33 + .../creditcard/CreditCardPaymentTestCase.java | 80 + .../creditcard-payment-webapp/build.xml | 30 + .../creditcard-payment-webapp/pom.xml | 66 + .../src/main/resources/CreditCardPayment.wsdl | 134 ++ .../src/main/webapp/META-INF/sca-contribution.xml | 23 + .../webapp/META-INF/sca-deployables/web.composite | 43 + .../src/main/webapp/WEB-INF/web.xml | 42 + .../src/main/webapp/creditcard.jsp | 71 + .../contributions/currency-corba/build.xml | 22 + .../contributions/currency-corba/pom.xml | 51 + .../main/resources/META-INF/sca-contribution.xml | 23 + .../resources/currency-converter-corba.composite | 32 + .../contributions/currency-jms/build.xml | 22 + .../contributions/currency-jms/pom.xml | 83 + .../main/resources/META-INF/sca-contribution.xml | 23 + .../resources/currency-converter-jms.composite | 37 + .../contributions/currency-jsp/build.xml | 22 + .../contributions/currency-jsp/pom.xml | 65 + .../webapp/META-INF/sca-deployables/web.composite | 34 + .../currency-jsp/src/main/webapp/WEB-INF/web.xml | 42 + .../src/main/webapp/currency-converter.jsp | 49 + .../contributions/currency-rmi/build.xml | 22 + .../contributions/currency-rmi/pom.xml | 51 + .../main/resources/META-INF/sca-contribution.xml | 23 + .../resources/currency-converter-rmi.composite | 32 + .../contributions/currency-servlet/build.xml | 25 + .../contributions/currency-servlet/pom.xml | 72 + .../servlet/CurrencyConverterServlet.java | 73 + .../webapp/META-INF/sca-deployables/web.composite | 34 + .../src/main/webapp/WEB-INF/web.xml | 52 + .../contributions/currency-ws/build.xml | 22 + .../travelsample/contributions/currency-ws/pom.xml | 57 + .../main/resources/META-INF/sca-contribution.xml | 23 + .../main/resources/currency-converter-ws.composite | 31 + .../travelsample/contributions/currency/build.xml | 22 + .../travelsample/contributions/currency/pom.xml | 57 + .../currencyconverter/CurrencyConverter.java | 33 + .../impl/CurrencyConverterImpl.java | 53 + .../main/resources/META-INF/sca-contribution.xml | 23 + .../main/resources/currency-converter.composite | 28 + .../contributions/databinding-client/build.xml | 25 + .../contributions/databinding-client/pom.xml | 48 + .../src/main/java/scatours/client/TestClient.java | 40 + .../main/resources/META-INF/sca-contribution.xml | 24 + .../src/main/resources/client.composite | 28 + .../contributions/emailgateway/build.xml | 30 + .../contributions/emailgateway/pom.xml | 137 ++ .../emailgateway/impl/EmailGatewayImpl.java | 38 + .../src/main/resources/EmailGateway.wsdl | 89 ++ .../main/resources/META-INF/sca-contribution.xml | 25 + .../src/main/resources/emailgateway.composite | 32 + .../emailgateway/EmailGatewayTestCase.java | 76 + .../client/impl/EmailGatewayClientImpl.java | 41 + .../test/resources/META-INF/sca-contribution.xml | 25 + .../src/test/resources/emailgateway-test.composite | 32 + .../contributions/feed-logger/build.xml | 22 + .../travelsample/contributions/feed-logger/pom.xml | 80 + .../com/tuscanyscatours/feedlogger/FeedLogger.java | 30 + .../feedlogger/impl/FeedLoggerImpl.java | 99 ++ .../main/resources/META-INF/sca-contribution.xml | 21 + .../src/main/resources/feed-logger.composite | 40 + .../travelsample/contributions/flight/build.xml | 25 + .../travelsample/contributions/flight/pom.xml | 62 + .../tuscanyscatours/flight/impl/FlightImpl.java | 121 ++ .../tuscanyscatours/flight/impl/FlightInfo.java | 140 ++ .../main/resources/META-INF/sca-contribution.xml | 23 + .../contributions/fullapp-bespoketrip/build.xml | 22 + .../contributions/fullapp-bespoketrip/pom.xml | 90 ++ .../main/resources/META-INF/sca-contribution.xml | 28 + .../main/resources/fullapp-bespoketrip.composite | 63 + .../contributions/fullapp-coordination/build.xml | 22 + .../contributions/fullapp-coordination/pom.xml | 90 ++ .../main/resources/META-INF/sca-contribution.xml | 30 + .../main/resources/fullapp-coordination.composite | 72 + .../contributions/fullapp-currency/build.xml | 22 + .../contributions/fullapp-currency/pom.xml | 90 ++ .../main/resources/META-INF/sca-contribution.xml | 25 + .../src/main/resources/fullapp-currency.composite | 28 + .../contributions/fullapp-packagedtrip/build.xml | 22 + .../contributions/fullapp-packagedtrip/pom.xml | 90 ++ .../main/resources/META-INF/sca-contribution.xml | 25 + .../main/resources/fullapp-packagedtrip.composite | 37 + .../contributions/fullapp-shoppingcart/build.xml | 22 + .../contributions/fullapp-shoppingcart/pom.xml | 90 ++ .../main/resources/META-INF/sca-contribution.xml | 26 + .../main/resources/fullapp-shoppingcart.composite | 36 + .../contributions/fullapp-ui/build.xml | 22 + .../travelsample/contributions/fullapp-ui/pom.xml | 90 ++ .../main/resources/META-INF/sca-contribution.xml | 28 + .../src/main/resources/fullapp-ui.composite | 58 + .../fullapp-ui/src/main/resources/scatours.html | 399 +++++ .../fullapp-ui/src/main/resources/scatours.odg | Bin 0 -> 11880 bytes .../fullapp-ui/src/main/resources/scatours.png | Bin 0 -> 16554 bytes .../fullapp-ui/src/main/resources/style.css | 135 ++ .../contributions/help-pages/build.xml | 22 + .../travelsample/contributions/help-pages/pom.xml | 71 + .../main/resources/META-INF/sca-contribution.xml | 22 + .../src/main/resources/help-pages.composite | 32 + .../main/resources/help_pages/BookingAHoliday.html | 34 + .../main/resources/help_pages/BookingAHotel.html | 34 + .../main/resources/help_pages/MakingPayments.html | 34 + .../src/main/resources/help_pages/index.html | 59 + .../travelsample/contributions/hotel/build.xml | 25 + .../travelsample/contributions/hotel/pom.xml | 62 + .../java/com/tuscanyscatours/hotel/HotelInfo.java | 118 ++ .../com/tuscanyscatours/hotel/HotelManagement.java | 24 + .../com/tuscanyscatours/hotel/impl/HotelImpl.java | 105 ++ .../main/resources/META-INF/sca-contribution.xml | 24 + .../contributions/interaction-client/build.xml | 28 + .../contributions/interaction-client/pom.xml | 72 + .../impl/InteractionConversationClientImpl.java | 73 + .../client/impl/InteractionLocalClientImpl.java | 53 + .../impl/InteractionOneWayCallbackClientImpl.java | 78 + .../client/impl/InteractionRemoteClientImpl.java | 64 + .../impl/InteractionRequestResponseClientImpl.java | 39 + .../InteractionStatefulCallbackClientImpl.java | 98 ++ .../main/resources/META-INF/sca-contribution.xml | 30 + .../src/main/resources/client.composite | 90 ++ .../interaction-service-remote/build.xml | 22 + .../interaction-service-remote/pom.xml | 57 + .../main/resources/META-INF/sca-contribution.xml | 26 + .../src/main/resources/service.composite | 48 + .../contributions/introducing-client/build.xml | 25 + .../contributions/introducing-client/pom.xml | 48 + .../java/scatours/client/impl/TestClientImpl.java | 47 + .../main/resources/META-INF/sca-contribution.xml | 24 + .../src/main/resources/client.composite | 29 + .../contributions/introducing-tours/build.xml | 22 + .../contributions/introducing-tours/pom.xml | 42 + .../src/main/java/com/goodvaluetrips/Trips.java | 26 + .../main/java/com/tuscanyscatours/Bookings.java | 26 + .../main/java/com/tuscanyscatours/Checkout.java | 28 + .../src/main/java/com/tuscanyscatours/Updates.java | 26 + .../com/tuscanyscatours/impl/ShoppingCartImpl.java | 49 + .../com/tuscanyscatours/impl/TripBookingImpl.java | 39 + .../main/resources/META-INF/sca-contribution.xml | 24 + .../src/main/resources/tours.composite | 46 + .../contributions/introducing-trips/build.xml | 22 + .../contributions/introducing-trips/pom.xml | 42 + .../src/main/java/com/goodvaluetrips/Trips.java | 26 + .../com/goodvaluetrips/impl/TripProviderImpl.java | 28 + .../main/resources/META-INF/sca-contribution.xml | 24 + .../src/main/resources/trips.composite | 30 + .../contributions/notification-corba/build.xml | 22 + .../contributions/notification-corba/pom.xml | 57 + .../main/resources/META-INF/sca-contribution.xml | 24 + .../main/resources/notification-corba.composite | 36 + .../contributions/notification-ejb/build.xml | 22 + .../contributions/notification-ejb/pom.xml | 56 + .../main/resources/META-INF/sca-contribution.xml | 24 + .../src/main/resources/notification-ejb.composite | 35 + .../contributions/notification-jms/build.xml | 22 + .../contributions/notification-jms/pom.xml | 57 + .../main/resources/META-INF/sca-contribution.xml | 24 + .../src/main/resources/notification-jms.composite | 41 + .../contributions/notification-rmi/build.xml | 22 + .../contributions/notification-rmi/pom.xml | 57 + .../main/resources/META-INF/sca-contribution.xml | 24 + .../src/main/resources/notification-rmi.composite | 36 + .../contributions/notification-ws/build.xml | 22 + .../contributions/notification-ws/pom.xml | 57 + .../main/resources/META-INF/sca-contribution.xml | 24 + .../src/main/resources/notification-ws.composite | 35 + .../contributions/notification/build.xml | 22 + .../contributions/notification/pom.xml | 57 + .../tuscanyscatours/notification/Notification.java | 26 + .../notification/impl/NotificationImpl.java | 58 + .../com/tuscanyscatours/smsgateway/SMSGateway.java | 30 + .../main/resources/META-INF/sca-contribution.xml | 24 + .../contributions/payment-bpel/build.xml | 49 + .../contributions/payment-bpel/log4j.properties | 36 + .../contributions/payment-bpel/pom.xml | 203 +++ .../src/main/resources/CreditCardPayment.wsdl | 117 ++ .../src/main/resources/EmailGateway.wsdl | 89 ++ .../main/resources/META-INF/sca-contribution.xml | 25 + .../payment-bpel/src/main/resources/Payment.wsdl | 83 + .../payment-bpel/src/main/resources/payment.bpel | 164 ++ .../src/main/resources/payment.composite | 40 + .../java/scatours/payment/PaymentTestCase.java | 81 + .../payment/client/impl/PaymentClientImpl.java | 37 + .../test/resources/META-INF/sca-contribution.xml | 24 + .../src/test/resources/payment-client.composite | 33 + .../contributions/payment-groovy/build.xml | 40 + .../contributions/payment-groovy/pom.xml | 167 ++ .../src/main/resources/CreditCardPayment.wsdl | 116 ++ .../src/main/resources/EmailGateway.wsdl | 89 ++ .../main/resources/META-INF/sca-contribution.xml | 24 + .../payment-groovy/src/main/resources/Payment.wsdl | 83 + .../src/main/resources/payment.composite | 38 + .../src/main/resources/payment/PaymentImpl.groovy | 31 + .../java/scatours/payment/PaymentTestCase.java | 82 + .../payment/client/impl/PaymentClientImpl.java | 37 + .../test/resources/META-INF/sca-contribution.xml | 23 + .../src/test/resources/payment-client.composite | 32 + .../contributions/payment-java-policy/build.xml | 35 + .../payment-java-policy/maven-eclipse.xml | 8 + .../contributions/payment-java-policy/pom.xml | 176 +++ .../com/tuscanyscatours/customer/Customer.java | 70 + .../customer/CustomerNotFoundException.java | 57 + .../tuscanyscatours/customer/CustomerRegistry.java | 39 + .../customer/impl/CustomerRegistryImpl.java | 115 ++ .../tuscanyscatours/emailgateway/EmailGateway.java | 30 + .../emailgateway/impl/EmailGatewayImpl.java | 37 + .../tuscanyscatours/payment/impl/PaymentImpl.java | 74 + .../src/main/resources/CreditCardPayment.wsdl | 132 ++ .../main/resources/META-INF/sca-contribution.xml | 24 + .../src/main/resources/Payment.wsdl | 83 + .../src/main/resources/definitions.xml | 48 + .../src/main/resources/payment.composite | 48 + .../java/scatours/payment/PaymentTestCase.java | 85 + .../contributions/payment-java/build.xml | 35 + .../contributions/payment-java/pom.xml | 167 ++ .../com/tuscanyscatours/customer/Customer.java | 70 + .../customer/CustomerNotFoundException.java | 57 + .../tuscanyscatours/customer/CustomerRegistry.java | 39 + .../customer/impl/CustomerRegistryImpl.java | 115 ++ .../tuscanyscatours/emailgateway/EmailGateway.java | 30 + .../emailgateway/impl/EmailGatewayImpl.java | 37 + .../tuscanyscatours/payment/impl/PaymentImpl.java | 69 + .../src/main/resources/CreditCardPayment.wsdl | 132 ++ .../main/resources/META-INF/sca-contribution.xml | 24 + .../payment-java/src/main/resources/Payment.wsdl | 83 + .../src/main/resources/definitions.xml | 34 + .../src/main/resources/payment.composite | 46 + .../java/scatours/payment/PaymentTestCase.java | 75 + .../contributions/payment-spring-policy/build.xml | 40 + .../contributions/payment-spring-policy/pom.xml | 189 +++ .../com/tuscanyscatours/customer/Customer.java | 70 + .../customer/CustomerNotFoundException.java | 57 + .../tuscanyscatours/customer/CustomerRegistry.java | 39 + .../customer/impl/CustomerRegistryImpl.java | 113 ++ .../emailgateway/impl/EmailGatewayImpl.java | 32 + .../tuscanyscatours/payment/impl/PaymentImpl.java | 77 + .../src/main/resources/CreditCardPayment.wsdl | 118 ++ .../src/main/resources/EmailGateway.wsdl | 89 ++ .../main/resources/META-INF/sca-contribution.xml | 24 + .../src/main/resources/Payment-context.xml | 33 + .../src/main/resources/Payment.wsdl | 83 + .../src/main/resources/definitions.xml | 35 + .../src/main/resources/payment.composite | 45 + .../java/scatours/payment/PaymentTestCase.java | 70 + .../payment/client/impl/PaymentClientImpl.java | 37 + .../test/resources/META-INF/sca-contribution.xml | 24 + .../src/test/resources/payment-client.composite | 31 + .../contributions/payment-spring-scatag/build.xml | 40 + .../contributions/payment-spring-scatag/pom.xml | 189 +++ .../emailgateway/impl/EmailGatewayImpl.java | 32 + .../tuscanyscatours/payment/impl/PaymentImpl.java | 76 + .../src/main/resources/CreditCardPayment.wsdl | 118 ++ .../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/main/resources/payment.composite | 35 + .../java/scatours/payment/PaymentTestCase.java | 71 + .../payment/client/impl/PaymentClientImpl.java | 37 + .../test/resources/META-INF/sca-contribution.xml | 24 + .../src/test/resources/payment-client.composite | 31 + .../contributions/payment-spring/build.xml | 40 + .../contributions/payment-spring/pom.xml | 189 +++ .../com/tuscanyscatours/customer/Customer.java | 70 + .../customer/CustomerNotFoundException.java | 57 + .../tuscanyscatours/customer/CustomerRegistry.java | 39 + .../customer/impl/CustomerRegistryImpl.java | 115 ++ .../emailgateway/impl/EmailGatewayImpl.java | 32 + .../tuscanyscatours/payment/impl/PaymentImpl.java | 77 + .../src/main/resources/CreditCardPayment.wsdl | 118 ++ .../src/main/resources/EmailGateway.wsdl | 89 ++ .../main/resources/META-INF/sca-contribution.xml | 24 + .../src/main/resources/Payment-context.xml | 39 + .../payment-spring/src/main/resources/Payment.wsdl | 83 + .../src/main/resources/payment.composite | 35 + .../java/scatours/payment/PaymentTestCase.java | 70 + .../payment/client/impl/PaymentClientImpl.java | 37 + .../test/resources/META-INF/sca-contribution.xml | 24 + .../src/test/resources/payment-client.composite | 31 + .../contributions/policy-client/build.xml | 30 + .../contributions/policy-client/maven-eclipse.xml | 8 + .../contributions/policy-client/pom.xml | 88 ++ .../src/main/java/scatours/client/TestClient.java | 38 + .../main/resources/META-INF/sca-contribution.xml | 24 + .../policy-client/src/main/resources/Payment.wsdl | 83 + .../src/main/resources/client.composite | 28 + .../tutorials/travelsample/contributions/pom.xml | 98 ++ .../travelsample/contributions/scatours/build.xml | 28 + .../travelsample/contributions/scatours/pom.xml | 80 + .../java/com/tuscanyscatours/SCAToursBooking.java | 31 + .../java/com/tuscanyscatours/SCAToursCart.java | 35 + .../java/com/tuscanyscatours/SCAToursSearch.java | 32 + .../com/tuscanyscatours/impl/SCAToursImpl.java | 84 + .../main/resources/META-INF/sca-contribution.xml | 27 + .../contributions/shoppingcart/build.xml | 33 + .../contributions/shoppingcart/pom.xml | 119 ++ .../tuscanyscatours/shoppingcart/CartCheckout.java | 26 + .../shoppingcart/CartInitialize.java | 30 + .../tuscanyscatours/shoppingcart/CartStore.java | 41 + .../tuscanyscatours/shoppingcart/CartUpdates.java | 30 + .../shoppingcart/impl/CartStoreImpl.java | 70 + .../shoppingcart/impl/ShoppingCartImpl.java | 104 ++ .../main/resources/META-INF/sca-contribution.xml | 25 + .../shoppingcart/src/main/resources/Payment.wsdl | 83 + .../contributions/travelcatalog/build.xml | 26 + .../contributions/travelcatalog/pom.xml | 68 + .../travelcatalog/TravelCatalogSearch.java | 32 + .../travelcatalog/impl/TravelCatalogImpl.java | 127 ++ .../main/resources/META-INF/sca-contribution.xml | 25 + .../travelsample/contributions/trip/build.xml | 26 + .../travelsample/contributions/trip/pom.xml | 83 + .../com/tuscanyscatours/trip/impl/TripImpl.java | 94 ++ .../com/tuscanyscatours/trip/impl/TripInfo.java | 140 ++ .../main/resources/META-INF/sca-contribution.xml | 23 + .../src/test/java/scatours/trip/TripTestCase.java | 68 + .../trip/src/test/resources/definitions.xml | 32 + .../trip/src/test/resources/trip.composite | 31 + .../contributions/tripbooking/build.xml | 26 + .../travelsample/contributions/tripbooking/pom.xml | 74 + .../tuscanyscatours/tripbooking/TripBooking.java | 32 + .../tripbooking/impl/TripBookingImpl.java | 91 ++ .../main/resources/META-INF/sca-contribution.xml | 26 + .../tutorials/travelsample/distribution/pom.xml | 554 +++++++ .../distribution/src/main/assembly/bin.xml | 37 + .../distribution/src/main/assembly/src.xml | 49 + .../src/main/components/bin-common.xml | 43 + .../src/main/components/bin-modules.xml | 103 ++ .../distribution/src/main/release/bin/INSTALL | 24 + .../distribution/src/main/release/bin/LICENSE | 1672 ++++++++++++++++++++ .../distribution/src/main/release/bin/NOTICE | 85 + .../tutorials/travelsample/domainconfig/build.xml | 45 + .../travelsample/domainconfig/fullapp/build.xml | 22 + .../travelsample/domainconfig/fullapp/pom.xml | 79 + .../fullapp/src/main/resources/cloud.composite | 35 + .../resources/cloud/fullapp-bespoketrip.composite | 36 + .../resources/cloud/fullapp-coordination.composite | 36 + .../resources/cloud/fullapp-creditcard.composite | 36 + .../resources/cloud/fullapp-currency.composite | 36 + .../resources/cloud/fullapp-packagedtrip.composite | 35 + .../main/resources/cloud/fullapp-payment.composite | 36 + .../resources/cloud/fullapp-shoppingcart.composite | 36 + .../src/main/resources/cloud/fullapp-ui.composite | 33 + .../fullapp/src/main/resources/domain.composite | 35 + .../src/main/resources/workspace-distribution.xml | 41 + .../fullapp/src/main/resources/workspace.xml | 41 + .../domainconfig/introducing/build.xml | 22 + .../travelsample/domainconfig/introducing/pom.xml | 79 + .../introducing/src/main/resources/cloud.composite | 26 + .../src/main/resources/cloud/ClientNode.composite | 32 + .../src/main/resources/cloud/ToursNode.composite | 32 + .../src/main/resources/cloud/TripsNode.composite | 32 + .../src/main/resources/domain.composite | 26 + .../src/main/resources/workspace-distribution.xml | 30 + .../introducing/src/main/resources/workspace.xml | 30 + .../tutorials/travelsample/domainconfig/pom.xml | 47 + .../travelsample/launchers/blog-feed/build.xml | 35 + .../travelsample/launchers/blog-feed/pom.xml | 110 ++ .../src/main/java/scatours/BlogFeedLauncher.java | 50 + .../tutorials/travelsample/launchers/build.xml | 69 + .../launchers/buildingblocks/build.xml | 35 + .../travelsample/launchers/buildingblocks/pom.xml | 130 ++ .../main/java/scatours/BuildingBlocksLauncher.java | 92 ++ .../src/main/resources/jndi.properties | 39 + .../test/java/scatours/BuildingBlocksTestCase.java | 42 + .../launchers/currency-converter-corba/build.xml | 51 + .../launchers/currency-converter-corba/pom.xml | 104 ++ .../scatours/CurrencyConverterCORBALauncher.java | 52 + .../currencyconverter/CurrencyConverter.java | 33 + .../launchers/currency-converter-jms/build.xml | 54 + .../launchers/currency-converter-jms/pom.xml | 115 ++ .../scatours/CurrencyConverterJMSLauncher.java | 45 + .../src/main/java/scatours/JMSBrokerLauncher.java | 38 + .../launchers/currency-converter-rmi/build.xml | 42 + .../launchers/currency-converter-rmi/pom.xml | 111 ++ .../currencyconverter/CurrencyConverter.java | 33 + .../scatours/CurrencyConverterRMILauncher.java | 52 + .../launchers/currency-converter-ws/build.xml | 42 + .../launchers/currency-converter-ws/pom.xml | 105 ++ .../java/scatours/CurrencyConverterWSLauncher.java | 53 + .../currencyconverter/CurrencyConverter.java | 33 + .../launchers/currency-converter/build.xml | 35 + .../launchers/currency-converter/pom.xml | 90 ++ .../java/scatours/CurrencyConverterLauncher.java | 48 + .../currencyconverter/CurrencyConverter.java | 33 + .../travelsample/launchers/databinding/build.xml | 35 + .../travelsample/launchers/databinding/pom.xml | 169 ++ .../main/java/scatours/DatabindingLauncher.java | 45 + .../travelsample/launchers/feed-logger/build.xml | 35 + .../travelsample/launchers/feed-logger/pom.xml | 111 ++ .../src/main/java/scatours/FeedLoggerLauncher.java | 44 + .../main/java/scatours/feedlogger/FeedLogger.java | 30 + .../launchers/fullapp-domain/build.xml | 54 + .../travelsample/launchers/fullapp-domain/pom.xml | 115 ++ .../java/scatours/FullAppDomainAPILauncher.java | 42 + .../main/java/scatours/FullAppDomainLauncher.java | 30 + .../travelsample/launchers/fullapp-nodes/build.xml | 37 + .../travelsample/launchers/fullapp-nodes/pom.xml | 212 +++ .../main/java/scatours/FullAppNodesLauncher.java | 78 + .../travelsample/launchers/fullapp/build.xml | 35 + .../travelsample/launchers/fullapp/pom.xml | 208 +++ .../src/main/java/scatours/FullAppLauncher.java | 67 + .../travelsample/launchers/help-pages/build.xml | 35 + .../travelsample/launchers/help-pages/pom.xml | 104 ++ .../src/main/java/scatours/HelpPagesLauncher.java | 44 + .../travelsample/launchers/interaction/build.xml | 35 + .../travelsample/launchers/interaction/pom.xml | 104 ++ .../main/java/scatours/InteractionLauncher.java | 74 + .../test/java/scatours/InteractionTestCase.java | 42 + .../launchers/introducing-client/build.xml | 44 + .../launchers/introducing-client/pom.xml | 93 ++ .../java/scatours/IntroducingClientLauncher.java | 38 + .../launchers/introducing-domain/build.xml | 54 + .../launchers/introducing-domain/pom.xml | 80 + .../scatours/IntroducingDomainAPILauncher.java | 42 + .../java/scatours/IntroducingDomainLauncher.java | 30 + .../launchers/introducing-tours/build.xml | 33 + .../launchers/introducing-tours/pom.xml | 58 + .../java/scatours/IntroducingToursLauncher.java | 30 + .../launchers/introducing-trips/build.xml | 33 + .../launchers/introducing-trips/pom.xml | 58 + .../java/scatours/IntroducingTripsLauncher.java | 30 + .../travelsample/launchers/introducing/build.xml | 35 + .../travelsample/launchers/introducing/pom.xml | 90 ++ .../main/java/scatours/IntroducingLauncher.java | 44 + .../test/java/scatours/IntroducingTestCase.java | 62 + .../travelsample/launchers/jumpstart/build.xml | 35 + .../travelsample/launchers/jumpstart/pom.xml | 90 ++ .../src/main/java/scatours/JumpstartLauncher.java | 44 + .../jumpstart/src/main/java/scatours/Trips.java | 26 + .../src/test/java/scatours/JumpstartTestCase.java | 56 + .../launchers/notification-corba/build.xml | 53 + .../launchers/notification-corba/pom.xml | 104 ++ .../java/scatours/NotificationCORBALauncher.java | 54 + .../java/scatours/notification/Notification.java | 26 + .../launchers/notification-ejb/build.xml | 42 + .../launchers/notification-ejb/pom.xml | 110 ++ .../java/scatours/NotificationEJBLauncher.java | 59 + .../java/scatours/notification/Notification.java | 26 + .../launchers/notification-jms/build.xml | 45 + .../launchers/notification-jms/pom.xml | 148 ++ .../java/scatours/NotificationJMSLauncher.java | 56 + .../java/scatours/notification/Notification.java | 26 + .../launchers/notification-rmi/build.xml | 41 + .../launchers/notification-rmi/pom.xml | 104 ++ .../com/tuscanyscatours/smsgateway/SMSGateway.java | 30 + .../java/scatours/NotificationRMILauncher.java | 54 + .../java/scatours/notification/Notification.java | 26 + .../launchers/notification-ws/build.xml | 41 + .../travelsample/launchers/notification-ws/pom.xml | 104 ++ .../main/java/scatours/NotificationWSLauncher.java | 54 + .../java/scatours/notification/Notification.java | 26 + .../travelsample/launchers/payment-bpel/build.xml | 35 + .../travelsample/launchers/payment-bpel/pom.xml | 136 ++ .../payment/MakePaymentMemberResponseType.java | 62 + .../payment/MakePaymentMemberType.java | 82 + .../com/tuscanyscatours/payment/ObjectFactory.java | 71 + .../java/com/tuscanyscatours/payment/Payment.java | 43 + .../tuscanyscatours/payment/PaymentService.java | 71 + .../com/tuscanyscatours/payment/package-info.java | 2 + .../java/scatours/payment/PaymentLauncher.java | 48 + .../launchers/payment-groovy/build.xml | 35 + .../travelsample/launchers/payment-groovy/pom.xml | 111 ++ .../tuscanyscatours/emailgateway/EmailGateway.java | 40 + .../emailgateway/EmailGatewayService.java | 71 + .../tuscanyscatours/emailgateway/EmailType.java | 118 ++ .../emailgateway/ObjectFactory.java | 79 + .../emailgateway/SendEmailResponseType.java | 62 + .../emailgateway/SendEmailType.java | 62 + .../tuscanyscatours/emailgateway/package-info.java | 2 + .../payment/MakePaymentMemberResponseType.java | 62 + .../payment/MakePaymentMemberType.java | 82 + .../com/tuscanyscatours/payment/ObjectFactory.java | 71 + .../java/com/tuscanyscatours/payment/Payment.java | 43 + .../tuscanyscatours/payment/PaymentService.java | 71 + .../com/tuscanyscatours/payment/package-info.java | 2 + .../java/scatours/payment/PaymentLauncher.java | 47 + .../launchers/payment-java-policy/build.xml | 35 + .../launchers/payment-java-policy/pom.xml | 104 ++ .../payment/MakePaymentMemberResponseType.java | 62 + .../payment/MakePaymentMemberType.java | 82 + .../com/tuscanyscatours/payment/ObjectFactory.java | 71 + .../java/com/tuscanyscatours/payment/Payment.java | 43 + .../tuscanyscatours/payment/PaymentService.java | 71 + .../com/tuscanyscatours/payment/package-info.java | 2 + .../java/scatours/payment/PaymentLauncher.java | 47 + .../travelsample/launchers/payment-java/build.xml | 35 + .../travelsample/launchers/payment-java/pom.xml | 104 ++ .../payment/MakePaymentMemberResponseType.java | 62 + .../payment/MakePaymentMemberType.java | 82 + .../com/tuscanyscatours/payment/ObjectFactory.java | 71 + .../java/com/tuscanyscatours/payment/Payment.java | 43 + .../tuscanyscatours/payment/PaymentService.java | 71 + .../com/tuscanyscatours/payment/package-info.java | 2 + .../java/scatours/payment/PaymentLauncher.java | 47 + .../launchers/payment-spring-scatag/build.xml | 35 + .../launchers/payment-spring-scatag/pom.xml | 118 ++ .../payment/MakePaymentMemberResponseType.java | 62 + .../payment/MakePaymentMemberType.java | 82 + .../com/tuscanyscatours/payment/ObjectFactory.java | 71 + .../java/com/tuscanyscatours/payment/Payment.java | 43 + .../tuscanyscatours/payment/PaymentService.java | 71 + .../com/tuscanyscatours/payment/package-info.java | 2 + .../java/scatours/payment/PaymentLauncher.java | 47 + .../launchers/payment-spring/build.xml | 35 + .../travelsample/launchers/payment-spring/pom.xml | 118 ++ .../payment/MakePaymentMemberResponseType.java | 62 + .../payment/MakePaymentMemberType.java | 82 + .../com/tuscanyscatours/payment/ObjectFactory.java | 71 + .../java/com/tuscanyscatours/payment/Payment.java | 43 + .../tuscanyscatours/payment/PaymentService.java | 71 + .../com/tuscanyscatours/payment/package-info.java | 2 + .../java/scatours/payment/PaymentLauncher.java | 47 + .../travelsample/launchers/policy/build.xml | 35 + .../launchers/policy/maven-eclipse.xml | 8 + .../travelsample/launchers/policy/pom.xml | 111 ++ .../src/main/java/scatours/PolicyLauncher.java | 49 + .../trunk/tutorials/travelsample/launchers/pom.xml | 77 + sca-java-1.x/trunk/tutorials/travelsample/pom.xml | 106 ++ .../tutorials/travelsample/services/build.xml | 49 + .../services/creditcard-payment-jaxws/build.xml | 31 + .../services/creditcard-payment-jaxws/pom.xml | 59 + .../scatours/creditcard/CreditCardService.java | 34 + .../creditcard/CreditCardServiceBootstrap.java | 31 + .../scatours/creditcard/CreditCardServiceImpl.java | 34 + .../trunk/tutorials/travelsample/services/pom.xml | 51 + .../services/smsgateway-corba/build.xml | 45 + .../travelsample/services/smsgateway-corba/pom.xml | 85 + .../SMSGatewayCORBAServiceBootstrap.java | 62 + .../scatours/smsgateway/SMSGatewayServant.java | 30 + .../src/main/resources/sms-gateway.idl | 26 + .../travelsample/services/smsgateway-ejb/build.xml | 34 + .../travelsample/services/smsgateway-ejb/pom.xml | 101 ++ .../com/tuscanyscatours/smsgateway/SMSGateway.java | 30 + .../smsgateway/SMSGatewayEJBServiceBootstrap.java | 45 + .../tuscanyscatours/smsgateway/SMSGatewayImpl.java | 33 + .../src/main/resources/META-INF/ejb-jar.xml | 2 + .../services/smsgateway-jaxws/build.xml | 31 + .../travelsample/services/smsgateway-jaxws/pom.xml | 59 + .../smsgateway/SMSGatewayService.java | 32 + .../smsgateway/SMSGatewayServiceBootstrap.java | 31 + .../smsgateway/SMSGatewayServiceImpl.java | 33 + .../travelsample/services/smsgateway-jms/build.xml | 47 + .../travelsample/services/smsgateway-jms/pom.xml | 104 ++ .../src/main/java/scatours/JMSBrokerLauncher.java | 38 + .../main/java/scatours/smsgateway/SMSGateway.java | 30 + .../java/scatours/smsgateway/SMSGatewayImpl.java | 126 ++ .../smsgateway/SMSGatewayJMSServiceBootstrap.java | 40 + .../travelsample/services/smsgateway-rmi/build.xml | 30 + .../travelsample/services/smsgateway-rmi/pom.xml | 59 + .../com/tuscanyscatours/smsgateway/SMSGateway.java | 30 + .../tuscanyscatours/smsgateway/SMSGatewayImpl.java | 39 + .../smsgateway/SMSGatewayRMIServiceBootstrap.java | 40 + .../tutorials/travelsample/testdomain/build.xml | 42 + .../tutorials/travelsample/testdomain/pom.xml | 58 + .../tutorials/travelsample/travel-scenario.odg | Bin 0 -> 22472 bytes .../travelsample/travel-scenariotemplate.odg | Bin 0 -> 13467 bytes .../trunk/tutorials/travelsample/util/build.xml | 44 + .../travelsample/util/launcher-common/build.xml | 22 + .../travelsample/util/launcher-common/pom.xml | 58 + .../main/java/scatours/launcher/LauncherUtil.java | 82 + .../trunk/tutorials/travelsample/util/pom.xml | 45 + 953 files changed, 59116 insertions(+) create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/README create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/clients/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-corba/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-corba/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-corba/src/main/java/scatours/CurrencyConverterCORBAClient.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-corba/src/main/resources/currency-converter.idl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-jms/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-jms/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-jms/src/main/java/scatours/CurrencyConverterJMSClient.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-rmi/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-rmi/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-rmi/src/main/java/com/tuscanyscatours/currencyconverter/CurrencyConverter.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-rmi/src/main/java/scatours/CurrencyConverterRMIClient.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-ws-jaxws/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-ws-jaxws/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-ws-jaxws/src/main/java/scatours/CurrencyConverterWSClient.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-ws-jaxws/src/main/resources/wsdl/CurrencyConverter.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/clients/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/META-INF/MANIFEST.MF create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/OSGI-INF/sca/bundle.componentType create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/OSGI-INF/sca/bundle.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/main/java/scatours/currency/CurrencyConverter.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/main/java/scatours/currency/impl/CurrencyConverterImpl.java create 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 create 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 create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/main/resources/CreditCardPayment.wsdl create 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 create 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 create 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 create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/src/main/resources/CreditCardPayment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/src/main/webapp/WEB-INF/web.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/src/main/webapp/WEB-INF/web.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/src/main/webapp/creditcard.jsp create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/META-INF/MANIFEST.MF create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/OSGI-INF/sca/bundle.componentType create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/OSGI-INF/sca/bundle.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/src/main/java/scatours/currency/CurrencyConverter.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/src/main/java/scatours/currency/impl/CurrencyConverterActivator.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/src/main/java/scatours/currency/impl/CurrencyConverterImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/client/CurrencyConverterClient.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/client/TripClient.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/currencyconverter/CurrencyConverter.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/currencyconverter/CurrencyConverterImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/trip/Trip.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/trip/TripImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/resources/currencyconverter.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/resources/trip.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/src/main/java/scatours/client/TestClient.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/src/main/resources/client.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/src/main/java/com/goodvaluetrips/TripProvider.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/src/main/java/com/goodvaluetrips/Trips.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/src/main/resources/trips.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/src/main/java/scatours/LaunchNode.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/src/main/resources/scatours.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/src/test/java/scatours/NodeTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/src/main/java/scatours/LaunchNode.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/src/main/resources/scatours.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/src/test/java/scatours/NodeTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/goodvaluetrips/Trips.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/Bookings.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/Checkout.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/ShoppingCart.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/TripBooking.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/Updates.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/resources/tours.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-03/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/node/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/node/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/node/src/main/java/scatours/LaunchNode.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/scatours.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/scatours.html create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/scatours.odg create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/scatours.png create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/style.css create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/node/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/node/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/node/src/main/java/scatours/LaunchBPELExampleNode.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/node/src/main/java/scatours/LaunchSpringExampleNode.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/log4j.properties create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/CreditCardPayment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/EmailGateway.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/Payment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/payment.bpel create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/test/java/scatours/payment/PaymentTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/test/java/scatours/payment/client/PaymentClientImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/test/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/test/resources/payment.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/CreditCardPayment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/EmailGateway.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/Payment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/payment.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/payment/PaymentImpl.groovy create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/test/java/payment/PaymentTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/test/java/payment/client/PaymentClientImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/test/java/payment/creditcard/CreditCardPaymentImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/test/java/scatours/emailgateway/EmailGatewayImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/java/payment/PaymentImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/java/scatours/emailgateway/EmailGatewayImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/CreditCardPayment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/EmailGateway.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/Payment-context.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/Payment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/test/java/payment/PaymentTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/test/java/payment/client/PaymentClientImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/test/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/test/resources/payment.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/java/payment/PaymentImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/java/scatours/emailgateway/EmailGatewayImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/CreditCardPayment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/EmailGateway.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/Payment-context.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/Payment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/test/java/payment/PaymentTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/test/java/payment/client/PaymentClientImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/test/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/test/resources/payment.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/scatours.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/scatours.html create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/scatours.odg create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/scatours.png create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/style.css create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/scatours.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/scatours.html create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/scatours.odg create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/scatours.png create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/style.css create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-07/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/META-INF/sca-deployables/scatours.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/WEB-INF/web.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.html create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.odg create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.png create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/style.css create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/java/payment/creditcard/CreditCardPayment.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/java/payment/creditcard/impl/CreditCardPaymentImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/resources/CreditCardPayment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/resources/creditcard.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/test/java/payment/creditcard/CreditCardPaymentTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/node/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/node/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/node/src/main/java/scatours/LaunchNode.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/main/java/payment/Payment.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/main/java/payment/PaymentImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/main/resources/CreditCardPayment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/test/java/payment/PaymentTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/test/java/payment/creditcard/CreditCardPaymentImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/test/resources/payment.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/scatours.odg create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/scatours.png create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/src/main/resources/scatours.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/src/main/resources/scatours.html create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/src/main/resources/style.css create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/.classpath create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/.project create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/AndroidManifest.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/default.properties create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/gen/scatours/android/R.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/res/drawable/icon.png create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/res/layout/search.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/res/layout/search_results.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/res/values/strings.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/src/scatours/SCAToursSearch.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/src/scatours/SCAToursSearchProxy.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/src/scatours/android/TripSearch.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/src/scatours/android/TripSearchResults.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/src/scatours/common/TripItem.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/src/scatours/common/TripLeg.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/src/scatours/jsonrpc/JSONRpc.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/calendar-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/calendar-contribution/src/main/java/calendar/Calendar.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/calendar-contribution/src/main/java/calendar/CalendarImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/calendar-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/calendar-contribution/src/main/resources/calendar.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/calendar-contribution/src/test/java/calendar/CalendarTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/calendar-contribution/src/test/resources/calendar.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/car-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/car-contribution/src/main/java/scatours/car/CarImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/car-contribution/src/main/java/scatours/car/CarInfo.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/car-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/common-contribution/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/common-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/common-contribution/src/main/java/scatours/common/Book.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/common-contribution/src/main/java/scatours/common/Search.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/common-contribution/src/main/java/scatours/common/SearchCallback.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/common-contribution/src/main/java/scatours/common/TripItem.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/common-contribution/src/main/java/scatours/common/TripLeg.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/common-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/creditcard-payment-jaxb-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/creditcard-payment-jaxb-contribution/src/main/java/payment/creditcard/CreditCardPaymentImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/creditcard-payment-jaxb-contribution/src/main/resources/CreditCardPayment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/creditcard-payment-jaxb-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/creditcard-payment-jaxb-contribution/src/test/java/payment/creditcard/CreditCardPaymentTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/creditcard-payment-jaxb-contribution/src/test/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/creditcard-payment-jaxb-contribution/src/test/resources/creditcard.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/currency-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/currency-contribution/src/main/java/scatours/currencyconverter/CurrencyConverter.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/currency-contribution/src/main/java/scatours/currencyconverter/CurrencyConverterImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/currency-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/emailgateway-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/emailgateway-contribution/src/main/java/scatours/emailgateway/EmailGatewayImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/emailgateway-contribution/src/main/resources/EmailGateway.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/emailgateway-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/emailgateway-contribution/src/test/java/scatours/emailgateway/EmailGatewayTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/emailgateway-contribution/src/test/java/scatours/emailgateway/client/EmailGatewayClientImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/emailgateway-contribution/src/test/resources/EmailGatewayImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/emailgateway-contribution/src/test/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/emailgateway-contribution/src/test/resources/emailgateway.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/flight-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/flight-contribution/src/main/java/scatours/flight/FlightImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/flight-contribution/src/main/java/scatours/flight/FlightInfo.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/flight-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/hotel-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/hotel-contribution/src/main/java/scatours/hotel/HotelImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/hotel-contribution/src/main/java/scatours/hotel/HotelInfo.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/hotel-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/src/main/java/payment/PaymentImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/src/main/java/payment/creditcard/CreditCardPaymentImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/src/main/java/scatours/customer/Customer.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/src/main/java/scatours/customer/CustomerNotFoundException.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/src/main/java/scatours/customer/CustomerRegistry.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/src/main/java/scatours/customer/CustomerRegistryImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/src/main/java/scatours/emailgateway/EmailGateway.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/src/main/java/scatours/emailgateway/EmailGatewayImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/src/main/resources/CreditCardPayment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/src/main/resources/Payment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/src/main/resources/definitions.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/src/main/resources/payment.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/payment-java-contribution/src/test/java/payment/PaymentTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/scatours-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/scatours-contribution/src/main/java/scatours/SCAToursBooking.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/scatours-contribution/src/main/java/scatours/SCAToursCart.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/scatours-contribution/src/main/java/scatours/SCAToursImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/scatours-contribution/src/main/java/scatours/SCAToursSearch.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/scatours-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/shoppingcart-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/shoppingcart-contribution/src/main/java/scatours/shoppingcart/ShoppingCart.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/shoppingcart-contribution/src/main/java/scatours/shoppingcart/ShoppingCartImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/shoppingcart-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/shoppingcart-contribution/src/main/resources/Payment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/travelcatalog-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/travelcatalog-contribution/src/main/java/scatours/travelcatalog/TravelCatalogImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/travelcatalog-contribution/src/main/java/scatours/travelcatalog/TravelCatalogSearch.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/travelcatalog-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/trip-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/trip-contribution/src/main/java/scatours/trip/TripImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/trip-contribution/src/main/java/scatours/trip/TripInfo.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/trip-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/tripbooking-contribution/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/tripbooking-contribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/tripbooking-contribution/src/main/java/scatours/tripbooking/TripBooking.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/tripbooking-contribution/src/main/java/scatours/tripbooking/TripBookingImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contrib/shared-contributions/tripbooking-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/blog-feed/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/blog-feed/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/blog-feed/src/main/java/com/tuscanyscatours/blog/BlogPost.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/blog-feed/src/main/java/com/tuscanyscatours/blog/feed/impl/AtomBlogFeedImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/blog-feed/src/main/java/com/tuscanyscatours/blog/feed/impl/BaseBlogFeedImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/blog-feed/src/main/java/com/tuscanyscatours/blog/feed/impl/GenericBlogFeedImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/blog-feed/src/main/java/com/tuscanyscatours/blog/feed/impl/RSSBlogFeedImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/blog-feed/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/blog-feed/src/main/resources/blog-feed.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks-client/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks-client/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks-client/src/main/java/scatours/Bookings.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks-client/src/main/java/scatours/Checkout.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks-client/src/main/java/scatours/impl/ApplClientImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks-client/src/main/java/scatours/impl/ToursClientImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks-client/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks-client/src/main/resources/tours-appl-client.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks-client/src/main/resources/tours-impl-client.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks-client/src/main/resources/tours-impl-include-client.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks-client/src/test/java/scatours/BuildingBlocksApplTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks-client/src/test/java/scatours/BuildingBlocksImplIncludeTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks-client/src/test/java/scatours/BuildingBlocksImplTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks-client/src/test/resources/jndi.properties create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks/src/main/java/com/budgettours/Tours.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks/src/main/java/com/budgettours/impl/TourProviderImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks/src/main/java/com/goodvaluetrips/Trips.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks/src/main/java/com/tuscanyscatours/Bookings.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks/src/main/java/com/tuscanyscatours/Checkout.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks/src/main/java/com/tuscanyscatours/Updates.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks/src/main/java/com/tuscanyscatours/impl/ShoppingCartImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks/src/main/java/com/tuscanyscatours/impl/TripBookingImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks/src/main/java/scatours/impl/TripProviderImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks/src/main/resources/tours-appl.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks/src/main/resources/tours-impl-include.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks/src/main/resources/tours-impl.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks/src/main/resources/tours.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks/src/test/java/scatours/BuildingBlocksImplIncludeTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/buildingblocks/src/test/java/scatours/BuildingBlocksImplTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/calendar/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/calendar/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/calendar/src/main/java/com/tuscanyscatours/calendar/Calendar.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/calendar/src/main/java/com/tuscanyscatours/calendar/impl/CalendarImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/calendar/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/calendar/src/test/java/scatours/calendar/CalendarTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/calendar/src/test/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/calendar/src/test/resources/calendar.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/car/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/car/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/car/src/main/java/com/tuscanyscatours/car/impl/CarImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/car/src/main/java/com/tuscanyscatours/car/impl/CarInfo.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/car/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/common/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/common/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/common/src/main/java/com/tuscanyscatours/common/Book.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/common/src/main/java/com/tuscanyscatours/common/Search.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/common/src/main/java/com/tuscanyscatours/common/SearchCallback.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/common/src/main/java/com/tuscanyscatours/common/TripItem.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/common/src/main/java/com/tuscanyscatours/common/TripLeg.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/common/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-jaxb-policy/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-jaxb-policy/maven-eclipse.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-jaxb-policy/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-jaxb-policy/src/main/java/com/tuscanyscatours/payment/creditcard/impl/CreditCardPaymentImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-jaxb-policy/src/main/resources/CreditCardPayment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-jaxb-policy/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-jaxb-policy/src/main/resources/creditcard.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-jaxb-policy/src/main/resources/definitions.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-jaxb-policy/src/test/java/scatours/payment/creditcard/CreditCardPaymentTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-jaxb/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-jaxb/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-jaxb/src/main/java/com/tuscanyscatours/payment/creditcard/impl/CreditCardPaymentImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-jaxb/src/main/resources/CreditCardPayment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-jaxb/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-jaxb/src/main/resources/creditcard.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-jaxb/src/test/java/scatours/payment/creditcard/CreditCardPaymentTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-sdo/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-sdo/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-sdo/src/main/java/com/tuscanyscatours/payment/creditcard/CreditCardPayment.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-sdo/src/main/java/com/tuscanyscatours/payment/creditcard/impl/CreditCardPaymentImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-sdo/src/main/resources/CreditCardPayment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-sdo/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-sdo/src/main/resources/creditcard.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-sdo/src/test/java/scatours/payment/creditcard/CreditCardPaymentTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-webapp/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-webapp/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-webapp/src/main/resources/CreditCardPayment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-webapp/src/main/webapp/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-webapp/src/main/webapp/META-INF/sca-deployables/web.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-webapp/src/main/webapp/WEB-INF/web.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/creditcard-payment-webapp/src/main/webapp/creditcard.jsp create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-corba/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-corba/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-corba/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-corba/src/main/resources/currency-converter-corba.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-jms/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-jms/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-jms/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-jms/src/main/resources/currency-converter-jms.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-jsp/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-jsp/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-jsp/src/main/webapp/META-INF/sca-deployables/web.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-jsp/src/main/webapp/WEB-INF/web.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-jsp/src/main/webapp/currency-converter.jsp create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-rmi/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-rmi/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-rmi/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-rmi/src/main/resources/currency-converter-rmi.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-servlet/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-servlet/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-servlet/src/main/java/com/tuscanyscatours/currencyconverter/servlet/CurrencyConverterServlet.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-servlet/src/main/webapp/META-INF/sca-deployables/web.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-servlet/src/main/webapp/WEB-INF/web.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-ws/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-ws/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-ws/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency-ws/src/main/resources/currency-converter-ws.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency/src/main/java/com/tuscanyscatours/currencyconverter/CurrencyConverter.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency/src/main/java/com/tuscanyscatours/currencyconverter/impl/CurrencyConverterImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/currency/src/main/resources/currency-converter.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/databinding-client/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/databinding-client/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/databinding-client/src/main/java/scatours/client/TestClient.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/databinding-client/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/databinding-client/src/main/resources/client.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/emailgateway/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/emailgateway/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/emailgateway/src/main/java/com/tuscanyscatours/emailgateway/impl/EmailGatewayImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/emailgateway/src/main/resources/EmailGateway.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/emailgateway/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/emailgateway/src/main/resources/emailgateway.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/emailgateway/src/test/java/scatours/emailgateway/EmailGatewayTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/emailgateway/src/test/java/scatours/emailgateway/client/impl/EmailGatewayClientImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/emailgateway/src/test/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/emailgateway/src/test/resources/emailgateway-test.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/feed-logger/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/feed-logger/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/feed-logger/src/main/java/com/tuscanyscatours/feedlogger/FeedLogger.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/feed-logger/src/main/java/com/tuscanyscatours/feedlogger/impl/FeedLoggerImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/feed-logger/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/feed-logger/src/main/resources/feed-logger.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/flight/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/flight/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/flight/src/main/java/com/tuscanyscatours/flight/impl/FlightImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/flight/src/main/java/com/tuscanyscatours/flight/impl/FlightInfo.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/flight/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/fullapp-bespoketrip/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/fullapp-bespoketrip/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/fullapp-bespoketrip/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/fullapp-bespoketrip/src/main/resources/fullapp-bespoketrip.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/fullapp-coordination/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/fullapp-coordination/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/fullapp-coordination/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/fullapp-coordination/src/main/resources/fullapp-coordination.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/fullapp-currency/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/fullapp-currency/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/fullapp-currency/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/fullapp-currency/src/main/resources/fullapp-currency.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/fullapp-packagedtrip/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/fullapp-packagedtrip/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/fullapp-packagedtrip/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/fullapp-packagedtrip/src/main/resources/fullapp-packagedtrip.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/fullapp-shoppingcart/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/fullapp-shoppingcart/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/fullapp-shoppingcart/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/fullapp-shoppingcart/src/main/resources/fullapp-shoppingcart.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/fullapp-ui/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/fullapp-ui/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/fullapp-ui/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/fullapp-ui/src/main/resources/fullapp-ui.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/fullapp-ui/src/main/resources/scatours.html create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/fullapp-ui/src/main/resources/scatours.odg create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/fullapp-ui/src/main/resources/scatours.png create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/fullapp-ui/src/main/resources/style.css create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/help-pages/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/help-pages/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/help-pages/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/help-pages/src/main/resources/help-pages.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/help-pages/src/main/resources/help_pages/BookingAHoliday.html create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/help-pages/src/main/resources/help_pages/BookingAHotel.html create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/help-pages/src/main/resources/help_pages/MakingPayments.html create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/help-pages/src/main/resources/help_pages/index.html create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/hotel/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/hotel/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/hotel/src/main/java/com/tuscanyscatours/hotel/HotelInfo.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/hotel/src/main/java/com/tuscanyscatours/hotel/HotelManagement.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/hotel/src/main/java/com/tuscanyscatours/hotel/impl/HotelImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/hotel/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/interaction-client/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/interaction-client/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/interaction-client/src/main/java/scatours/client/impl/InteractionConversationClientImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/interaction-client/src/main/java/scatours/client/impl/InteractionLocalClientImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/interaction-client/src/main/java/scatours/client/impl/InteractionOneWayCallbackClientImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/interaction-client/src/main/java/scatours/client/impl/InteractionRemoteClientImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/interaction-client/src/main/java/scatours/client/impl/InteractionRequestResponseClientImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/interaction-client/src/main/java/scatours/client/impl/InteractionStatefulCallbackClientImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/interaction-client/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/interaction-client/src/main/resources/client.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/interaction-service-remote/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/interaction-service-remote/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/interaction-service-remote/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/interaction-service-remote/src/main/resources/service.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/introducing-client/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/introducing-client/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/introducing-client/src/main/java/scatours/client/impl/TestClientImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/introducing-client/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/introducing-client/src/main/resources/client.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/introducing-tours/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/introducing-tours/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/introducing-tours/src/main/java/com/goodvaluetrips/Trips.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/introducing-tours/src/main/java/com/tuscanyscatours/Bookings.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/introducing-tours/src/main/java/com/tuscanyscatours/Checkout.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/introducing-tours/src/main/java/com/tuscanyscatours/Updates.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/introducing-tours/src/main/java/com/tuscanyscatours/impl/ShoppingCartImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/introducing-tours/src/main/java/com/tuscanyscatours/impl/TripBookingImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/introducing-tours/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/introducing-tours/src/main/resources/tours.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/introducing-trips/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/introducing-trips/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/introducing-trips/src/main/java/com/goodvaluetrips/Trips.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/introducing-trips/src/main/java/com/goodvaluetrips/impl/TripProviderImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/introducing-trips/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/introducing-trips/src/main/resources/trips.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/notification-corba/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/notification-corba/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/notification-corba/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/notification-corba/src/main/resources/notification-corba.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/notification-ejb/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/notification-ejb/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/notification-ejb/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/notification-ejb/src/main/resources/notification-ejb.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/notification-jms/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/notification-jms/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/notification-jms/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/notification-jms/src/main/resources/notification-jms.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/notification-rmi/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/notification-rmi/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/notification-rmi/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/notification-rmi/src/main/resources/notification-rmi.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/notification-ws/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/notification-ws/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/notification-ws/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/notification-ws/src/main/resources/notification-ws.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/notification/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/notification/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/notification/src/main/java/com/tuscanyscatours/notification/Notification.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/notification/src/main/java/com/tuscanyscatours/notification/impl/NotificationImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/notification/src/main/java/com/tuscanyscatours/smsgateway/SMSGateway.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/notification/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-bpel/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-bpel/log4j.properties create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-bpel/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-bpel/src/main/resources/CreditCardPayment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-bpel/src/main/resources/EmailGateway.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-bpel/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-bpel/src/main/resources/Payment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-bpel/src/main/resources/payment.bpel create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-bpel/src/main/resources/payment.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-bpel/src/test/java/scatours/payment/PaymentTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-bpel/src/test/java/scatours/payment/client/impl/PaymentClientImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-bpel/src/test/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-bpel/src/test/resources/payment-client.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-groovy/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-groovy/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-groovy/src/main/resources/CreditCardPayment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-groovy/src/main/resources/EmailGateway.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-groovy/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-groovy/src/main/resources/Payment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-groovy/src/main/resources/payment.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-groovy/src/main/resources/payment/PaymentImpl.groovy create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-groovy/src/test/java/scatours/payment/PaymentTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-groovy/src/test/java/scatours/payment/client/impl/PaymentClientImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-groovy/src/test/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-groovy/src/test/resources/payment-client.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java-policy/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java-policy/maven-eclipse.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java-policy/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java-policy/src/main/java/com/tuscanyscatours/customer/Customer.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java-policy/src/main/java/com/tuscanyscatours/customer/CustomerNotFoundException.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java-policy/src/main/java/com/tuscanyscatours/customer/CustomerRegistry.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java-policy/src/main/java/com/tuscanyscatours/customer/impl/CustomerRegistryImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java-policy/src/main/java/com/tuscanyscatours/emailgateway/EmailGateway.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java-policy/src/main/java/com/tuscanyscatours/emailgateway/impl/EmailGatewayImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java-policy/src/main/java/com/tuscanyscatours/payment/impl/PaymentImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java-policy/src/main/resources/CreditCardPayment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java-policy/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java-policy/src/main/resources/Payment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java-policy/src/main/resources/definitions.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java-policy/src/main/resources/payment.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java-policy/src/test/java/scatours/payment/PaymentTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java/src/main/java/com/tuscanyscatours/customer/Customer.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java/src/main/java/com/tuscanyscatours/customer/CustomerNotFoundException.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java/src/main/java/com/tuscanyscatours/customer/CustomerRegistry.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java/src/main/java/com/tuscanyscatours/customer/impl/CustomerRegistryImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java/src/main/java/com/tuscanyscatours/emailgateway/EmailGateway.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java/src/main/java/com/tuscanyscatours/emailgateway/impl/EmailGatewayImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java/src/main/java/com/tuscanyscatours/payment/impl/PaymentImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java/src/main/resources/CreditCardPayment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java/src/main/resources/Payment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java/src/main/resources/definitions.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java/src/main/resources/payment.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-java/src/test/java/scatours/payment/PaymentTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-policy/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-policy/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-policy/src/main/java/com/tuscanyscatours/customer/Customer.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-policy/src/main/java/com/tuscanyscatours/customer/CustomerNotFoundException.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-policy/src/main/java/com/tuscanyscatours/customer/CustomerRegistry.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-policy/src/main/java/com/tuscanyscatours/customer/impl/CustomerRegistryImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-policy/src/main/java/com/tuscanyscatours/emailgateway/impl/EmailGatewayImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-policy/src/main/java/com/tuscanyscatours/payment/impl/PaymentImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-policy/src/main/resources/CreditCardPayment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-policy/src/main/resources/EmailGateway.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-policy/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-policy/src/main/resources/Payment-context.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-policy/src/main/resources/Payment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-policy/src/main/resources/definitions.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-policy/src/main/resources/payment.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-policy/src/test/java/scatours/payment/PaymentTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-policy/src/test/java/scatours/payment/client/impl/PaymentClientImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-policy/src/test/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-policy/src/test/resources/payment-client.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-scatag/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-scatag/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-scatag/src/main/java/com/tuscanyscatours/emailgateway/impl/EmailGatewayImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-scatag/src/main/java/com/tuscanyscatours/payment/impl/PaymentImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-scatag/src/main/resources/CreditCardPayment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-scatag/src/main/resources/EmailGateway.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-scatag/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-scatag/src/main/resources/Payment-context.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-scatag/src/main/resources/Payment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-scatag/src/main/resources/payment.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-scatag/src/test/java/scatours/payment/PaymentTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-scatag/src/test/java/scatours/payment/client/impl/PaymentClientImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-scatag/src/test/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring-scatag/src/test/resources/payment-client.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring/src/main/java/com/tuscanyscatours/customer/Customer.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring/src/main/java/com/tuscanyscatours/customer/CustomerNotFoundException.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring/src/main/java/com/tuscanyscatours/customer/CustomerRegistry.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring/src/main/java/com/tuscanyscatours/customer/impl/CustomerRegistryImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring/src/main/java/com/tuscanyscatours/emailgateway/impl/EmailGatewayImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring/src/main/java/com/tuscanyscatours/payment/impl/PaymentImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring/src/main/resources/CreditCardPayment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring/src/main/resources/EmailGateway.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring/src/main/resources/Payment-context.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring/src/main/resources/Payment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring/src/main/resources/payment.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring/src/test/java/scatours/payment/PaymentTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring/src/test/java/scatours/payment/client/impl/PaymentClientImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring/src/test/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/payment-spring/src/test/resources/payment-client.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/policy-client/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/policy-client/maven-eclipse.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/policy-client/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/policy-client/src/main/java/scatours/client/TestClient.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/policy-client/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/policy-client/src/main/resources/Payment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/policy-client/src/main/resources/client.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/scatours/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/scatours/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/scatours/src/main/java/com/tuscanyscatours/SCAToursBooking.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/scatours/src/main/java/com/tuscanyscatours/SCAToursCart.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/scatours/src/main/java/com/tuscanyscatours/SCAToursSearch.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/scatours/src/main/java/com/tuscanyscatours/impl/SCAToursImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/scatours/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/shoppingcart/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/shoppingcart/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/shoppingcart/src/main/java/com/tuscanyscatours/shoppingcart/CartCheckout.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/shoppingcart/src/main/java/com/tuscanyscatours/shoppingcart/CartInitialize.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/shoppingcart/src/main/java/com/tuscanyscatours/shoppingcart/CartStore.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/shoppingcart/src/main/java/com/tuscanyscatours/shoppingcart/CartUpdates.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/shoppingcart/src/main/java/com/tuscanyscatours/shoppingcart/impl/CartStoreImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/shoppingcart/src/main/java/com/tuscanyscatours/shoppingcart/impl/ShoppingCartImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/shoppingcart/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/shoppingcart/src/main/resources/Payment.wsdl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/travelcatalog/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/travelcatalog/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/travelcatalog/src/main/java/com/tuscanyscatours/travelcatalog/TravelCatalogSearch.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/travelcatalog/src/main/java/com/tuscanyscatours/travelcatalog/impl/TravelCatalogImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/travelcatalog/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/trip/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/trip/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/trip/src/main/java/com/tuscanyscatours/trip/impl/TripImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/trip/src/main/java/com/tuscanyscatours/trip/impl/TripInfo.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/trip/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/trip/src/test/java/scatours/trip/TripTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/trip/src/test/resources/definitions.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/trip/src/test/resources/trip.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/tripbooking/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/tripbooking/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/tripbooking/src/main/java/com/tuscanyscatours/tripbooking/TripBooking.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/tripbooking/src/main/java/com/tuscanyscatours/tripbooking/impl/TripBookingImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/contributions/tripbooking/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/distribution/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main/assembly/bin.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main/assembly/src.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main/components/bin-common.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main/components/bin-modules.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main/release/bin/INSTALL create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main/release/bin/LICENSE create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/distribution/src/main/release/bin/NOTICE create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/domainconfig/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/domainconfig/fullapp/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/domainconfig/fullapp/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/domainconfig/fullapp/src/main/resources/cloud.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-bespoketrip.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-coordination.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-creditcard.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-currency.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-packagedtrip.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-payment.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-shoppingcart.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/domainconfig/fullapp/src/main/resources/cloud/fullapp-ui.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/domainconfig/fullapp/src/main/resources/domain.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/domainconfig/fullapp/src/main/resources/workspace-distribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/domainconfig/fullapp/src/main/resources/workspace.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/domainconfig/introducing/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/domainconfig/introducing/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/domainconfig/introducing/src/main/resources/cloud.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/domainconfig/introducing/src/main/resources/cloud/ClientNode.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/domainconfig/introducing/src/main/resources/cloud/ToursNode.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/domainconfig/introducing/src/main/resources/cloud/TripsNode.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/domainconfig/introducing/src/main/resources/domain.composite create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/domainconfig/introducing/src/main/resources/workspace-distribution.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/domainconfig/introducing/src/main/resources/workspace.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/domainconfig/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/blog-feed/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/blog-feed/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/blog-feed/src/main/java/scatours/BlogFeedLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/buildingblocks/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/buildingblocks/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/buildingblocks/src/main/java/scatours/BuildingBlocksLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/buildingblocks/src/main/resources/jndi.properties create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/buildingblocks/src/test/java/scatours/BuildingBlocksTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/currency-converter-corba/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/currency-converter-corba/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/currency-converter-corba/src/main/java/scatours/CurrencyConverterCORBALauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/currency-converter-corba/src/main/java/scatours/currencyconverter/CurrencyConverter.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/currency-converter-jms/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/currency-converter-jms/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/currency-converter-jms/src/main/java/scatours/CurrencyConverterJMSLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/currency-converter-jms/src/main/java/scatours/JMSBrokerLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/currency-converter-rmi/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/currency-converter-rmi/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/currency-converter-rmi/src/main/java/com/tuscanyscatours/currencyconverter/CurrencyConverter.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/currency-converter-rmi/src/main/java/scatours/CurrencyConverterRMILauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/currency-converter-ws/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/currency-converter-ws/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/currency-converter-ws/src/main/java/scatours/CurrencyConverterWSLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/currency-converter-ws/src/main/java/scatours/currencyconverter/CurrencyConverter.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/currency-converter/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/currency-converter/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/currency-converter/src/main/java/scatours/CurrencyConverterLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/currency-converter/src/main/java/scatours/currencyconverter/CurrencyConverter.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/databinding/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/databinding/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/databinding/src/main/java/scatours/DatabindingLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/feed-logger/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/feed-logger/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/feed-logger/src/main/java/scatours/FeedLoggerLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/feed-logger/src/main/java/scatours/feedlogger/FeedLogger.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/fullapp-domain/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/fullapp-domain/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/fullapp-domain/src/main/java/scatours/FullAppDomainAPILauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/fullapp-domain/src/main/java/scatours/FullAppDomainLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/fullapp-nodes/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/fullapp-nodes/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/fullapp-nodes/src/main/java/scatours/FullAppNodesLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/fullapp/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/fullapp/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/fullapp/src/main/java/scatours/FullAppLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/help-pages/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/help-pages/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/help-pages/src/main/java/scatours/HelpPagesLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/interaction/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/interaction/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/interaction/src/main/java/scatours/InteractionLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/interaction/src/test/java/scatours/InteractionTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/introducing-client/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/introducing-client/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/introducing-client/src/main/java/scatours/IntroducingClientLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/introducing-domain/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/introducing-domain/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/introducing-domain/src/main/java/scatours/IntroducingDomainAPILauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/introducing-domain/src/main/java/scatours/IntroducingDomainLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/introducing-tours/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/introducing-tours/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/introducing-tours/src/main/java/scatours/IntroducingToursLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/introducing-trips/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/introducing-trips/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/introducing-trips/src/main/java/scatours/IntroducingTripsLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/introducing/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/introducing/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/introducing/src/main/java/scatours/IntroducingLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/introducing/src/test/java/scatours/IntroducingTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/jumpstart/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/jumpstart/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/jumpstart/src/main/java/scatours/JumpstartLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/jumpstart/src/main/java/scatours/Trips.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/jumpstart/src/test/java/scatours/JumpstartTestCase.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-corba/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-corba/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-corba/src/main/java/scatours/NotificationCORBALauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-corba/src/main/java/scatours/notification/Notification.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-ejb/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-ejb/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-ejb/src/main/java/scatours/NotificationEJBLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-ejb/src/main/java/scatours/notification/Notification.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-jms/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-jms/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-jms/src/main/java/scatours/NotificationJMSLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-jms/src/main/java/scatours/notification/Notification.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-rmi/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-rmi/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-rmi/src/main/java/com/tuscanyscatours/smsgateway/SMSGateway.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-rmi/src/main/java/scatours/NotificationRMILauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-rmi/src/main/java/scatours/notification/Notification.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-ws/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-ws/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-ws/src/main/java/scatours/NotificationWSLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/notification-ws/src/main/java/scatours/notification/Notification.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-bpel/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-bpel/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-bpel/src/main/java/com/tuscanyscatours/payment/MakePaymentMemberResponseType.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-bpel/src/main/java/com/tuscanyscatours/payment/MakePaymentMemberType.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-bpel/src/main/java/com/tuscanyscatours/payment/ObjectFactory.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-bpel/src/main/java/com/tuscanyscatours/payment/Payment.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-bpel/src/main/java/com/tuscanyscatours/payment/PaymentService.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-bpel/src/main/java/com/tuscanyscatours/payment/package-info.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-bpel/src/main/java/scatours/payment/PaymentLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-groovy/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-groovy/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-groovy/src/main/java/com/tuscanyscatours/emailgateway/EmailGateway.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-groovy/src/main/java/com/tuscanyscatours/emailgateway/EmailGatewayService.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-groovy/src/main/java/com/tuscanyscatours/emailgateway/EmailType.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-groovy/src/main/java/com/tuscanyscatours/emailgateway/ObjectFactory.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-groovy/src/main/java/com/tuscanyscatours/emailgateway/SendEmailResponseType.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-groovy/src/main/java/com/tuscanyscatours/emailgateway/SendEmailType.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-groovy/src/main/java/com/tuscanyscatours/emailgateway/package-info.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-groovy/src/main/java/com/tuscanyscatours/payment/MakePaymentMemberResponseType.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-groovy/src/main/java/com/tuscanyscatours/payment/MakePaymentMemberType.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-groovy/src/main/java/com/tuscanyscatours/payment/ObjectFactory.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-groovy/src/main/java/com/tuscanyscatours/payment/Payment.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-groovy/src/main/java/com/tuscanyscatours/payment/PaymentService.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-groovy/src/main/java/com/tuscanyscatours/payment/package-info.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-groovy/src/main/java/scatours/payment/PaymentLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-java-policy/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-java-policy/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-java-policy/src/main/java/com/tuscanyscatours/payment/MakePaymentMemberResponseType.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-java-policy/src/main/java/com/tuscanyscatours/payment/MakePaymentMemberType.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-java-policy/src/main/java/com/tuscanyscatours/payment/ObjectFactory.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-java-policy/src/main/java/com/tuscanyscatours/payment/Payment.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-java-policy/src/main/java/com/tuscanyscatours/payment/PaymentService.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-java-policy/src/main/java/com/tuscanyscatours/payment/package-info.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-java-policy/src/main/java/scatours/payment/PaymentLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-java/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-java/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/MakePaymentMemberResponseType.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/MakePaymentMemberType.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/ObjectFactory.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/Payment.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/PaymentService.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-java/src/main/java/com/tuscanyscatours/payment/package-info.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-java/src/main/java/scatours/payment/PaymentLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-spring-scatag/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-spring-scatag/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-spring-scatag/src/main/java/com/tuscanyscatours/payment/MakePaymentMemberResponseType.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-spring-scatag/src/main/java/com/tuscanyscatours/payment/MakePaymentMemberType.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-spring-scatag/src/main/java/com/tuscanyscatours/payment/ObjectFactory.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-spring-scatag/src/main/java/com/tuscanyscatours/payment/Payment.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-spring-scatag/src/main/java/com/tuscanyscatours/payment/PaymentService.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-spring-scatag/src/main/java/com/tuscanyscatours/payment/package-info.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-spring-scatag/src/main/java/scatours/payment/PaymentLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-spring/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-spring/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-spring/src/main/java/com/tuscanyscatours/payment/MakePaymentMemberResponseType.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-spring/src/main/java/com/tuscanyscatours/payment/MakePaymentMemberType.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-spring/src/main/java/com/tuscanyscatours/payment/ObjectFactory.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-spring/src/main/java/com/tuscanyscatours/payment/Payment.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-spring/src/main/java/com/tuscanyscatours/payment/PaymentService.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-spring/src/main/java/com/tuscanyscatours/payment/package-info.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/payment-spring/src/main/java/scatours/payment/PaymentLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/policy/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/policy/maven-eclipse.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/policy/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/policy/src/main/java/scatours/PolicyLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/launchers/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/src/main/java/scatours/creditcard/CreditCardService.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/src/main/java/scatours/creditcard/CreditCardServiceBootstrap.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/creditcard-payment-jaxws/src/main/java/scatours/creditcard/CreditCardServiceImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-corba/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-corba/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-corba/src/main/java/scatours/smsgateway/SMSGatewayCORBAServiceBootstrap.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-corba/src/main/java/scatours/smsgateway/SMSGatewayServant.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-corba/src/main/resources/sms-gateway.idl create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-ejb/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-ejb/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-ejb/src/main/java/com/tuscanyscatours/smsgateway/SMSGateway.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-ejb/src/main/java/com/tuscanyscatours/smsgateway/SMSGatewayEJBServiceBootstrap.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-ejb/src/main/java/com/tuscanyscatours/smsgateway/SMSGatewayImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-ejb/src/main/resources/META-INF/ejb-jar.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-jaxws/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-jaxws/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-jaxws/src/main/java/com/tuscanyscatours/smsgateway/SMSGatewayService.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-jaxws/src/main/java/com/tuscanyscatours/smsgateway/SMSGatewayServiceBootstrap.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-jaxws/src/main/java/com/tuscanyscatours/smsgateway/SMSGatewayServiceImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-jms/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-jms/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-jms/src/main/java/scatours/JMSBrokerLauncher.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-jms/src/main/java/scatours/smsgateway/SMSGateway.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-jms/src/main/java/scatours/smsgateway/SMSGatewayImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-jms/src/main/java/scatours/smsgateway/SMSGatewayJMSServiceBootstrap.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-rmi/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-rmi/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-rmi/src/main/java/com/tuscanyscatours/smsgateway/SMSGateway.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-rmi/src/main/java/com/tuscanyscatours/smsgateway/SMSGatewayImpl.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/services/smsgateway-rmi/src/main/java/com/tuscanyscatours/smsgateway/SMSGatewayRMIServiceBootstrap.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/testdomain/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/testdomain/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/travel-scenario.odg create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/travel-scenariotemplate.odg create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/util/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/util/launcher-common/build.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/util/launcher-common/pom.xml create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/util/launcher-common/src/main/java/scatours/launcher/LauncherUtil.java create mode 100644 sca-java-1.x/trunk/tutorials/travelsample/util/pom.xml (limited to 'sca-java-1.x') diff --git a/sca-java-1.x/trunk/tutorials/travelsample/README b/sca-java-1.x/trunk/tutorials/travelsample/README new file mode 100644 index 0000000000..6dddce56ca --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/README @@ -0,0 +1,255 @@ + +Building the travel sample using ant +------------------------------------ + +1. Download and unzip JDK 1.6.0_07 or later and set the JAVA_HOME environment + variable to the JDK base directory. +2. Install svn and ant. +3. Create a local directory to hold the travel sample code. With this as + your current directory, check out the complete travel sample from svn + using the following command: + svn co http://svn.apache.org/repos/asf/tuscany/sandbox/travelsample +4. Download and unzip the Tuscany 1.5.1 (or later) binary distribution + and set the TUSCANY_HOME environment variable to the base directory + containing the unzipped binary distribution. +5. Download the tuscany-host-corba-jse and tuscany-host-corba-jse-tns + jars from the maven repository http://repo1.maven.org/maven2 and set the + TUSCANY_HOST_CORBA environment variable to the local directory in which + these files are located. +6. Download and unzip the OpenEJB 3.0 or later binary distribution and set + the OPENEJB_HOME environment variable to the base directory containing + the unzipped binary distribution. +7. With the travelsample directory as your current directory, enter the + command "ant compile". + + +Building the travel sample using maven +-------------------------------------- + +Most of the steps are similar to the above. For completeness, a full list +of the steps needed is given here. + +1. Download and unzip JDK 1.6.0_07 or later and set the JAVA_HOME environment + variable to the JDK base directory. +2. Install svn and maven. +3. Create a local directory to hold the travel sample code. With this as + your current directory, check out the complete travel sample from svn + using the following command: + svn co http://svn.apache.org/repos/asf/tuscany/sandbox/travelsample +4. Check the setting of the property in the + travelsample/pom.xml file. If you want to build the travel sample using + a different Tuscany version, change this property as necessary. +5. With the travelsample directory as your current directory, enter the + command "mvn". You will need a live internet connection so that maven + can download any required files to your local repository. + + +Running the travel sample from the build directories +---------------------------------------------------- + +The travel sample consists of a number of related scenarios. These scenarios +are listed below, together with instructions for running them. The instructions +in this section will work irrespective of whether the travel sample was built +using ant or maven. + +Most of the scenarios are run by opening a single command prompt window +and entering the command "ant run" into that window. If a scenario is +listed with multiple commands, this means that it needs multiple command +prompt windows. In this case, each of the listed commands must be entered +into its own separate command prompt window in the order shown. + +For each scenario, the following are given: + Directory: the current directory for the command prompt window or windows + Command(s): the command or commands for running the scenario + Contributions: SCA contributions used in this scenario + Launchers: other launcher directories needed by this scenario, if any + Services: non-SCA services used in this scenario, if any + Clients: non-SCA services used in this scenario, if any + +1) Jumpstart - First simple example of using Tuscany + +Directory: launchers/jumpstart +Command: ant run +Contributions: introducing-trips +Launchers: common + +2) Introducing - Simplified introduction to the travel application + +Directory: launchers/introducing +Command: ant run +Contributions: introducing-client, introducing-tours, introducing-trips +Launchers: common + +3) Introducing (distributed) - Distributed services with a domain manager + +Directory: launchers/introducing-client +Commands: ant run-domain, ant run-trips, ant run-tours, ant run +Contributions: introducing-client, introducing-tours, introducing-trips +Launchers: introducing-domain, introducing-tours, introducing-trips + +4) Interaction - Different SCA interaction styles + +Directory: launchers/interaction +Command: ant run +Contributions: calendar, common, currency, flight, hotel, interaction-client, + interaction-service-remote, shoppingcart +Launchers: common + +5) Full application - The full interactive travel application + +Directory: launchers/fullapp +Command: ant run +Contributions: car, common, creditcard-payment-jaxb-policy, currency, flight, + fullapp-bespoketrip, fullapp-coordination, fullapp-currency, fullapp-packagedtrip, + fullapp-shoppingcart, fullapp-ui, hotel, payment-java-policy, scatours, + shoppingcart, travelcatalog, trip, tripbooking +Launchers: common + +6) Full application (distributed) - Distributed services with a domain manager + +Directory: launchers/fullapp-nodes +Commands: ant run-domain, ant run +Contributions: car, common, creditcard-payment-jaxb-policy, currency, flight, + fullapp-bespoketrip, fullapp-coordination, fullapp-currency, fullapp-packagedtrip, + fullapp-shoppingcart, fullapp-ui, hotel, payment-java-policy, scatours, + shoppingcart, travelcatalog, trip, tripbooking +Launchers: fullapp-domain + +7) Blog feed + +Directory: launchers/blog-feed +Command: ant run +Contributions: blog-feed +Launchers: common + +8) Data binding + +Directory: launchers/databinding +Command: ant run +Contributions: creditcard-payment-sdo, databinding-client, payment-java +Launchers: common + +9) Feed logger + +Directory: launchers/feed-logger +Command: ant run +Contributions: feed-logger +Launchers: common + +10) Help pages + +Directory: launchers/help-pages +Command: ant run +Contributions: help-pages +Launchers: common + +11) Policy + +Directory: launchers/policy +Command: ant run +Contributions: creditcard-payment-jaxb-policy, policy-client, payment-java-policy +Launchers: common + +12) SCA currency converter service interoperating with SCA or non-SCA client + +12a) SCA client + +Directory: launchers/currency-converter +Command: ant run +Contributions: currency +Launchers: common + +12b) CORBA client + +Directory: launchers/currency-converter-corba +Commands: ant run, ant run-client +Contributions: currency, currency-corba +Launchers: common +Clients: currency-converter-corba + +12c) JMS client + +Directory: launchers/currency-converter-jms +Commands: ant run-broker, ant run, ant run-client +Contributions: currency, currency-jms +Launchers: common +Clients: currency-converter-jms + +12d) RMI client + +Directory: launchers/currency-converter-rmi +Commands: ant run, ant run-client +Contributions: currency, currency-rmi +Launchers: common +Clients: currency-converter-rmi + +12e) JAX-WS client + +Directory: launchers/currency-converter-ws +Commands: ant run, ant run-client +Contributions: currency, currency-ws +Launchers: common +Clients: currency-converter-ws-jaxws + +13) SCA notification service interoperating with non-SCA SMS gateway service + +13a) SMS gateway CORBA service + +Directory: launchers/notification-corba +Commands: ant run-nameserver, ant run-smsgateway, ant run +Contributions: notification, notification-corba +Launchers: common +Services: smsgateway-corba + +13b) SMS gateway EJB service + +Directory: launchers/notification-ejb +Commands: ant run-smsgateway, ant run +Contributions: notification, notification-ejb +Launchers: common +Services: smsgateway-ejb + +13c) SMS gateway JMS service + +Directory: launchers/notification-jms +Commands: ant run-broker, ant run-smsgateway, ant run +Contributions: notification, notification-jms +Launchers: common +Services: smsgateway-jms + +13d) SMS gateway RMI service + +Directory: launchers/notification-rmi +Commands: ant run-smsgateway, ant run +Contributions: notification, notification-rmi +Launchers: common +Services: smsgateway-rmi + +13e) SMS gateway JAX-WS service + +Directory: launchers/notification-ws +Commands: ant run-smsgateway, ant run +Contributions: notification, notification-ws +Launchers: common +Services: smsgateway-jaxws + + +Running the travel sample from the distribution directories +----------------------------------------------------------- + +If the travel sample was built using maven, a binary distribution +directory will be created containing all the built jar files together with +a "lib" directory containing a complete set of runtime dependencies for +these jar files. The jar files in the "launchers" directory in the +distribution output can be run using the command + + java -jar + +where is the name of the jar file in the distrbution +directory tree. For example, to run the "jumpstart" scenario, you +would use the command + + java -jar /scatours-launcher-jumpstart.jar + +It isn't possible currently to run scenarios 3 and 6 (distributed execution +with a domain manager) from the distribution directory in this way. diff --git a/sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml b/sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml new file mode 100644 index 0000000000..21dd005ef8 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/antdefs.xml @@ -0,0 +1,447 @@ + + + + + + + + Error: Please set the TUSCANY_HOME environment variable. + + + Error: Please set the JUNIT_JAR environment variable. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/trunk/tutorials/travelsample/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/build.xml new file mode 100644 index 0000000000..f74b4cb2a8 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/build.xml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/trunk/tutorials/travelsample/clients/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/clients/build.xml new file mode 100644 index 0000000000..78e305c3cd --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/clients/build.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-corba/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-corba/build.xml new file mode 100644 index 0000000000..17ea72e648 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-corba/build.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-corba/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-corba/pom.xml new file mode 100644 index 0000000000..8af007d490 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-corba/pom.xml @@ -0,0 +1,85 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + scatours + 1.0-SNAPSHOT + ../../pom.xml + 1.0-SNAPSHOT + scatours-client-currency-converter-corba + Apache Tuscany SCA Tours Currency Converter CORBA Client + + + + junit + junit + 4.5 + test + + + + + ${artifactId} + + + + org.apache.maven.plugins + maven-jar-plugin + 2.2 + + + + true + ../lib/ + scatours.CurrencyConverterCORBAClient + + + + + + org.codehaus.mojo + idlj-maven-plugin + 1.1 + + + + generate + + + + + idlj + + + + currency-converter.idl + + true + false + + + ${basedir}/src/main/resources + + + + + diff --git a/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-corba/src/main/java/scatours/CurrencyConverterCORBAClient.java b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-corba/src/main/java/scatours/CurrencyConverterCORBAClient.java new file mode 100644 index 0000000000..7d799e459b --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-corba/src/main/java/scatours/CurrencyConverterCORBAClient.java @@ -0,0 +1,41 @@ +/* + * 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.omg.CORBA.ORB; +import org.omg.CORBA.Object; + +import com.tuscanyscatours.currencyconverter.CurrencyConverter; +import com.tuscanyscatours.currencyconverter.CurrencyConverterHelper; + +public class CurrencyConverterCORBAClient { + + public static void main(String[] args) throws Exception { + + String[] orbArgs = {"-ORBInitialPort", "5080"}; + ORB orb = ORB.init(orbArgs, null); + + String ior = "corbaname::localhost:5080#CurrencyConverterCORBAService"; + Object obj = orb.string_to_object(ior); + CurrencyConverter converter = CurrencyConverterHelper.narrow(obj); + + System.out.println("USD -> GBP = " + converter.getExchangeRate("USD", "GBP")); + System.out.println("100 USD = " + converter.convert("USD", "GBP", 100.0) + "GBP"); + } +} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-corba/src/main/resources/currency-converter.idl b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-corba/src/main/resources/currency-converter.idl new file mode 100644 index 0000000000..1ff24291f5 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-corba/src/main/resources/currency-converter.idl @@ -0,0 +1,29 @@ +/* + * 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. + */ + +module com { + module tuscanyscatours { + module currencyconverter { + interface CurrencyConverter { + double getExchangeRate(in string fromCurrencyCode, in string toCurrencyCode); + double convert(in string fromCurrencyCode, in string toCurrencyCode, in double amount); + }; + }; + }; +}; diff --git a/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-jms/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-jms/build.xml new file mode 100644 index 0000000000..41aa9f2337 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-jms/build.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-jms/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-jms/pom.xml new file mode 100644 index 0000000000..88a1f27407 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-jms/pom.xml @@ -0,0 +1,105 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + scatours + 1.0-SNAPSHOT + ../../pom.xml + + 1.0-SNAPSHOT + scatours-client-currency-converter-jms + Apache Tuscany SCA Tours Currency Converter JMS Client + + + + org.apache.activemq + activemq-all + 5.2.0 + + + org.apache.activemq + activemq-web-demo + + + + + + org.apache.ws.commons.axiom + axiom-api + 1.2.7 + + + xerces + xercesImpl + + + stax + stax-api + + + xml-apis + xml-apis + + + + + + org.apache.ws.commons.axiom + axiom-impl + 1.2.7 + runtime + + + stax + stax-api + + + + + + junit + junit + 4.5 + test + + + + + ${artifactId} + + + org.apache.maven.plugins + maven-jar-plugin + 2.2 + + + + true + ../lib/ + scatours.CurrencyConverterJMSClient + + + + + + + diff --git a/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-jms/src/main/java/scatours/CurrencyConverterJMSClient.java b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-jms/src/main/java/scatours/CurrencyConverterJMSClient.java new file mode 100644 index 0000000000..0bea38e07f --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-jms/src/main/java/scatours/CurrencyConverterJMSClient.java @@ -0,0 +1,103 @@ +/* + * 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.ByteArrayInputStream; + +import javax.jms.Connection; +import javax.jms.Destination; +import javax.jms.JMSException; +import javax.jms.MessageConsumer; +import javax.jms.MessageProducer; +import javax.jms.Session; +import javax.jms.TextMessage; +import javax.xml.stream.XMLStreamException; + +import org.apache.activemq.ActiveMQConnectionFactory; +import org.apache.axiom.om.OMAbstractFactory; +import org.apache.axiom.om.OMElement; +import org.apache.axiom.om.OMFactory; +import org.apache.axiom.om.OMText; +import org.apache.axiom.om.impl.builder.StAXOMBuilder; + +public class CurrencyConverterJMSClient { + + private static Connection activeMQConnection; + private static Session activeMQSession; + private static Destination requestDestination; + private static MessageProducer activeMQProducer; + private static Destination responseDestination; + private static MessageConsumer consumer; + private static OMFactory omFactory; + + public static void main(String[] args) throws JMSException, XMLStreamException { + startActiveMQSession(); + + OMElement request = omFactory.createOMElement("convert", "http://goodvaluetrips.com/", "ns2"); + request.addChild(createArg(0, "USD")); + request.addChild(createArg(1, "GBP")); + request.addChild(createArg(2, "100.0")); + + TextMessage message = activeMQSession.createTextMessage("convert"); + message.setStringProperty("scaOperationName", "convert"); + message.setJMSReplyTo(responseDestination); + message.setText(request.toString()); + activeMQProducer.send(message); + + TextMessage response = (TextMessage)consumer.receive(); + StAXOMBuilder builder = new StAXOMBuilder(new ByteArrayInputStream(response.getText().getBytes())); + OMText returnElement = (OMText)builder.getDocumentElement().getFirstOMChild(); + String returnValue = returnElement.getText(); + System.out.println("100 USD = " + returnValue + "GBP"); + + stopActiveMQSession(); + } + + private static void startActiveMQSession() throws JMSException { + ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory("tcp://localhost:61619"); + + activeMQConnection = connectionFactory.createConnection(); + activeMQConnection.start(); + + activeMQSession = activeMQConnection.createSession(false, Session.AUTO_ACKNOWLEDGE); + + requestDestination = activeMQSession.createQueue("RequestQueue"); + activeMQProducer = activeMQSession.createProducer(requestDestination); + + responseDestination = activeMQSession.createQueue("ResponseQueue"); + consumer = activeMQSession.createConsumer(responseDestination); + + omFactory = OMAbstractFactory.getOMFactory(); + } + + private static void stopActiveMQSession() throws JMSException { + consumer.close(); + activeMQProducer.close(); + activeMQSession.close(); + activeMQConnection.close(); + } + + private static OMElement createArg(int argNumber, String value) { + OMFactory omFactory = OMAbstractFactory.getOMFactory(); + OMElement arg = omFactory.createOMElement("arg" + argNumber, null); + OMText senderOM = omFactory.createOMText(value); + arg.addChild(senderOM); + return arg; + } +} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-rmi/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-rmi/build.xml new file mode 100644 index 0000000000..2d9d3bc9d9 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-rmi/build.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-rmi/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-rmi/pom.xml new file mode 100644 index 0000000000..9b41782f82 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-rmi/pom.xml @@ -0,0 +1,59 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + scatours + 1.0-SNAPSHOT + ../../pom.xml + 1.0-SNAPSHOT + scatours-client-currency-converter-rmi + Apache Tuscany SCA Tours Currency Converter RMI Client + + + + junit + junit + 4.5 + test + + + + + ${artifactId} + + + org.apache.maven.plugins + maven-jar-plugin + 2.2 + + + + true + ../lib/ + scatours.CurrencyConverterRMIClient + + + + + + + diff --git a/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-rmi/src/main/java/com/tuscanyscatours/currencyconverter/CurrencyConverter.java b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-rmi/src/main/java/com/tuscanyscatours/currencyconverter/CurrencyConverter.java new file mode 100644 index 0000000000..e12a95c964 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-rmi/src/main/java/com/tuscanyscatours/currencyconverter/CurrencyConverter.java @@ -0,0 +1,30 @@ +/* + * 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.currencyconverter; + +/** + * The CurrencyConverter service interface + */ +public interface CurrencyConverter { + + double getExchangeRate(String fromCurrencyCode, String toCurrencyCode); + + double convert(String fromCurrencyCode, String toCurrencyCode, double amount); + +} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-rmi/src/main/java/scatours/CurrencyConverterRMIClient.java b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-rmi/src/main/java/scatours/CurrencyConverterRMIClient.java new file mode 100644 index 0000000000..32e4fccfce --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-rmi/src/main/java/scatours/CurrencyConverterRMIClient.java @@ -0,0 +1,36 @@ +/* + * 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.rmi.registry.LocateRegistry; +import java.rmi.registry.Registry; + +import com.tuscanyscatours.currencyconverter.CurrencyConverter; + +public class CurrencyConverterRMIClient { + + public static void main(String[] args) throws Exception { + Registry registry = LocateRegistry.getRegistry("localhost", 8099); + String name = "CurrencyConverterRMI"; + CurrencyConverter converter = (CurrencyConverter)registry.lookup(name); + + System.out.println("USD -> GBP = " + converter.getExchangeRate("USD", "GBP")); + System.out.println("100 USD = " + converter.convert("USD", "GBP", 100.0) + "GBP"); + } +} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-ws-jaxws/build.xml b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-ws-jaxws/build.xml new file mode 100644 index 0000000000..6d17bbd1a3 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-ws-jaxws/build.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-ws-jaxws/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-ws-jaxws/pom.xml new file mode 100644 index 0000000000..99a6c15c36 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-ws-jaxws/pom.xml @@ -0,0 +1,89 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + scatours + 1.0-SNAPSHOT + ../../pom.xml + + 1.0-SNAPSHOT + scatours-client-currency-converter-ws-jaxws + Apache Tuscany SCA Tours Currency Converter Web Service JAX-WS Client + + + + junit + junit + 4.5 + test + + + + + + java.net2 + java.net Maven 2.x Repository + http://download.java.net/maven/2 + + false + + + + + + ${artifactId} + + + + org.apache.maven.plugins + maven-jar-plugin + 2.2 + + + + true + ../lib/ + scatours.CurrencyConverterWSClient + + + + + + + org.codehaus.mojo + jaxws-maven-plugin + 1.12 + + + + wsimport + + + ${basedir}/src/main/resources/wsdl + scatours.currencyconverter.client + + + + + + + diff --git a/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-ws-jaxws/src/main/java/scatours/CurrencyConverterWSClient.java b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-ws-jaxws/src/main/java/scatours/CurrencyConverterWSClient.java new file mode 100644 index 0000000000..dbaa7c2124 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-ws-jaxws/src/main/java/scatours/CurrencyConverterWSClient.java @@ -0,0 +1,33 @@ +/* + * 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 scatours.currencyconverter.client.CurrencyConverter; +import scatours.currencyconverter.client.CurrencyConverterService; + +public class CurrencyConverterWSClient { + + public static void main(String[] args) throws Exception { + CurrencyConverterService service = new CurrencyConverterService(); + CurrencyConverter converter = service.getPort(CurrencyConverter.class); + + System.out.println("USD -> GBP = " + converter.getExchangeRate("USD", "GBP")); + System.out.println("100 USD = " + converter.convert("USD", "GBP", 100.0) + "GBP"); + } +} diff --git a/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-ws-jaxws/src/main/resources/wsdl/CurrencyConverter.wsdl b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-ws-jaxws/src/main/resources/wsdl/CurrencyConverter.wsdl new file mode 100644 index 0000000000..055431bbf2 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/clients/currency-converter-ws-jaxws/src/main/resources/wsdl/CurrencyConverter.wsdl @@ -0,0 +1,115 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sca-java-1.x/trunk/tutorials/travelsample/clients/pom.xml b/sca-java-1.x/trunk/tutorials/travelsample/clients/pom.xml new file mode 100644 index 0000000000..177da15528 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/clients/pom.xml @@ -0,0 +1,49 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + scatours + 1.0-SNAPSHOT + ../pom.xml + + 1.0-SNAPSHOT + scatours-clients + pom + Apache Tuscany SCA Tours non-SCA Clients + + + + default + + true + + + currency-converter-corba + currency-converter-jms + currency-converter-rmi + currency-converter-ws-jaxws + + + + + + 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 new file mode 100644 index 0000000000..cdf9a9df05 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/META-INF/MANIFEST.MF @@ -0,0 +1,28 @@ +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 new file mode 100644 index 0000000000..847213af37 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/OSGI-INF/sca/bundle.componentType @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..7b12b36368 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/OSGI-INF/sca/bundle.composite @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..074a6004cb --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/pom.xml @@ -0,0 +1,240 @@ + + + + 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 new file mode 100644 index 0000000000..49e1f6a119 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/main/java/scatours/currency/CurrencyConverter.java @@ -0,0 +1,33 @@ +/* + * 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 new file mode 100644 index 0000000000..2a3ffc1a1e --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/main/java/scatours/currency/impl/CurrencyConverterImpl.java @@ -0,0 +1,55 @@ +/* + * 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 new file mode 100644 index 0000000000..9c7364d4d5 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/main/java/scatours/payment/creditcard/impl/CreditCardPaymentActivator.java @@ -0,0 +1,40 @@ +/* + * 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 new file mode 100644 index 0000000000..d726b85f9f --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/main/java/scatours/payment/creditcard/impl/CreditCardPaymentImpl.java @@ -0,0 +1,97 @@ +/* + * 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 new file mode 100644 index 0000000000..d50a63ac42 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/main/resources/CreditCardPayment.wsdl @@ -0,0 +1,118 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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 new file mode 100644 index 0000000000..d41571f679 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/test/java/scatours/payment/creditcard/test/CreditCardPaymentClient.java @@ -0,0 +1,54 @@ +/* + * 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 new file mode 100644 index 0000000000..98c1fced9d --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-dosgi-contribution/src/test/java/scatours/payment/creditcard/test/CreditCardPaymentOSGiTestCase.java @@ -0,0 +1,127 @@ +/* + * 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 new file mode 100644 index 0000000000..a7fa84ae74 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/pom.xml @@ -0,0 +1,100 @@ + + + + 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 new file mode 100644 index 0000000000..c8660c4ffe --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/src/main/resources/CreditCardPayment.wsdl @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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 new file mode 100644 index 0000000000..188c9937f7 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/src/main/webapp/WEB-INF/web.composite @@ -0,0 +1,33 @@ + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..33332936b3 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,41 @@ + + + + + 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 new file mode 100644 index 0000000000..d40f91eabf --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/creditcard-payment-web-contribution/src/main/webapp/creditcard.jsp @@ -0,0 +1,71 @@ + + +<%@ 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 new file mode 100644 index 0000000000..68c5603763 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/META-INF/MANIFEST.MF @@ -0,0 +1,21 @@ +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 new file mode 100644 index 0000000000..c673715e21 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/OSGI-INF/sca/bundle.componentType @@ -0,0 +1,27 @@ + + + + + + + + + + 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 new file mode 100644 index 0000000000..b59e8bf248 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/OSGI-INF/sca/bundle.composite @@ -0,0 +1,32 @@ + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..6d7388d833 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/pom.xml @@ -0,0 +1,117 @@ + + + + 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 new file mode 100644 index 0000000000..49e1f6a119 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/src/main/java/scatours/currency/CurrencyConverter.java @@ -0,0 +1,33 @@ +/* + * 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 new file mode 100644 index 0000000000..90b26aa2b3 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/src/main/java/scatours/currency/impl/CurrencyConverterActivator.java @@ -0,0 +1,40 @@ +/* + * 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 new file mode 100644 index 0000000000..2a3ffc1a1e --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/2.x/currency-converter-dosgi-contribution/src/main/java/scatours/currency/impl/CurrencyConverterImpl.java @@ -0,0 +1,55 @@ +/* + * 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 new file mode 100644 index 0000000000..549f1f740b --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/build.xml @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..4eb2e218d5 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/pom.xml @@ -0,0 +1,78 @@ + + + + 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 new file mode 100644 index 0000000000..df6cdc10e1 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/client/CurrencyConverterClient.java @@ -0,0 +1,46 @@ +/* + * 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 new file mode 100644 index 0000000000..f221ac9106 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/client/TripClient.java @@ -0,0 +1,45 @@ +/* + * 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 new file mode 100644 index 0000000000..95863271c4 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/currencyconverter/CurrencyConverter.java @@ -0,0 +1,31 @@ +/* + * 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 new file mode 100644 index 0000000000..d5b470ddeb --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/currencyconverter/CurrencyConverterImpl.java @@ -0,0 +1,32 @@ +/* + * 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 new file mode 100644 index 0000000000..c7f930c631 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/trip/Trip.java @@ -0,0 +1,26 @@ +/* + * 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 new file mode 100644 index 0000000000..9fe9fb1834 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/java/trip/TripImpl.java @@ -0,0 +1,42 @@ +/* + * 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 new file mode 100644 index 0000000000..2a37151e08 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/resources/currencyconverter.composite @@ -0,0 +1,29 @@ + + + + + + + + + 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 new file mode 100644 index 0000000000..32a3eed4be --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-01/src/main/resources/trip.composite @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..a58fed933a --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/build.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..17bc0d7d5b --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/build.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..e5982fe7bd --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/pom.xml @@ -0,0 +1,48 @@ + + + + 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 new file mode 100644 index 0000000000..cb80368918 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/src/main/java/scatours/client/TestClient.java @@ -0,0 +1,46 @@ +/* + * 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 new file mode 100644 index 0000000000..54ae0dbd0a --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,25 @@ + + + + + + + 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 new file mode 100644 index 0000000000..05c2755114 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/client-contribution/src/main/resources/client.composite @@ -0,0 +1,29 @@ + + + + + + + + + + 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 new file mode 100644 index 0000000000..fa67a921e2 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/build.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..5ff8cc8382 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/pom.xml @@ -0,0 +1,42 @@ + + + + 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 new file mode 100644 index 0000000000..d30046aaef --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/src/main/java/com/goodvaluetrips/TripProvider.java @@ -0,0 +1,26 @@ +/* + * 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 new file mode 100644 index 0000000000..365a210368 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/src/main/java/com/goodvaluetrips/Trips.java @@ -0,0 +1,26 @@ +/* + * 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 new file mode 100644 index 0000000000..6ed07d5612 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,24 @@ + + + + + + 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 new file mode 100644 index 0000000000..ab173e5ef7 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/goodvaluetrips-contribution/src/main/resources/trips.composite @@ -0,0 +1,30 @@ + + + + + + + + + + + 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 new file mode 100644 index 0000000000..0c3c506b67 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/build.xml @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..f858f9f7e7 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/pom.xml @@ -0,0 +1,70 @@ + + + + 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 new file mode 100644 index 0000000000..b09939e49f --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/src/main/java/scatours/LaunchNode.java @@ -0,0 +1,53 @@ +/* + * 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 new file mode 100644 index 0000000000..e3ac806b9a --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,26 @@ + + + + + + + + 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 new file mode 100644 index 0000000000..6524f078f5 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/src/main/resources/scatours.composite @@ -0,0 +1,31 @@ + + + + + + + + + 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 new file mode 100644 index 0000000000..16cff30934 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node-jumpstart/src/test/java/scatours/NodeTestCase.java @@ -0,0 +1,60 @@ +/* + * 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 new file mode 100644 index 0000000000..0c3c506b67 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/build.xml @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..849bfef794 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/pom.xml @@ -0,0 +1,63 @@ + + + + 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 new file mode 100644 index 0000000000..b7888c8749 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/src/main/java/scatours/LaunchNode.java @@ -0,0 +1,52 @@ +/* + * 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 new file mode 100644 index 0000000000..4a6250ad25 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,26 @@ + + + + + + + + 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 new file mode 100644 index 0000000000..a5e26fd7b7 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/src/main/resources/scatours.composite @@ -0,0 +1,31 @@ + + + + + + + + + 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 new file mode 100644 index 0000000000..d37e52a409 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/node/src/test/java/scatours/NodeTestCase.java @@ -0,0 +1,60 @@ +/* + * 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 new file mode 100644 index 0000000000..0132a445e5 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/pom.xml @@ -0,0 +1,48 @@ + + + + 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 new file mode 100644 index 0000000000..d9961176f3 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/build.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..6296c58e95 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/pom.xml @@ -0,0 +1,42 @@ + + + + 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 new file mode 100644 index 0000000000..365a210368 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/goodvaluetrips/Trips.java @@ -0,0 +1,26 @@ +/* + * 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 new file mode 100644 index 0000000000..9d54d46bb6 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/Bookings.java @@ -0,0 +1,26 @@ +/* + * 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 new file mode 100644 index 0000000000..688fc7e83b --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/Checkout.java @@ -0,0 +1,26 @@ +/* + * 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 new file mode 100644 index 0000000000..68bf25a8cd --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/ShoppingCart.java @@ -0,0 +1,28 @@ +/* + * 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 new file mode 100644 index 0000000000..e64d60545e --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/TripBooking.java @@ -0,0 +1,35 @@ +/* + * 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 new file mode 100644 index 0000000000..e33b0399cb --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/java/com/tuscanyscatours/Updates.java @@ -0,0 +1,26 @@ +/* + * 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 new file mode 100644 index 0000000000..cf1153ac14 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,25 @@ + + + + + + + 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 new file mode 100644 index 0000000000..f166a1635d --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-02/tuscanyscatours-contribution/src/main/resources/tours.composite @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..7d417a20de --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-03/pom.xml @@ -0,0 +1,46 @@ + + + + 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 new file mode 100644 index 0000000000..3627e840ad --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/node/build.xml @@ -0,0 +1,278 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..46dd653664 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/node/pom.xml @@ -0,0 +1,164 @@ + + + + 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 new file mode 100644 index 0000000000..6b1c673579 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/node/src/main/java/scatours/LaunchNode.java @@ -0,0 +1,65 @@ +/* + * 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 new file mode 100644 index 0000000000..5507b545d1 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/pom.xml @@ -0,0 +1,46 @@ + + + + 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 new file mode 100644 index 0000000000..2d7b30e1e2 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/build.xml @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..a706c9ab8d --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/pom.xml @@ -0,0 +1,88 @@ + + + + 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 new file mode 100644 index 0000000000..4064565d41 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + \ 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 new file mode 100644 index 0000000000..ae8d4b7ff6 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/scatours.composite @@ -0,0 +1,167 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..b8e27e87fc --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/scatours.html @@ -0,0 +1,391 @@ + + + +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 new file mode 100644 index 0000000000..8ca8fbf133 Binary files /dev/null and b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/scatours.odg 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 new file mode 100644 index 0000000000..f68cd84704 Binary files /dev/null and b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/scatours.png 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 new file mode 100644 index 0000000000..6e17c2747b --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-05/ui-contribution/src/main/resources/style.css @@ -0,0 +1,135 @@ +/* + * 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 new file mode 100644 index 0000000000..e49a915d6d --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/node/build.xml @@ -0,0 +1,214 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..19262eeb89 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/node/pom.xml @@ -0,0 +1,186 @@ + + + + 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 new file mode 100644 index 0000000000..e87b0ca44e --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/node/src/main/java/scatours/LaunchBPELExampleNode.java @@ -0,0 +1,66 @@ +/* + * 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 new file mode 100644 index 0000000000..45c9be4bce --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/node/src/main/java/scatours/LaunchSpringExampleNode.java @@ -0,0 +1,66 @@ +/* + * 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 new file mode 100644 index 0000000000..7ed0bcaf77 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/log4j.properties @@ -0,0 +1,36 @@ +# +# 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 new file mode 100644 index 0000000000..8cfe95771a --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/pom.xml @@ -0,0 +1,181 @@ + + + + 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 new file mode 100644 index 0000000000..22ef6de317 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/CreditCardPayment.wsdl @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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 new file mode 100644 index 0000000000..a097d9b7e4 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/EmailGateway.wsdl @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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 new file mode 100644 index 0000000000..725c95a2bd --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,23 @@ + + + + + + \ 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 new file mode 100644 index 0000000000..e2c4062f2e --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/Payment.wsdl @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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 new file mode 100644 index 0000000000..8f11d76888 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/main/resources/payment.bpel @@ -0,0 +1,164 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..a69c16a726 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/test/java/scatours/payment/PaymentTestCase.java @@ -0,0 +1,71 @@ +/* + * 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 new file mode 100644 index 0000000000..eaa7498e84 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/test/java/scatours/payment/client/PaymentClientImpl.java @@ -0,0 +1,37 @@ +/* + * 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 new file mode 100644 index 0000000000..4984ef0252 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/test/resources/META-INF/sca-contribution.xml @@ -0,0 +1,23 @@ + + + + + + \ 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 new file mode 100644 index 0000000000..ab26a48b20 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-bpel-contribution/src/test/resources/payment.composite @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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 new file mode 100644 index 0000000000..67882f6ddb --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/pom.xml @@ -0,0 +1,166 @@ + + + + 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 new file mode 100644 index 0000000000..1813c77436 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/CreditCardPayment.wsdl @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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 new file mode 100644 index 0000000000..a097d9b7e4 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/EmailGateway.wsdl @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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 new file mode 100644 index 0000000000..7adba24d58 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,22 @@ + + + + + \ 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 new file mode 100644 index 0000000000..2519d7642e --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/Payment.wsdl @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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 new file mode 100644 index 0000000000..9743f24ada --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/payment.composite @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..dab3003eed --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/main/resources/payment/PaymentImpl.groovy @@ -0,0 +1,31 @@ +/* + * 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 new file mode 100644 index 0000000000..21bf6ff428 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/test/java/payment/PaymentTestCase.java @@ -0,0 +1,76 @@ +/* + * 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 new file mode 100644 index 0000000000..556a699ad8 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/test/java/payment/client/PaymentClientImpl.java @@ -0,0 +1,37 @@ +/* + * 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 new file mode 100644 index 0000000000..ac05bf7359 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/test/java/payment/creditcard/CreditCardPaymentImpl.java @@ -0,0 +1,41 @@ +/* + * 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 new file mode 100644 index 0000000000..974c902f5d --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-javascript-contribution/src/test/java/scatours/emailgateway/EmailGatewayImpl.java @@ -0,0 +1,29 @@ +/* + * 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 new file mode 100644 index 0000000000..3018bc651d --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/pom.xml @@ -0,0 +1,166 @@ + + + + 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 new file mode 100644 index 0000000000..68e941e138 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/java/payment/PaymentImpl.java @@ -0,0 +1,78 @@ +/* + * 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 new file mode 100644 index 0000000000..644519a5e7 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/java/scatours/emailgateway/EmailGatewayImpl.java @@ -0,0 +1,29 @@ +/* + * 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 new file mode 100644 index 0000000000..dbf89924cc --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/CreditCardPayment.wsdl @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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 new file mode 100644 index 0000000000..a097d9b7e4 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/EmailGateway.wsdl @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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 new file mode 100644 index 0000000000..896b1ceb48 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,24 @@ + + + + + + + \ 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 new file mode 100644 index 0000000000..6942649d8a --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/Payment-context.xml @@ -0,0 +1,44 @@ + + + + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..e2c4062f2e --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/main/resources/Payment.wsdl @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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 new file mode 100644 index 0000000000..5e47c9075e --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/test/java/payment/PaymentTestCase.java @@ -0,0 +1,73 @@ +/* + * 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 new file mode 100644 index 0000000000..556a699ad8 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/test/java/payment/client/PaymentClientImpl.java @@ -0,0 +1,37 @@ +/* + * 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 new file mode 100644 index 0000000000..92de8d375b --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/test/resources/META-INF/sca-contribution.xml @@ -0,0 +1,24 @@ + + + + + + + \ 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 new file mode 100644 index 0000000000..aeb9a3e413 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-annotation-contribution/src/test/resources/payment.composite @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..299b989cca --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/pom.xml @@ -0,0 +1,184 @@ + + + + 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 new file mode 100644 index 0000000000..48f829ae0f --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/java/payment/PaymentImpl.java @@ -0,0 +1,64 @@ +/* + * 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 new file mode 100644 index 0000000000..644519a5e7 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/java/scatours/emailgateway/EmailGatewayImpl.java @@ -0,0 +1,29 @@ +/* + * 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 new file mode 100644 index 0000000000..dbf89924cc --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/CreditCardPayment.wsdl @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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 new file mode 100644 index 0000000000..a097d9b7e4 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/EmailGateway.wsdl @@ -0,0 +1,89 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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 new file mode 100644 index 0000000000..78a5d851f9 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,23 @@ + + + + + + \ 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 new file mode 100644 index 0000000000..e786e15d55 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/Payment-context.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..e2c4062f2e --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/main/resources/Payment.wsdl @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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 new file mode 100644 index 0000000000..8046e8b2cd --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/test/java/payment/PaymentTestCase.java @@ -0,0 +1,73 @@ +/* + * 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 new file mode 100644 index 0000000000..556a699ad8 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/test/java/payment/client/PaymentClientImpl.java @@ -0,0 +1,37 @@ +/* + * 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 new file mode 100644 index 0000000000..4e61a2f127 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/test/resources/META-INF/sca-contribution.xml @@ -0,0 +1,22 @@ + + + + + \ 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 new file mode 100644 index 0000000000..52deda7a18 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/payment-spring-contribution/src/test/resources/payment.composite @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + \ 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 new file mode 100644 index 0000000000..605a362c31 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/pom.xml @@ -0,0 +1,51 @@ + + + + 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 new file mode 100644 index 0000000000..37b6800014 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/build.xml @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..448bd8a96f --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/pom.xml @@ -0,0 +1,88 @@ + + + + 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 new file mode 100644 index 0000000000..b3de1910d1 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + \ 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 new file mode 100644 index 0000000000..4b5290b910 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/scatours.composite @@ -0,0 +1,178 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..b8e27e87fc --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/scatours.html @@ -0,0 +1,391 @@ + + + +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 new file mode 100644 index 0000000000..8ca8fbf133 Binary files /dev/null and b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/scatours.odg 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 new file mode 100644 index 0000000000..f68cd84704 Binary files /dev/null and b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/scatours.png 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 new file mode 100644 index 0000000000..6e17c2747b --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-bpel-contribution/src/main/resources/style.css @@ -0,0 +1,135 @@ +/* + * 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 new file mode 100644 index 0000000000..68b3a3adf9 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/build.xml @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..42df0ab469 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/pom.xml @@ -0,0 +1,88 @@ + + + + 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 new file mode 100644 index 0000000000..b3de1910d1 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + \ 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 new file mode 100644 index 0000000000..9b21c2a9f2 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/scatours.composite @@ -0,0 +1,169 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..b8e27e87fc --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/scatours.html @@ -0,0 +1,391 @@ + + + +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 new file mode 100644 index 0000000000..8ca8fbf133 Binary files /dev/null and b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/scatours.odg 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 new file mode 100644 index 0000000000..f68cd84704 Binary files /dev/null and b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/scatours.png 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 new file mode 100644 index 0000000000..6e17c2747b --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-06/ui-spring-contribution/src/main/resources/style.css @@ -0,0 +1,135 @@ +/* + * 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 new file mode 100644 index 0000000000..5f9e3ef56b --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-07/pom.xml @@ -0,0 +1,46 @@ + + + + 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 new file mode 100644 index 0000000000..caf9636c18 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/pom.xml @@ -0,0 +1,46 @@ + + + + 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 new file mode 100644 index 0000000000..f453e53815 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/build.xml @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..a253fbf74b --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/pom.xml @@ -0,0 +1,103 @@ + + + + 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 new file mode 100644 index 0000000000..2fa83b7a3b --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/META-INF/sca-deployables/scatours.composite @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..3f833b6856 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/WEB-INF/web.xml @@ -0,0 +1,41 @@ + + + + + + + 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 new file mode 100644 index 0000000000..9aad807887 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.html @@ -0,0 +1,143 @@ + + + +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 new file mode 100644 index 0000000000..8ca8fbf133 Binary files /dev/null and b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.odg 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 new file mode 100644 index 0000000000..f68cd84704 Binary files /dev/null and b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/scatours.png 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 new file mode 100644 index 0000000000..6e17c2747b --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-08/ui-contribution-webapp/src/main/webapp/style.css @@ -0,0 +1,135 @@ +/* + * 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 new file mode 100644 index 0000000000..9388e4e3fb --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/pom.xml @@ -0,0 +1,130 @@ + + + + 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 new file mode 100644 index 0000000000..5b333648f4 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/java/payment/creditcard/CreditCardPayment.java @@ -0,0 +1,39 @@ + +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 new file mode 100644 index 0000000000..178268eac1 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/java/payment/creditcard/impl/CreditCardPaymentImpl.java @@ -0,0 +1,47 @@ +/* + * 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 new file mode 100644 index 0000000000..f73279e7d8 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/resources/CreditCardPayment.wsdl @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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 new file mode 100644 index 0000000000..d22f4816ab --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,25 @@ + + + + + + + + \ 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 new file mode 100644 index 0000000000..938385dbf9 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/main/resources/creditcard.composite @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + \ 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 new file mode 100644 index 0000000000..041e4e4847 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/creditcard-payment-sdo-contribution/src/test/java/payment/creditcard/CreditCardPaymentTestCase.java @@ -0,0 +1,86 @@ +/* + * 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 new file mode 100644 index 0000000000..46333e4852 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/node/build.xml @@ -0,0 +1,210 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..8deb76212c --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/node/pom.xml @@ -0,0 +1,144 @@ + + + + 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 new file mode 100644 index 0000000000..7ed9b0d126 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/node/src/main/java/scatours/LaunchNode.java @@ -0,0 +1,65 @@ +/* + * 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 new file mode 100644 index 0000000000..d642fa3d17 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/pom.xml @@ -0,0 +1,124 @@ + + + + 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 new file mode 100644 index 0000000000..f1a45cb031 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/main/java/payment/Payment.java @@ -0,0 +1,26 @@ +/* + * 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 new file mode 100644 index 0000000000..aa8f3cd01a --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/main/java/payment/PaymentImpl.java @@ -0,0 +1,54 @@ +/* + * 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 new file mode 100644 index 0000000000..b40c341389 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/main/resources/CreditCardPayment.wsdl @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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 new file mode 100644 index 0000000000..d22f4816ab --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,25 @@ + + + + + + + + \ 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 new file mode 100644 index 0000000000..21bf6ff428 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/test/java/payment/PaymentTestCase.java @@ -0,0 +1,76 @@ +/* + * 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 new file mode 100644 index 0000000000..b7d44c1abe --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/test/java/payment/creditcard/CreditCardPaymentImpl.java @@ -0,0 +1,44 @@ +/* + * 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 new file mode 100644 index 0000000000..90665e86e0 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/payment-contribution/src/test/resources/payment.composite @@ -0,0 +1,34 @@ + + + + + + + + + + + + + \ 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 new file mode 100644 index 0000000000..7d7bee30ff --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/pom.xml @@ -0,0 +1,48 @@ + + + + 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 new file mode 100644 index 0000000000..9bb124b5d0 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/build.xml @@ -0,0 +1,108 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..958aed8d7b --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/pom.xml @@ -0,0 +1,71 @@ + + + + 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 new file mode 100644 index 0000000000..8ca8fbf133 Binary files /dev/null and b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/scatours.odg 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 new file mode 100644 index 0000000000..f68cd84704 Binary files /dev/null and b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/scatours.png 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 new file mode 100644 index 0000000000..764030c28e --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + \ 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 new file mode 100644 index 0000000000..53fac26d3e --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/src/main/resources/scatours.composite @@ -0,0 +1,178 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 new file mode 100644 index 0000000000..f4206548c0 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/src/main/resources/scatours.html @@ -0,0 +1,390 @@ + + + +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 new file mode 100644 index 0000000000..6e17c2747b --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/chapter-09/ui-contribution/src/main/resources/style.css @@ -0,0 +1,135 @@ +/* + * 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 new file mode 100644 index 0000000000..609aa00ebc --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/.classpath @@ -0,0 +1,7 @@ + + + + + + + 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 new file mode 100644 index 0000000000..e4a44c86de --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/.project @@ -0,0 +1,33 @@ + + + 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 new file mode 100644 index 0000000000..7bda31e187 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/AndroidManifest.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + \ 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 new file mode 100644 index 0000000000..6b8ae52b90 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/default.properties @@ -0,0 +1,22 @@ +# 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 new file mode 100644 index 0000000000..777832aa4c --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/gen/scatours/android/R.java @@ -0,0 +1,35 @@ +/* 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 new file mode 100644 index 0000000000..75024841d3 Binary files /dev/null and b/sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/res/drawable/icon.png 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 new file mode 100644 index 0000000000..cb7ae6acb6 --- /dev/null +++ b/sca-java-1.x/trunk/tutorials/travelsample/contrib/scatours-android-ui/res/layout/search.xml @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + +