From 3d3670cdd4ee1aaf6d3e22fd7de7fb362c9eefba Mon Sep 17 00:00:00 2001 From: slaws Date: Sun, 24 Jan 2010 14:24:14 +0000 Subject: [PATCH] Copy into trunk from sandbox git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@902572 13f79535-47bb-0310-9956-ffa450edef68 --- .../trunk/tutorials/travelsample/README | 255 +++ .../trunk/tutorials/travelsample/antdefs.xml | 447 +++++ .../trunk/tutorials/travelsample/build.xml | 49 + .../tutorials/travelsample/clients/build.xml | 47 + .../currency-converter-corba/build.xml | 42 + .../clients/currency-converter-corba/pom.xml | 85 + .../CurrencyConverterCORBAClient.java | 41 + .../src/main/resources/currency-converter.idl | 29 + .../clients/currency-converter-jms/build.xml | 42 + .../clients/currency-converter-jms/pom.xml | 105 ++ .../scatours/CurrencyConverterJMSClient.java | 103 + .../clients/currency-converter-rmi/build.xml | 36 + .../clients/currency-converter-rmi/pom.xml | 59 + .../currencyconverter/CurrencyConverter.java | 30 + .../scatours/CurrencyConverterRMIClient.java | 36 + .../currency-converter-ws-jaxws/build.xml | 44 + .../currency-converter-ws-jaxws/pom.xml | 89 + .../scatours/CurrencyConverterWSClient.java | 33 + .../resources/wsdl/CurrencyConverter.wsdl | 115 ++ .../tutorials/travelsample/clients/pom.xml | 49 + .../META-INF/MANIFEST.MF | 28 + .../OSGI-INF/sca/bundle.componentType | 34 + .../OSGI-INF/sca/bundle.composite | 46 + .../pom.xml | 240 +++ .../scatours/currency/CurrencyConverter.java | 33 + .../currency/impl/CurrencyConverterImpl.java | 55 + .../impl/CreditCardPaymentActivator.java | 40 + .../impl/CreditCardPaymentImpl.java | 97 + .../src/main/resources/CreditCardPayment.wsdl | 118 ++ .../test/CreditCardPaymentClient.java | 54 + .../test/CreditCardPaymentOSGiTestCase.java | 127 ++ .../creditcard/test/OSGiTestUtils.java | 105 ++ .../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 + .../pom.xml | 117 ++ .../scatours/currency/CurrencyConverter.java | 33 + .../impl/CurrencyConverterActivator.java | 40 + .../currency/impl/CurrencyConverterImpl.java | 55 + .../travelsample/contrib/chapter-01/build.xml | 52 + .../travelsample/contrib/chapter-01/pom.xml | 78 + .../java/client/CurrencyConverterClient.java | 46 + .../src/main/java/client/TripClient.java | 45 + .../currencyconverter/CurrencyConverter.java | 31 + .../CurrencyConverterImpl.java | 32 + .../chapter-01/src/main/java/trip/Trip.java | 26 + .../src/main/java/trip/TripImpl.java | 42 + .../resources/currencyconverter.composite | 29 + .../src/main/resources/trip.composite | 34 + .../travelsample/contrib/chapter-02/build.xml | 45 + .../chapter-02/client-contribution/build.xml | 45 + .../chapter-02/client-contribution/pom.xml | 48 + .../main/java/scatours/client/TestClient.java | 46 + .../resources/META-INF/sca-contribution.xml | 25 + .../src/main/resources/client.composite | 29 + .../goodvaluetrips-contribution/build.xml | 44 + .../goodvaluetrips-contribution/pom.xml | 42 + .../java/com/goodvaluetrips/TripProvider.java | 26 + .../main/java/com/goodvaluetrips/Trips.java | 26 + .../resources/META-INF/sca-contribution.xml | 24 + .../src/main/resources/trips.composite | 30 + .../chapter-02/node-jumpstart/build.xml | 56 + .../contrib/chapter-02/node-jumpstart/pom.xml | 70 + .../src/main/java/scatours/LaunchNode.java | 53 + .../resources/META-INF/sca-contribution.xml | 26 + .../src/main/resources/scatours.composite | 31 + .../src/test/java/scatours/NodeTestCase.java | 60 + .../contrib/chapter-02/node/build.xml | 56 + .../contrib/chapter-02/node/pom.xml | 63 + .../src/main/java/scatours/LaunchNode.java | 52 + .../resources/META-INF/sca-contribution.xml | 26 + .../src/main/resources/scatours.composite | 31 + .../src/test/java/scatours/NodeTestCase.java | 60 + .../travelsample/contrib/chapter-02/pom.xml | 48 + .../tuscanyscatours-contribution/build.xml | 44 + .../tuscanyscatours-contribution/pom.xml | 42 + .../main/java/com/goodvaluetrips/Trips.java | 26 + .../java/com/tuscanyscatours/Bookings.java | 26 + .../java/com/tuscanyscatours/Checkout.java | 26 + .../com/tuscanyscatours/ShoppingCart.java | 28 + .../java/com/tuscanyscatours/TripBooking.java | 35 + .../java/com/tuscanyscatours/Updates.java | 26 + .../resources/META-INF/sca-contribution.xml | 25 + .../src/main/resources/tours.composite | 46 + .../travelsample/contrib/chapter-03/pom.xml | 46 + .../contrib/chapter-05/node/build.xml | 278 +++ .../contrib/chapter-05/node/pom.xml | 164 ++ .../src/main/java/scatours/LaunchNode.java | 65 + .../travelsample/contrib/chapter-05/pom.xml | 46 + .../chapter-05/ui-contribution/build.xml | 116 ++ .../chapter-05/ui-contribution/pom.xml | 88 + .../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 .../src/main/resources/style.css | 135 ++ .../contrib/chapter-06/node/build.xml | 214 +++ .../contrib/chapter-06/node/pom.xml | 186 ++ .../java/scatours/LaunchBPELExampleNode.java | 66 + .../scatours/LaunchSpringExampleNode.java | 66 + .../log4j.properties | 36 + .../payment-bpel-contribution/pom.xml | 181 ++ .../src/main/resources/CreditCardPayment.wsdl | 117 ++ .../src/main/resources/EmailGateway.wsdl | 89 + .../resources/META-INF/sca-contribution.xml | 23 + .../src/main/resources/Payment.wsdl | 83 + .../src/main/resources/payment.bpel | 164 ++ .../scatours/payment/PaymentTestCase.java | 71 + .../payment/client/PaymentClientImpl.java | 37 + .../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 + .../resources/META-INF/sca-contribution.xml | 22 + .../src/main/resources/Payment.wsdl | 83 + .../src/main/resources/payment.composite | 48 + .../main/resources/payment/PaymentImpl.groovy | 31 + .../test/java/payment/PaymentTestCase.java | 76 + .../payment/client/PaymentClientImpl.java | 37 + .../creditcard/CreditCardPaymentImpl.java | 41 + .../emailgateway/EmailGatewayImpl.java | 29 + .../pom.xml | 166 ++ .../src/main/java/payment/PaymentImpl.java | 78 + .../emailgateway/EmailGatewayImpl.java | 29 + .../src/main/resources/CreditCardPayment.wsdl | 116 ++ .../src/main/resources/EmailGateway.wsdl | 89 + .../resources/META-INF/sca-contribution.xml | 24 + .../src/main/resources/Payment-context.xml | 44 + .../src/main/resources/Payment.wsdl | 83 + .../test/java/payment/PaymentTestCase.java | 73 + .../payment/client/PaymentClientImpl.java | 37 + .../resources/META-INF/sca-contribution.xml | 24 + .../src/test/resources/payment.composite | 48 + .../payment-spring-contribution/pom.xml | 184 ++ .../src/main/java/payment/PaymentImpl.java | 64 + .../emailgateway/EmailGatewayImpl.java | 29 + .../src/main/resources/CreditCardPayment.wsdl | 116 ++ .../src/main/resources/EmailGateway.wsdl | 89 + .../resources/META-INF/sca-contribution.xml | 23 + .../src/main/resources/Payment-context.xml | 34 + .../src/main/resources/Payment.wsdl | 83 + .../test/java/payment/PaymentTestCase.java | 73 + .../payment/client/PaymentClientImpl.java | 37 + .../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 + .../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 ++ .../ui-spring-contribution/build.xml | 117 ++ .../chapter-06/ui-spring-contribution/pom.xml | 88 + .../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 + .../ui-contribution-webapp/build.xml | 106 ++ .../chapter-08/ui-contribution-webapp/pom.xml | 103 + .../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 ++ .../pom.xml | 130 ++ .../payment/creditcard/CreditCardPayment.java | 39 + .../impl/CreditCardPaymentImpl.java | 47 + .../src/main/resources/CreditCardPayment.wsdl | 117 ++ .../resources/META-INF/sca-contribution.xml | 25 + .../src/main/resources/creditcard.composite | 35 + .../creditcard/CreditCardPaymentTestCase.java | 86 + .../contrib/chapter-09/node/build.xml | 210 +++ .../contrib/chapter-09/node/pom.xml | 144 ++ .../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 ++ .../resources/META-INF/sca-contribution.xml | 25 + .../test/java/payment/PaymentTestCase.java | 76 + .../creditcard/CreditCardPaymentImpl.java | 44 + .../src/test/resources/payment.composite | 34 + .../travelsample/contrib/chapter-09/pom.xml | 48 + .../chapter-09/ui-contribution/build.xml | 108 ++ .../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 .../resources/META-INF/sca-contribution.xml | 37 + .../src/main/resources/scatours.composite | 178 ++ .../src/main/resources/scatours.html | 390 ++++ .../src/main/resources/style.css | 135 ++ .../contrib/scatours-android-ui/.classpath | 7 + .../contrib/scatours-android-ui/.project | 33 + .../scatours-android-ui/AndroidManifest.xml | 17 + .../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 + .../res/values/strings.xml | 7 + .../src/scatours/SCAToursSearch.java | 29 + .../src/scatours/SCAToursSearchProxy.java | 81 + .../src/scatours/android/TripSearch.java | 186 ++ .../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 + .../resources/META-INF/sca-contribution.xml | 22 + .../src/main/resources/calendar.composite | 29 + .../test/java/calendar/CalendarTestCase.java | 47 + .../src/test/resources/calendar.composite | 29 + .../car-contribution/pom.xml | 62 + .../src/main/java/scatours/car/CarImpl.java | 100 + .../src/main/java/scatours/car/CarInfo.java | 120 ++ .../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 + .../java/scatours/common/SearchCallback.java | 27 + .../main/java/scatours/common/TripItem.java | 219 +++ .../main/java/scatours/common/TripLeg.java | 97 + .../resources/META-INF/sca-contribution.xml | 22 + .../pom.xml | 131 ++ .../creditcard/CreditCardPaymentImpl.java | 44 + .../src/main/resources/CreditCardPayment.wsdl | 116 ++ .../resources/META-INF/sca-contribution.xml | 22 + .../creditcard/CreditCardPaymentTestCase.java | 83 + .../resources/META-INF/sca-contribution.xml | 22 + .../src/test/resources/creditcard.composite | 34 + .../currency-contribution/pom.xml | 57 + .../currencyconverter/CurrencyConverter.java | 33 + .../CurrencyConverterImpl.java | 54 + .../resources/META-INF/sca-contribution.xml | 22 + .../emailgateway-contribution/pom.xml | 124 ++ .../emailgateway/EmailGatewayImpl.java | 36 + .../src/main/resources/EmailGateway.wsdl | 89 + .../resources/META-INF/sca-contribution.xml | 22 + .../emailgateway/EmailGatewayTestCase.java | 80 + .../client/EmailGatewayClientImpl.java | 41 + .../src/test/resources/EmailGatewayImpl.java | 36 + .../resources/META-INF/sca-contribution.xml | 22 + .../src/test/resources/emailgateway.composite | 37 + .../flight-contribution/pom.xml | 62 + .../main/java/scatours/flight/FlightImpl.java | 127 ++ .../main/java/scatours/flight/FlightInfo.java | 142 ++ .../resources/META-INF/sca-contribution.xml | 23 + .../hotel-contribution/pom.xml | 62 + .../main/java/scatours/hotel/HotelImpl.java | 116 ++ .../main/java/scatours/hotel/HotelInfo.java | 120 ++ .../resources/META-INF/sca-contribution.xml | 23 + .../payment-java-contribution/pom.xml | 155 ++ .../src/main/java/payment/PaymentImpl.java | 88 + .../creditcard/CreditCardPaymentImpl.java | 50 + .../main/java/scatours/customer/Customer.java | 70 + .../customer/CustomerNotFoundException.java | 58 + .../scatours/customer/CustomerRegistry.java | 39 + .../customer/CustomerRegistryImpl.java | 112 ++ .../scatours/emailgateway/EmailGateway.java | 30 + .../emailgateway/EmailGatewayImpl.java | 35 + .../src/main/resources/CreditCardPayment.wsdl | 130 ++ .../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 + .../test/java/payment/PaymentTestCase.java | 77 + .../contrib/shared-contributions/pom.xml | 58 + .../scatours-contribution/pom.xml | 94 + .../main/java/scatours/SCAToursBooking.java | 32 + .../src/main/java/scatours/SCAToursCart.java | 33 + .../src/main/java/scatours/SCAToursImpl.java | 99 + .../main/java/scatours/SCAToursSearch.java | 32 + .../resources/META-INF/sca-contribution.xml | 26 + .../shoppingcart-contribution/pom.xml | 119 ++ .../scatours/shoppingcart/ShoppingCart.java | 39 + .../shoppingcart/ShoppingCartImpl.java | 95 + .../resources/META-INF/sca-contribution.xml | 24 + .../src/main/resources/Payment.wsdl | 83 + .../travelcatalog-contribution/pom.xml | 74 + .../travelcatalog/TravelCatalogImpl.java | 132 ++ .../travelcatalog/TravelCatalogSearch.java | 32 + .../resources/META-INF/sca-contribution.xml | 24 + .../trip-contribution/pom.xml | 62 + .../src/main/java/scatours/trip/TripImpl.java | 106 ++ .../src/main/java/scatours/trip/TripInfo.java | 142 ++ .../resources/META-INF/sca-contribution.xml | 23 + .../tripbooking-contribution/build.xml | 61 + .../tripbooking-contribution/pom.xml | 74 + .../scatours/tripbooking/TripBooking.java | 32 + .../scatours/tripbooking/TripBookingImpl.java | 135 ++ .../resources/META-INF/sca-contribution.xml | 25 + .../contributions/blog-feed/build.xml | 22 + .../contributions/blog-feed/pom.xml | 80 + .../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 + .../resources/META-INF/sca-contribution.xml | 21 + .../src/main/resources/blog-feed.composite | 58 + .../travelsample/contributions/build.xml | 96 + .../buildingblocks-client/build.xml | 22 + .../buildingblocks-client/pom.xml | 125 ++ .../src/main/java/scatours/Bookings.java | 26 + .../src/main/java/scatours/Checkout.java | 28 + .../java/scatours/impl/ApplClientImpl.java | 52 + .../java/scatours/impl/ToursClientImpl.java | 47 + .../resources/META-INF/sca-contribution.xml | 26 + .../resources/tours-appl-client.composite | 40 + .../resources/tours-impl-client.composite | 32 + .../tours-impl-include-client.composite | 32 + .../scatours/BuildingBlocksApplTestCase.java | 77 + .../BuildingBlocksImplIncludeTestCase.java | 59 + .../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 + .../budgettours/impl/TourProviderImpl.java | 28 + .../main/java/com/goodvaluetrips/Trips.java | 26 + .../java/com/tuscanyscatours/Bookings.java | 26 + .../java/com/tuscanyscatours/Checkout.java | 28 + .../java/com/tuscanyscatours/Updates.java | 26 + .../impl/ShoppingCartImpl.java | 49 + .../tuscanyscatours/impl/TripBookingImpl.java | 39 + .../java/scatours/impl/TripProviderImpl.java | 28 + .../resources/META-INF/sca-contribution.xml | 27 + .../src/main/resources/tours-appl.composite | 54 + .../resources/tours-impl-include.composite | 33 + .../src/main/resources/tours-impl.composite | 34 + .../src/main/resources/tours.composite | 43 + .../BuildingBlocksImplIncludeTestCase.java | 66 + .../scatours/BuildingBlocksImplTestCase.java | 65 + .../contributions/calendar/build.xml | 22 + .../contributions/calendar/pom.xml | 64 + .../tuscanyscatours/calendar/Calendar.java | 25 + .../calendar/impl/CalendarImpl.java | 47 + .../resources/META-INF/sca-contribution.xml | 23 + .../scatours/calendar/CalendarTestCase.java | 57 + .../resources/META-INF/sca-contribution.xml | 23 + .../src/test/resources/calendar.composite | 28 + .../travelsample/contributions/car/build.xml | 25 + .../travelsample/contributions/car/pom.xml | 62 + .../com/tuscanyscatours/car/impl/CarImpl.java | 91 + .../com/tuscanyscatours/car/impl/CarInfo.java | 118 ++ .../resources/META-INF/sca-contribution.xml | 23 + .../contributions/common/build.xml | 22 + .../travelsample/contributions/common/pom.xml | 56 + .../java/com/tuscanyscatours/common/Book.java | 27 + .../com/tuscanyscatours/common/Search.java | 37 + .../common/SearchCallback.java | 33 + .../com/tuscanyscatours/common/TripItem.java | 242 +++ .../com/tuscanyscatours/common/TripLeg.java | 85 + .../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 ++ .../impl/CreditCardPaymentImpl.java | 46 + .../src/main/resources/CreditCardPayment.wsdl | 134 ++ .../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 + .../creditcard-payment-jaxb/pom.xml | 144 ++ .../impl/CreditCardPaymentImpl.java | 46 + .../src/main/resources/CreditCardPayment.wsdl | 134 ++ .../resources/META-INF/sca-contribution.xml | 24 + .../src/main/resources/creditcard.composite | 33 + .../creditcard/CreditCardPaymentTestCase.java | 100 + .../creditcard-payment-sdo/build.xml | 31 + .../creditcard-payment-sdo/pom.xml | 130 ++ .../payment/creditcard/CreditCardPayment.java | 33 + .../impl/CreditCardPaymentImpl.java | 46 + .../src/main/resources/CreditCardPayment.wsdl | 117 ++ .../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 ++ .../main/webapp/META-INF/sca-contribution.xml | 23 + .../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 + .../resources/META-INF/sca-contribution.xml | 23 + .../currency-converter-corba.composite | 32 + .../contributions/currency-jms/build.xml | 22 + .../contributions/currency-jms/pom.xml | 83 + .../resources/META-INF/sca-contribution.xml | 23 + .../currency-converter-jms.composite | 37 + .../contributions/currency-jsp/build.xml | 22 + .../contributions/currency-jsp/pom.xml | 65 + .../META-INF/sca-deployables/web.composite | 34 + .../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 + .../resources/META-INF/sca-contribution.xml | 23 + .../currency-converter-rmi.composite | 32 + .../contributions/currency-servlet/build.xml | 25 + .../contributions/currency-servlet/pom.xml | 72 + .../servlet/CurrencyConverterServlet.java | 73 + .../META-INF/sca-deployables/web.composite | 34 + .../src/main/webapp/WEB-INF/web.xml | 52 + .../contributions/currency-ws/build.xml | 22 + .../contributions/currency-ws/pom.xml | 57 + .../resources/META-INF/sca-contribution.xml | 23 + .../resources/currency-converter-ws.composite | 31 + .../contributions/currency/build.xml | 22 + .../contributions/currency/pom.xml | 57 + .../currencyconverter/CurrencyConverter.java | 33 + .../impl/CurrencyConverterImpl.java | 53 + .../resources/META-INF/sca-contribution.xml | 23 + .../resources/currency-converter.composite | 28 + .../databinding-client/build.xml | 25 + .../contributions/databinding-client/pom.xml | 48 + .../main/java/scatours/client/TestClient.java | 40 + .../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 + .../resources/META-INF/sca-contribution.xml | 25 + .../src/main/resources/emailgateway.composite | 32 + .../emailgateway/EmailGatewayTestCase.java | 76 + .../client/impl/EmailGatewayClientImpl.java | 41 + .../resources/META-INF/sca-contribution.xml | 25 + .../resources/emailgateway-test.composite | 32 + .../contributions/feed-logger/build.xml | 22 + .../contributions/feed-logger/pom.xml | 80 + .../feedlogger/FeedLogger.java | 30 + .../feedlogger/impl/FeedLoggerImpl.java | 99 + .../resources/META-INF/sca-contribution.xml | 21 + .../src/main/resources/feed-logger.composite | 40 + .../contributions/flight/build.xml | 25 + .../travelsample/contributions/flight/pom.xml | 62 + .../flight/impl/FlightImpl.java | 121 ++ .../flight/impl/FlightInfo.java | 140 ++ .../resources/META-INF/sca-contribution.xml | 23 + .../fullapp-bespoketrip/build.xml | 22 + .../contributions/fullapp-bespoketrip/pom.xml | 90 + .../resources/META-INF/sca-contribution.xml | 28 + .../resources/fullapp-bespoketrip.composite | 63 + .../fullapp-coordination/build.xml | 22 + .../fullapp-coordination/pom.xml | 90 + .../resources/META-INF/sca-contribution.xml | 30 + .../resources/fullapp-coordination.composite | 72 + .../contributions/fullapp-currency/build.xml | 22 + .../contributions/fullapp-currency/pom.xml | 90 + .../resources/META-INF/sca-contribution.xml | 25 + .../main/resources/fullapp-currency.composite | 28 + .../fullapp-packagedtrip/build.xml | 22 + .../fullapp-packagedtrip/pom.xml | 90 + .../resources/META-INF/sca-contribution.xml | 25 + .../resources/fullapp-packagedtrip.composite | 37 + .../fullapp-shoppingcart/build.xml | 22 + .../fullapp-shoppingcart/pom.xml | 90 + .../resources/META-INF/sca-contribution.xml | 26 + .../resources/fullapp-shoppingcart.composite | 36 + .../contributions/fullapp-ui/build.xml | 22 + .../contributions/fullapp-ui/pom.xml | 90 + .../resources/META-INF/sca-contribution.xml | 28 + .../src/main/resources/fullapp-ui.composite | 58 + .../src/main/resources/scatours.html | 399 ++++ .../src/main/resources/scatours.odg | Bin 0 -> 11880 bytes .../src/main/resources/scatours.png | Bin 0 -> 16554 bytes .../fullapp-ui/src/main/resources/style.css | 135 ++ .../contributions/help-pages/build.xml | 22 + .../contributions/help-pages/pom.xml | 71 + .../resources/META-INF/sca-contribution.xml | 22 + .../src/main/resources/help-pages.composite | 32 + .../resources/help_pages/BookingAHoliday.html | 34 + .../resources/help_pages/BookingAHotel.html | 34 + .../resources/help_pages/MakingPayments.html | 34 + .../src/main/resources/help_pages/index.html | 59 + .../contributions/hotel/build.xml | 25 + .../travelsample/contributions/hotel/pom.xml | 62 + .../com/tuscanyscatours/hotel/HotelInfo.java | 118 ++ .../hotel/HotelManagement.java | 24 + .../tuscanyscatours/hotel/impl/HotelImpl.java | 105 ++ .../resources/META-INF/sca-contribution.xml | 24 + .../interaction-client/build.xml | 28 + .../contributions/interaction-client/pom.xml | 72 + .../InteractionConversationClientImpl.java | 73 + .../impl/InteractionLocalClientImpl.java | 53 + .../InteractionOneWayCallbackClientImpl.java | 78 + .../impl/InteractionRemoteClientImpl.java | 64 + .../InteractionRequestResponseClientImpl.java | 39 + ...InteractionStatefulCallbackClientImpl.java | 98 + .../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 + .../resources/META-INF/sca-contribution.xml | 26 + .../src/main/resources/service.composite | 48 + .../introducing-client/build.xml | 25 + .../contributions/introducing-client/pom.xml | 48 + .../scatours/client/impl/TestClientImpl.java | 47 + .../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 + .../main/java/com/goodvaluetrips/Trips.java | 26 + .../java/com/tuscanyscatours/Bookings.java | 26 + .../java/com/tuscanyscatours/Checkout.java | 28 + .../java/com/tuscanyscatours/Updates.java | 26 + .../impl/ShoppingCartImpl.java | 49 + .../tuscanyscatours/impl/TripBookingImpl.java | 39 + .../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 + .../main/java/com/goodvaluetrips/Trips.java | 26 + .../goodvaluetrips/impl/TripProviderImpl.java | 28 + .../resources/META-INF/sca-contribution.xml | 24 + .../src/main/resources/trips.composite | 30 + .../notification-corba/build.xml | 22 + .../contributions/notification-corba/pom.xml | 57 + .../resources/META-INF/sca-contribution.xml | 24 + .../resources/notification-corba.composite | 36 + .../contributions/notification-ejb/build.xml | 22 + .../contributions/notification-ejb/pom.xml | 56 + .../resources/META-INF/sca-contribution.xml | 24 + .../main/resources/notification-ejb.composite | 35 + .../contributions/notification-jms/build.xml | 22 + .../contributions/notification-jms/pom.xml | 57 + .../resources/META-INF/sca-contribution.xml | 24 + .../main/resources/notification-jms.composite | 41 + .../contributions/notification-rmi/build.xml | 22 + .../contributions/notification-rmi/pom.xml | 57 + .../resources/META-INF/sca-contribution.xml | 24 + .../main/resources/notification-rmi.composite | 36 + .../contributions/notification-ws/build.xml | 22 + .../contributions/notification-ws/pom.xml | 57 + .../resources/META-INF/sca-contribution.xml | 24 + .../main/resources/notification-ws.composite | 35 + .../contributions/notification/build.xml | 22 + .../contributions/notification/pom.xml | 57 + .../notification/Notification.java | 26 + .../notification/impl/NotificationImpl.java | 58 + .../smsgateway/SMSGateway.java | 30 + .../resources/META-INF/sca-contribution.xml | 24 + .../contributions/payment-bpel/build.xml | 49 + .../payment-bpel/log4j.properties | 36 + .../contributions/payment-bpel/pom.xml | 203 ++ .../src/main/resources/CreditCardPayment.wsdl | 117 ++ .../src/main/resources/EmailGateway.wsdl | 89 + .../resources/META-INF/sca-contribution.xml | 25 + .../src/main/resources/Payment.wsdl | 83 + .../src/main/resources/payment.bpel | 164 ++ .../src/main/resources/payment.composite | 40 + .../scatours/payment/PaymentTestCase.java | 81 + .../client/impl/PaymentClientImpl.java | 37 + .../resources/META-INF/sca-contribution.xml | 24 + .../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 + .../resources/META-INF/sca-contribution.xml | 24 + .../src/main/resources/Payment.wsdl | 83 + .../src/main/resources/payment.composite | 38 + .../main/resources/payment/PaymentImpl.groovy | 31 + .../scatours/payment/PaymentTestCase.java | 82 + .../client/impl/PaymentClientImpl.java | 37 + .../resources/META-INF/sca-contribution.xml | 23 + .../test/resources/payment-client.composite | 32 + .../payment-java-policy/build.xml | 35 + .../payment-java-policy/maven-eclipse.xml | 8 + .../contributions/payment-java-policy/pom.xml | 176 ++ .../tuscanyscatours/customer/Customer.java | 70 + .../customer/CustomerNotFoundException.java | 57 + .../customer/CustomerRegistry.java | 39 + .../customer/impl/CustomerRegistryImpl.java | 115 ++ .../emailgateway/EmailGateway.java | 30 + .../emailgateway/impl/EmailGatewayImpl.java | 37 + .../payment/impl/PaymentImpl.java | 74 + .../src/main/resources/CreditCardPayment.wsdl | 132 ++ .../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 + .../scatours/payment/PaymentTestCase.java | 85 + .../contributions/payment-java/build.xml | 35 + .../contributions/payment-java/pom.xml | 167 ++ .../tuscanyscatours/customer/Customer.java | 70 + .../customer/CustomerNotFoundException.java | 57 + .../customer/CustomerRegistry.java | 39 + .../customer/impl/CustomerRegistryImpl.java | 115 ++ .../emailgateway/EmailGateway.java | 30 + .../emailgateway/impl/EmailGatewayImpl.java | 37 + .../payment/impl/PaymentImpl.java | 69 + .../src/main/resources/CreditCardPayment.wsdl | 132 ++ .../resources/META-INF/sca-contribution.xml | 24 + .../src/main/resources/Payment.wsdl | 83 + .../src/main/resources/definitions.xml | 34 + .../src/main/resources/payment.composite | 46 + .../scatours/payment/PaymentTestCase.java | 75 + .../payment-spring-policy/build.xml | 40 + .../payment-spring-policy/pom.xml | 189 ++ .../tuscanyscatours/customer/Customer.java | 70 + .../customer/CustomerNotFoundException.java | 57 + .../customer/CustomerRegistry.java | 39 + .../customer/impl/CustomerRegistryImpl.java | 113 ++ .../emailgateway/impl/EmailGatewayImpl.java | 32 + .../payment/impl/PaymentImpl.java | 77 + .../src/main/resources/CreditCardPayment.wsdl | 118 ++ .../src/main/resources/EmailGateway.wsdl | 89 + .../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 + .../scatours/payment/PaymentTestCase.java | 70 + .../client/impl/PaymentClientImpl.java | 37 + .../resources/META-INF/sca-contribution.xml | 24 + .../test/resources/payment-client.composite | 31 + .../payment-spring-scatag/build.xml | 40 + .../payment-spring-scatag/pom.xml | 189 ++ .../emailgateway/impl/EmailGatewayImpl.java | 32 + .../payment/impl/PaymentImpl.java | 76 + .../src/main/resources/CreditCardPayment.wsdl | 118 ++ .../src/main/resources/EmailGateway.wsdl | 89 + .../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 + .../scatours/payment/PaymentTestCase.java | 71 + .../client/impl/PaymentClientImpl.java | 37 + .../resources/META-INF/sca-contribution.xml | 24 + .../test/resources/payment-client.composite | 31 + .../contributions/payment-spring/build.xml | 40 + .../contributions/payment-spring/pom.xml | 189 ++ .../tuscanyscatours/customer/Customer.java | 70 + .../customer/CustomerNotFoundException.java | 57 + .../customer/CustomerRegistry.java | 39 + .../customer/impl/CustomerRegistryImpl.java | 115 ++ .../emailgateway/impl/EmailGatewayImpl.java | 32 + .../payment/impl/PaymentImpl.java | 77 + .../src/main/resources/CreditCardPayment.wsdl | 118 ++ .../src/main/resources/EmailGateway.wsdl | 89 + .../resources/META-INF/sca-contribution.xml | 24 + .../src/main/resources/Payment-context.xml | 39 + .../src/main/resources/Payment.wsdl | 83 + .../src/main/resources/payment.composite | 35 + .../scatours/payment/PaymentTestCase.java | 70 + .../client/impl/PaymentClientImpl.java | 37 + .../resources/META-INF/sca-contribution.xml | 24 + .../test/resources/payment-client.composite | 31 + .../contributions/policy-client/build.xml | 30 + .../policy-client/maven-eclipse.xml | 8 + .../contributions/policy-client/pom.xml | 88 + .../main/java/scatours/client/TestClient.java | 38 + .../resources/META-INF/sca-contribution.xml | 24 + .../src/main/resources/Payment.wsdl | 83 + .../src/main/resources/client.composite | 28 + .../travelsample/contributions/pom.xml | 98 + .../contributions/scatours/build.xml | 28 + .../contributions/scatours/pom.xml | 80 + .../com/tuscanyscatours/SCAToursBooking.java | 31 + .../com/tuscanyscatours/SCAToursCart.java | 35 + .../com/tuscanyscatours/SCAToursSearch.java | 32 + .../tuscanyscatours/impl/SCAToursImpl.java | 84 + .../resources/META-INF/sca-contribution.xml | 27 + .../contributions/shoppingcart/build.xml | 33 + .../contributions/shoppingcart/pom.xml | 119 ++ .../shoppingcart/CartCheckout.java | 26 + .../shoppingcart/CartInitialize.java | 30 + .../shoppingcart/CartStore.java | 41 + .../shoppingcart/CartUpdates.java | 30 + .../shoppingcart/impl/CartStoreImpl.java | 70 + .../shoppingcart/impl/ShoppingCartImpl.java | 104 + .../resources/META-INF/sca-contribution.xml | 25 + .../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 ++ .../resources/META-INF/sca-contribution.xml | 25 + .../travelsample/contributions/trip/build.xml | 26 + .../travelsample/contributions/trip/pom.xml | 83 + .../tuscanyscatours/trip/impl/TripImpl.java | 94 + .../tuscanyscatours/trip/impl/TripInfo.java | 140 ++ .../resources/META-INF/sca-contribution.xml | 23 + .../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 + .../contributions/tripbooking/pom.xml | 74 + .../tripbooking/TripBooking.java | 32 + .../tripbooking/impl/TripBookingImpl.java | 91 + .../resources/META-INF/sca-contribution.xml | 26 + .../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 + .../travelsample/domainconfig/build.xml | 45 + .../domainconfig/fullapp/build.xml | 22 + .../travelsample/domainconfig/fullapp/pom.xml | 79 + .../src/main/resources/cloud.composite | 35 + .../cloud/fullapp-bespoketrip.composite | 36 + .../cloud/fullapp-coordination.composite | 36 + .../cloud/fullapp-creditcard.composite | 36 + .../cloud/fullapp-currency.composite | 36 + .../cloud/fullapp-packagedtrip.composite | 35 + .../resources/cloud/fullapp-payment.composite | 36 + .../cloud/fullapp-shoppingcart.composite | 36 + .../main/resources/cloud/fullapp-ui.composite | 33 + .../src/main/resources/domain.composite | 35 + .../main/resources/workspace-distribution.xml | 41 + .../fullapp/src/main/resources/workspace.xml | 41 + .../domainconfig/introducing/build.xml | 22 + .../domainconfig/introducing/pom.xml | 79 + .../src/main/resources/cloud.composite | 26 + .../main/resources/cloud/ClientNode.composite | 32 + .../main/resources/cloud/ToursNode.composite | 32 + .../main/resources/cloud/TripsNode.composite | 32 + .../src/main/resources/domain.composite | 26 + .../main/resources/workspace-distribution.xml | 30 + .../src/main/resources/workspace.xml | 30 + .../travelsample/domainconfig/pom.xml | 47 + .../launchers/blog-feed/build.xml | 35 + .../travelsample/launchers/blog-feed/pom.xml | 110 ++ .../main/java/scatours/BlogFeedLauncher.java | 50 + .../travelsample/launchers/build.xml | 69 + .../launchers/buildingblocks/build.xml | 35 + .../launchers/buildingblocks/pom.xml | 130 ++ .../java/scatours/BuildingBlocksLauncher.java | 92 + .../src/main/resources/jndi.properties | 39 + .../java/scatours/BuildingBlocksTestCase.java | 42 + .../currency-converter-corba/build.xml | 51 + .../currency-converter-corba/pom.xml | 104 + .../CurrencyConverterCORBALauncher.java | 52 + .../currencyconverter/CurrencyConverter.java | 33 + .../currency-converter-jms/build.xml | 54 + .../launchers/currency-converter-jms/pom.xml | 115 ++ .../CurrencyConverterJMSLauncher.java | 45 + .../main/java/scatours/JMSBrokerLauncher.java | 38 + .../currency-converter-rmi/build.xml | 42 + .../launchers/currency-converter-rmi/pom.xml | 111 ++ .../currencyconverter/CurrencyConverter.java | 33 + .../CurrencyConverterRMILauncher.java | 52 + .../launchers/currency-converter-ws/build.xml | 42 + .../launchers/currency-converter-ws/pom.xml | 105 ++ .../scatours/CurrencyConverterWSLauncher.java | 53 + .../currencyconverter/CurrencyConverter.java | 33 + .../launchers/currency-converter/build.xml | 35 + .../launchers/currency-converter/pom.xml | 90 + .../scatours/CurrencyConverterLauncher.java | 48 + .../currencyconverter/CurrencyConverter.java | 33 + .../launchers/databinding/build.xml | 35 + .../launchers/databinding/pom.xml | 169 ++ .../java/scatours/DatabindingLauncher.java | 45 + .../launchers/feed-logger/build.xml | 35 + .../launchers/feed-logger/pom.xml | 111 ++ .../java/scatours/FeedLoggerLauncher.java | 44 + .../java/scatours/feedlogger/FeedLogger.java | 30 + .../launchers/fullapp-domain/build.xml | 54 + .../launchers/fullapp-domain/pom.xml | 115 ++ .../scatours/FullAppDomainAPILauncher.java | 42 + .../java/scatours/FullAppDomainLauncher.java | 30 + .../launchers/fullapp-nodes/build.xml | 37 + .../launchers/fullapp-nodes/pom.xml | 212 +++ .../java/scatours/FullAppNodesLauncher.java | 78 + .../travelsample/launchers/fullapp/build.xml | 35 + .../travelsample/launchers/fullapp/pom.xml | 208 ++ .../main/java/scatours/FullAppLauncher.java | 67 + .../launchers/help-pages/build.xml | 35 + .../travelsample/launchers/help-pages/pom.xml | 104 + .../main/java/scatours/HelpPagesLauncher.java | 44 + .../launchers/interaction/build.xml | 35 + .../launchers/interaction/pom.xml | 104 + .../java/scatours/InteractionLauncher.java | 74 + .../java/scatours/InteractionTestCase.java | 42 + .../launchers/introducing-client/build.xml | 44 + .../launchers/introducing-client/pom.xml | 93 + .../scatours/IntroducingClientLauncher.java | 38 + .../launchers/introducing-domain/build.xml | 54 + .../launchers/introducing-domain/pom.xml | 80 + .../IntroducingDomainAPILauncher.java | 42 + .../scatours/IntroducingDomainLauncher.java | 30 + .../launchers/introducing-tours/build.xml | 33 + .../launchers/introducing-tours/pom.xml | 58 + .../scatours/IntroducingToursLauncher.java | 30 + .../launchers/introducing-trips/build.xml | 33 + .../launchers/introducing-trips/pom.xml | 58 + .../scatours/IntroducingTripsLauncher.java | 30 + .../launchers/introducing/build.xml | 35 + .../launchers/introducing/pom.xml | 90 + .../java/scatours/IntroducingLauncher.java | 44 + .../java/scatours/IntroducingTestCase.java | 62 + .../launchers/jumpstart/build.xml | 35 + .../travelsample/launchers/jumpstart/pom.xml | 90 + .../main/java/scatours/JumpstartLauncher.java | 44 + .../src/main/java/scatours/Trips.java | 26 + .../test/java/scatours/JumpstartTestCase.java | 56 + .../launchers/notification-corba/build.xml | 53 + .../launchers/notification-corba/pom.xml | 104 + .../scatours/NotificationCORBALauncher.java | 54 + .../scatours/notification/Notification.java | 26 + .../launchers/notification-ejb/build.xml | 42 + .../launchers/notification-ejb/pom.xml | 110 ++ .../scatours/NotificationEJBLauncher.java | 59 + .../scatours/notification/Notification.java | 26 + .../launchers/notification-jms/build.xml | 45 + .../launchers/notification-jms/pom.xml | 148 ++ .../scatours/NotificationJMSLauncher.java | 56 + .../scatours/notification/Notification.java | 26 + .../launchers/notification-rmi/build.xml | 41 + .../launchers/notification-rmi/pom.xml | 104 + .../smsgateway/SMSGateway.java | 30 + .../scatours/NotificationRMILauncher.java | 54 + .../scatours/notification/Notification.java | 26 + .../launchers/notification-ws/build.xml | 41 + .../launchers/notification-ws/pom.xml | 104 + .../java/scatours/NotificationWSLauncher.java | 54 + .../scatours/notification/Notification.java | 26 + .../launchers/payment-bpel/build.xml | 35 + .../launchers/payment-bpel/pom.xml | 136 ++ .../MakePaymentMemberResponseType.java | 62 + .../payment/MakePaymentMemberType.java | 82 + .../payment/ObjectFactory.java | 71 + .../com/tuscanyscatours/payment/Payment.java | 43 + .../payment/PaymentService.java | 71 + .../tuscanyscatours/payment/package-info.java | 2 + .../scatours/payment/PaymentLauncher.java | 48 + .../launchers/payment-groovy/build.xml | 35 + .../launchers/payment-groovy/pom.xml | 111 ++ .../emailgateway/EmailGateway.java | 40 + .../emailgateway/EmailGatewayService.java | 71 + .../emailgateway/EmailType.java | 118 ++ .../emailgateway/ObjectFactory.java | 79 + .../emailgateway/SendEmailResponseType.java | 62 + .../emailgateway/SendEmailType.java | 62 + .../emailgateway/package-info.java | 2 + .../MakePaymentMemberResponseType.java | 62 + .../payment/MakePaymentMemberType.java | 82 + .../payment/ObjectFactory.java | 71 + .../com/tuscanyscatours/payment/Payment.java | 43 + .../payment/PaymentService.java | 71 + .../tuscanyscatours/payment/package-info.java | 2 + .../scatours/payment/PaymentLauncher.java | 47 + .../launchers/payment-java-policy/build.xml | 35 + .../launchers/payment-java-policy/pom.xml | 104 + .../MakePaymentMemberResponseType.java | 62 + .../payment/MakePaymentMemberType.java | 82 + .../payment/ObjectFactory.java | 71 + .../com/tuscanyscatours/payment/Payment.java | 43 + .../payment/PaymentService.java | 71 + .../tuscanyscatours/payment/package-info.java | 2 + .../scatours/payment/PaymentLauncher.java | 47 + .../launchers/payment-java/build.xml | 35 + .../launchers/payment-java/pom.xml | 104 + .../MakePaymentMemberResponseType.java | 62 + .../payment/MakePaymentMemberType.java | 82 + .../payment/ObjectFactory.java | 71 + .../com/tuscanyscatours/payment/Payment.java | 43 + .../payment/PaymentService.java | 71 + .../tuscanyscatours/payment/package-info.java | 2 + .../scatours/payment/PaymentLauncher.java | 47 + .../launchers/payment-spring-scatag/build.xml | 35 + .../launchers/payment-spring-scatag/pom.xml | 118 ++ .../MakePaymentMemberResponseType.java | 62 + .../payment/MakePaymentMemberType.java | 82 + .../payment/ObjectFactory.java | 71 + .../com/tuscanyscatours/payment/Payment.java | 43 + .../payment/PaymentService.java | 71 + .../tuscanyscatours/payment/package-info.java | 2 + .../scatours/payment/PaymentLauncher.java | 47 + .../launchers/payment-spring/build.xml | 35 + .../launchers/payment-spring/pom.xml | 118 ++ .../MakePaymentMemberResponseType.java | 62 + .../payment/MakePaymentMemberType.java | 82 + .../payment/ObjectFactory.java | 71 + .../com/tuscanyscatours/payment/Payment.java | 43 + .../payment/PaymentService.java | 71 + .../tuscanyscatours/payment/package-info.java | 2 + .../scatours/payment/PaymentLauncher.java | 47 + .../travelsample/launchers/policy/build.xml | 35 + .../launchers/policy/maven-eclipse.xml | 8 + .../travelsample/launchers/policy/pom.xml | 111 ++ .../main/java/scatours/PolicyLauncher.java | 49 + .../tutorials/travelsample/launchers/pom.xml | 77 + .../trunk/tutorials/travelsample/pom.xml | 106 ++ .../tutorials/travelsample/services/build.xml | 49 + .../creditcard-payment-jaxws/build.xml | 31 + .../services/creditcard-payment-jaxws/pom.xml | 59 + .../creditcard/CreditCardService.java | 34 + .../CreditCardServiceBootstrap.java | 31 + .../creditcard/CreditCardServiceImpl.java | 34 + .../tutorials/travelsample/services/pom.xml | 51 + .../services/smsgateway-corba/build.xml | 45 + .../services/smsgateway-corba/pom.xml | 85 + .../SMSGatewayCORBAServiceBootstrap.java | 62 + .../smsgateway/SMSGatewayServant.java | 30 + .../src/main/resources/sms-gateway.idl | 26 + .../services/smsgateway-ejb/build.xml | 34 + .../services/smsgateway-ejb/pom.xml | 101 + .../smsgateway/SMSGateway.java | 30 + .../SMSGatewayEJBServiceBootstrap.java | 45 + .../smsgateway/SMSGatewayImpl.java | 33 + .../src/main/resources/META-INF/ejb-jar.xml | 2 + .../services/smsgateway-jaxws/build.xml | 31 + .../services/smsgateway-jaxws/pom.xml | 59 + .../smsgateway/SMSGatewayService.java | 32 + .../SMSGatewayServiceBootstrap.java | 31 + .../smsgateway/SMSGatewayServiceImpl.java | 33 + .../services/smsgateway-jms/build.xml | 47 + .../services/smsgateway-jms/pom.xml | 104 + .../main/java/scatours/JMSBrokerLauncher.java | 38 + .../java/scatours/smsgateway/SMSGateway.java | 30 + .../scatours/smsgateway/SMSGatewayImpl.java | 126 ++ .../SMSGatewayJMSServiceBootstrap.java | 40 + .../services/smsgateway-rmi/build.xml | 30 + .../services/smsgateway-rmi/pom.xml | 59 + .../smsgateway/SMSGateway.java | 30 + .../smsgateway/SMSGatewayImpl.java | 39 + .../SMSGatewayRMIServiceBootstrap.java | 40 + .../travelsample/testdomain/build.xml | 42 + .../tutorials/travelsample/testdomain/pom.xml | 58 + .../travelsample/travel-scenario.odg | Bin 0 -> 22472 bytes .../travelsample/travel-scenariotemplate.odg | Bin 0 -> 13467 bytes .../tutorials/travelsample/util/build.xml | 44 + .../util/launcher-common/build.xml | 22 + .../travelsample/util/launcher-common/pom.xml | 58 + .../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 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 0000000000000000000000000000000000000000..8ca8fbf1338ec340a6ae4948f0421519070bb4ce GIT binary patch literal 11477 zcmbt)1yoht*7lKZ5ozh}I)orCUDAk@#5r_#N{1jF(k0zp64G%%kS+lc=@JP6Ise9c z-%qdq``+>WNEK#Mr^X#?sW-#nRr6)6LF|!`|50(wW2F0b*xnZ|Z6bv2)=tcQSUcurzg6{SQC@ z<9~z{C_T2fgIb!qI{k!l=HYa9F?MlvHZgYM{FfdYFzhXn|4{-8jDMqNY-$RzfdDY} zPMoH$PENNBJZx~GTe_j9PG>^R8?fL zF-S20J#2Y7DRtmVb$g%zU?8bCFZ)3tAfQT`(m)ji@&|q(fB)Ol&kIoO>goc4;J^sZdxd z6#mm-fCtc=3WLI6Q20;#0a`%sR5%m{hr)ll1Mn8$9>5=f0|1Kw69Jn5BLLO_O@J3b z1Q;2B2CxAzKpW@|v;#K)fu*Lxf4UN|5EvM!!(gfKpPmH_26zC?FnB8br=x+e0C4~u z4|p1IE#OPQd4RV7_W=F?8~|7hmL#eR^&~1jGag0^oJP&9?ytd^NL5Nc5B%rZ6cgxWYH#QA?-_GnU(bH=A)()j zk%Wh8&Xu?>ohx=47Syd8j9K6Hd=dG~wo9&lR67|-zA@n@!gmSY)M@rUmm}FnK2asU zF(6~6=6#6p=K7i-9sR~=jKFTNjh5ODTYCogNY=e18Qt>9jg37c${UrS`52uSo(b%P zLh3}0gtjv*6&8sF1lJ5XnaMgDrZrn!oo$VmXG-$(oTWBomh)YvSSX5JL zY1UxG$`$Gp^!?HEv?h1^b4RW6fwPcW#Ns^3&HUx^f~!m2WY@wxNs;+iElZ7=og)v3XzClPZx)Jo}#+o_HHt{}@Un1Y`3XLXn8m*#?kzZ$2Dx8_TKrl_BFrW%2~VHJNpe^y3Krm8eOpwt5*oM+e{7$T2DOdUF; zDbl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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 0000000000000000000000000000000000000000..f68cd847042a299627636ecc7ae9ef0af05a7e85 GIT binary patch literal 11061 zcmYLP1yozx(uNQqIKd^jmQvg`K#)ROKB3`$`4EWpX`?Q{#=%{lv-zcU(Icc7P=gs8^5!&bA_-Z z4X)MpJR!*<;~y*^9?WkBsIU9BW&3$Zv1^Lke+W69abDwm6}z4$c2~`Le^M>b9HRD0 zh+?EkMDSfndjCr6eZ%@B0mRDZ>AV-4lJ6=~syA(MesuD>_(n04Hd_gD;QNX%)LZO&CB*f|6_yz`zM;OfiK6mUmpfD=g_I>#eEsef zX7sMJLjQE$H}yTydRaB;Ggu`GqaQPXOOSCpK#)@49?hPX*YmpNd40!m^Y!DaoagM(zN&rauCQNpJ!wAFhxeWF~%Xo~q}#*wr9$7AV?kWf6aQ_ew( z5qmyiq|W2M-I%46=USl7(?JuPw1H5hc*$-j9$wSw+6OzKinY@pr44VcW1m(p+5)#; zaj9qpxiquOq4>^5bieD){*_bvd$hs0=}OKV+5+42%#);`dGhEUIctt$*1KnYv#`{KALzi2@iQ1V?(bIUB@C_Mv_U>nt zOoJx&XbUerO_Y`6Y5*_BKJB6M4%-WlAJ?am@UrIpa+=>M{2wCu)M>Xn_|P zMWeFe)X`gFJNmUPn8WVp5duWcaEId>9Qt8Am_b!1WF8E_A>Juah*wTjVn~vjklCnLy`I{sjnQDtR|ccg#5W&)03^39s%kORqycoU78SgWM>I ziTS&O&luZ^hTLqJIVB=_M;60cP&RBfa^$Fiw<96r`MK9bQR=c05}Goh#40QMVpM!8 zpek*BH7XZSex1dN9{CHBzo z627!(N?OX!G`38hgyU;Pdo!eY7(7VujcJliUW1EuT5Hf?)CrwrdR+87nF$P2Ir^N9 z!*EDY$Dj24)p>DrH~Iz)JQq#o6TdM3i36W)kNogExA2 zucuABda8xAevLBhb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FD1oJOiuGrJI$0!Bo+ z5Ml9OQ=n}l{i>^Oo|J5}_M-4-|C$a=^ literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..8ca8fbf1338ec340a6ae4948f0421519070bb4ce GIT binary patch literal 11477 zcmbt)1yoht*7lKZ5ozh}I)orCUDAk@#5r_#N{1jF(k0zp64G%%kS+lc=@JP6Ise9c z-%qdq``+>WNEK#Mr^X#?sW-#nRr6)6LF|!`|50(wW2F0b*xnZ|Z6bv2)=tcQSUcurzg6{SQC@ z<9~z{C_T2fgIb!qI{k!l=HYa9F?MlvHZgYM{FfdYFzhXn|4{-8jDMqNY-$RzfdDY} zPMoH$PENNBJZx~GTe_j9PG>^R8?fL zF-S20J#2Y7DRtmVb$g%zU?8bCFZ)3tAfQT`(m)ji@&|q(fB)Ol&kIoO>goc4;J^
sZdxd z6#mm-fCtc=3WLI6Q20;#0a`%sR5%m{hr)ll1Mn8$9>5=f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Z7b#8kIn) zY@n~-r>a(O*c=o;co58Bk@-j>?4@JBEIOqI{|s*__6;5y$HVv>fA6)))sVy-YMhEq z9*-4!FqEf-H6mw18<#Hd(QaVmEEQe1_o7#q3*&NF7M9A)j+w)B1Yv9^^GR`-RrFJI4oIM3v}$|6Vf!7k9Mfk7xyPlMRpN9kEv@83@Ba?fNP1$HP6A zbh2;bbQ9qz4*}jnh=4aoRmD39_@IBzI|PFDoBWl9_@~xyT|l>adA~#rDE^t-_j{`0 zzefLkC;zW}!P{iRUlIWn|HS!+)WiQq?)KH{m#hNCKS6&b9{#6eerbXJFp&^&<)0|O zCnEkc&TT5aM{ z@jt=-OlACq#|=Cj|4)gHe?1F-Jz&3oM7qtt`X#f##AW&`8|zQS-?w6JzcKw1wtK&S zar#s5_c#9AjhbIV3H(ujoZg??Hh*gUz6kx#&>lVb=e>bHQGTC~Zx^h;B!T)rm#=?n i{ysz8&ey+WjNu<*ON< literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..f68cd847042a299627636ecc7ae9ef0af05a7e85 GIT binary patch literal 11061 zcmYLP1yozx(uNQqIKd^jmQvg`K#)ROKB3`$`4EWpX`?Q{#=%{lv-zcU(Icc7P=gs8^5!&bA_-Z z4X)MpJR!*<;~y*^9?WkBsIU9BW&3$Zv1^Lke+W69abDwm6}z4$c2~`Le^M>b9HRD0 zh+?EkMDSfndjCr6eZ%@B0mRDZ>AV-4lJ6=~syA(MesuD>_(n04Hd_gD;QNX%)LZO&CB*f|6_yz`zM;OfiK6mUmpfD=g_I>#eEsef zX7sMJLjQE$H}yTydRaB;Ggu`GqaQPXOOSCpK#)@49?hPX*YmpNd40!m^Y!DaoagM(zN&rauCQNpJ!wAFhxeWF~%Xo~q}#*wr9$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)QozVMQhx)4_x7qYW&{rCp=xDs`Tp%&$jI*z&9Zk0I#{Hk;&o zwq%uxaoYX5s;7SrxdkYLYY_J0HLM|L%uiYeJ~R;{Icz z6m4Q{3=;e>gb-gE97<1XMp!~BQgASyr^S<)E+t%r`*3*G+sM~_zzB`e9Q~Rt3UQ04 z9brX=k(05li7m4V$C^1u;9`sz#UbG^fxPkTLC%@Pj;n@JZbYx|H#+rVPUDvvT|1t4 zG_OgOz>$NnGK55KcIE!UJt*xbyLJ5V?0I~s;H5(^&KREC1pmbW3SOV|`*Ak%L2c?> zGMQk$+g}R`n2?v<85TJslHWg_=l0djc7?tWK^cxeUDvr_RW66Zb%RY^$l%?-fbBUtO= zk&2EWg08}$Ul^iWYW)FyMV(SQxjn|zmWU&bj7Vej^s2Y|Oy1KdoJUZ1wboNNGXl_IQLqh-N zb~vcco6=c`KH%S^hk*OEB7pHqC;rifALi%C-!{i@Cj-Ha7AheK zqb2{>I(&a5ptBB&&5~tk$69o9T0hv2Ht>H!WEEh1T(%hI+jFD1oJOiuGrJI$0!Bo+ z5Ml9OQ=n}l{i>^Oo|J5}_M-4-|C$a=^ literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..8ca8fbf1338ec340a6ae4948f0421519070bb4ce GIT binary patch literal 11477 zcmbt)1yoht*7lKZ5ozh}I)orCUDAk@#5r_#N{1jF(k0zp64G%%kS+lc=@JP6Ise9c z-%qdq``+>WNEK#Mr^X#?sW-#nRr6)6LF|!`|50(wW2F0b*xnZ|Z6bv2)=tcQSUcurzg6{SQC@ z<9~z{C_T2fgIb!qI{k!l=HYa9F?MlvHZgYM{FfdYFzhXn|4{-8jDMqNY-$RzfdDY} zPMoH$PENNBJZx~GTe_j9PG>^R8?fL zF-S20J#2Y7DRtmVb$g%zU?8bCFZ)3tAfQT`(m)ji@&|q(fB)Ol&kIoO>goc4;J^
sZdxd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lmz~=8j^AmA8*WlhuA+8fw(*5^L}>B6Ek-wnNs-d;-<>ImZ7b#8kIn) zY@n~-r>a(O*c=o;co58Bk@-j>?4@JBEIOqI{|s*__6;5y$HVv>fA6)))sVy-YMhEq z9*-4!FqEf-H6mw18<#Hd(QaVmEEQe1_o7#q3*&NF7M9A)j+w)B1Yv9^^GR`-RrFJI4oIM3v}$|6Vf!7k9Mfk7xyPlMRpN9kEv@83@Ba?fNP1$HP6A zbh2;bbQ9qz4*}jnh=4aoRmD39_@IBzI|PFDoBWl9_@~xyT|l>adA~#rDE^t-_j{`0 zzefLkC;zW}!P{iRUlIWn|HS!+)WiQq?)KH{m#hNCKS6&b9{#6eerbXJFp&^&<)0|O zCnEkc&TT5aM{ z@jt=-OlACq#|=Cj|4)gHe?1F-Jz&3oM7qtt`X#f##AW&`8|zQS-?w6JzcKw1wtK&S zar#s5_c#9AjhbIV3H(ujoZg??Hh*gUz6kx#&>lVb=e>bHQGTC~Zx^h;B!T)rm#=?n i{ysz8&ey+WjNu<*ON< literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..f68cd847042a299627636ecc7ae9ef0af05a7e85 GIT binary patch literal 11061 zcmYLP1yozx(uNQqIKd^jmQvg`K#)ROKB3`$`4EWpX`?Q{#=%{lv-zcU(Icc7P=gs8^5!&bA_-Z z4X)MpJR!*<;~y*^9?WkBsIU9BW&3$Zv1^Lke+W69abDwm6}z4$c2~`Le^M>b9HRD0 zh+?EkMDSfndjCr6eZ%@B0mRDZ>AV-4lJ6=~syA(MesuD>_(n04Hd_gD;QNX%)LZO&CB*f|6_yz`zM;OfiK6mUmpfD=g_I>#eEsef zX7sMJLjQE$H}yTydRaB;Ggu`GqaQPXOOSCpK#)@49?hPX*YmpNd40!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16DfuciE$g&1FGB}c1pI8sKvQ>0 zN3zt+9oCDU)0KW4Y)QozVMQhx)4_x7qYW&{rCp=xDs`Tp%&$jI*z&9Zk0I#{Hk;&o zwq%uxaoYX5s;7SrxdkYLYY_J0HLM|L%uiYeJ~R;{Icz z6m4Q{3=;e>gb-gE97<1XMp!~BQgASyr^S<)E+t%r`*3*G+sM~_zzB`e9Q~Rt3UQ04 z9brX=k(05li7m4V$C^1u;9`sz#UbG^fxPkTLC%@Pj;n@JZbYx|H#+rVPUDvvT|1t4 zG_OgOz>$NnGK55KcIE!UJt*xbyLJ5V?0I~s;H5(^&KREC1pmbW3SOV|`*Ak%L2c?> zGMQk$+g}R`n2?v<85TJslHWg_=l0djc7?tWK^cxeUDvr_RW66Zb%RY^$l%?-fbBUtO= zk&2EWg08}$Ul^iWYW)FyMV(SQxjn|zmWU&bj7Vej^s2Y|Oy1KdoJUZ1wboNNGXl_IQLqh-N zb~vcco6=c`KH%S^hk*OEB7pHqC;rifALi%C-!{i@Cj-Ha7AheK zqb2{>I(&a5ptBB&&5~tk$69o9T0hv2Ht>H!WEEh1T(%hI+jFD1oJOiuGrJI$0!Bo+ z5Ml9OQ=n}l{i>^Oo|J5}_M-4-|C$a=^ literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..8ca8fbf1338ec340a6ae4948f0421519070bb4ce GIT binary patch literal 11477 zcmbt)1yoht*7lKZ5ozh}I)orCUDAk@#5r_#N{1jF(k0zp64G%%kS+lc=@JP6Ise9c z-%qdq``+>WNEK#Mr^X#?sW-#nRr6)6LF|!`|50(wW2F0b*xnZ|Z6bv2)=tcQSUcurzg6{SQC@ z<9~z{C_T2fgIb!qI{k!l=HYa9F?MlvHZgYM{FfdYFzhXn|4{-8jDMqNY-$RzfdDY} zPMoH$PENNBJZx~GTe_j9PG>^R8?fL zF-S20J#2Y7DRtmVb$g%zU?8bCFZ)3tAfQT`(m)ji@&|q(fB)Ol&kIoO>goc4;J^
sZdxd z6#mm-fCtc=3WLI6Q20;#0a`%sR5%m{hr)ll1Mn8$9>5=f0|1Kw69Jn5BLLO_O@J3b z1Q;2B2CxAzKpW@|v;#K)fu*Lxf4UN|5EvM!!(gfKpPmH_26zC?FnB8br=x+e0C4~u z4|p1IE#OPQd4RV7_W=F?8~|7hmL#eR^&~1jGag0^oJP&9?ytd^NL5Nc5B%rZ6cgxWYH#QA?-_GnU(bH=A)()j zk%Wh8&Xu?>ohx=47Syd8j9K6Hd=dG~wo9&lR67|-zA@n@!gmSY)M@rUmm}FnK2asU zF(6~6=6#6p=K7i-9sR~=jKFTNjh5ODTYCogNY=e18Qt>9jg37c${UrS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#hNCKS6&b9{#6eerbXJFp&^&<)0|O zCnEkc&TT5aM{ z@jt=-OlACq#|=Cj|4)gHe?1F-Jz&3oM7qtt`X#f##AW&`8|zQS-?w6JzcKw1wtK&S zar#s5_c#9AjhbIV3H(ujoZg??Hh*gUz6kx#&>lVb=e>bHQGTC~Zx^h;B!T)rm#=?n i{ysz8&ey+WjNu<*ON< literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..f68cd847042a299627636ecc7ae9ef0af05a7e85 GIT binary patch literal 11061 zcmYLP1yozx(uNQqIKd^jmQvg`K#)ROKB3`$`4EWpX`?Q{#=%{lv-zcU(Icc7P=gs8^5!&bA_-Z z4X)MpJR!*<;~y*^9?WkBsIU9BW&3$Zv1^Lke+W69abDwm6}z4$c2~`Le^M>b9HRD0 zh+?EkMDSfndjCr6eZ%@B0mRDZ>AV-4lJ6=~syA(MesuD>_(n04Hd_gD;QNX%)LZO&CB*f|6_yz`zM;OfiK6mUmpfD=g_I>#eEsef zX7sMJLjQE$H}yTydRaB;Ggu`GqaQPXOOSCpK#)@49?hPX*YmpNd40!m^Y!DaoagM(zN&rauCQNpJ!wAFhxeWF~%Xo~q}#*wr9$7AV?kWf6aQ_ew( z5qmyiq|W2M-I%46=USl7(?JuPw1H5hc*$-j9$wSw+6OzKinY@pr44VcW1m(p+5)#; zaj9qpxiquOq4>^5bieD){*_bvd$hs0=}OKV+5+42%#);`dGhEUIctt$*1KnYv#`{KALzi2@iQ1V?(bIUB@C_Mv_U>nt zOoJx&XbUerO_Y`6Y5*_BKJB6M4%-WlAJ?am@UrIpa+=>M{2wCu)M>Xn_|P zMWeFe)X`gFJNmUPn8WVp5duWcaEId>9Qt8Am_b!1WF8E_A>Juah*wTjVn~vjklCnLy`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L2c?> zGMQk$+g}R`n2?v<85TJslHWg_=l0djc7?tWK^cxeUDvr_RW66Zb%RY^$l%?-fbBUtO= zk&2EWg08}$Ul^iWYW)FyMV(SQxjn|zmWU&bj7Vej^s2Y|Oy1KdoJUZ1wboNNGXl_IQLqh-N zb~vcco6=c`KH%S^hk*OEB7pHqC;rifALi%C-!{i@Cj-Ha7AheK zqb2{>I(&a5ptBB&&5~tk$69o9T0hv2Ht>H!WEEh1T(%hI+jFD1oJOiuGrJI$0!Bo+ z5Ml9OQ=n}l{i>^Oo|J5}_M-4-|C$a=^ literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..8ca8fbf1338ec340a6ae4948f0421519070bb4ce GIT binary patch literal 11477 zcmbt)1yoht*7lKZ5ozh}I)orCUDAk@#5r_#N{1jF(k0zp64G%%kS+lc=@JP6Ise9c z-%qdq``+>WNEK#Mr^X#?sW-#nRr6)6LF|!`|50(wW2F0b*xnZ|Z6bv2)=tcQSUcurzg6{SQC@ z<9~z{C_T2fgIb!qI{k!l=HYa9F?MlvHZgYM{FfdYFzhXn|4{-8jDMqNY-$RzfdDY} zPMoH$PENNBJZx~GTe_j9PG>^R8?fL zF-S20J#2Y7DRtmVb$g%zU?8bCFZ)3tAfQT`(m)ji@&|q(fB)Ol&kIoO>goc4;J^sZdxd z6#mm-fCtc=3WLI6Q20;#0a`%sR5%m{hr)ll1Mn8$9>5=f0|1Kw69Jn5BLLO_O@J3b z1Q;2B2CxAzKpW@|v;#K)fu*Lxf4UN|5EvM!!(gfKpPmH_26zC?FnB8br=x+e0C4~u z4|p1IE#OPQd4RV7_W=F?8~|7hmL#eR^&~1jGag0^oJP&9?ytd^NL5Nc5B%rZ6cgxWYH#QA?-_GnU(bH=A)()j zk%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@Ba?fNP1$HP6A zbh2;bbQ9qz4*}jnh=4aoRmD39_@IBzI|PFDoBWl9_@~xyT|l>adA~#rDE^t-_j{`0 zzefLkC;zW}!P{iRUlIWn|HS!+)WiQq?)KH{m#hNCKS6&b9{#6eerbXJFp&^&<)0|O zCnEkc&TT5aM{ z@jt=-OlACq#|=Cj|4)gHe?1F-Jz&3oM7qtt`X#f##AW&`8|zQS-?w6JzcKw1wtK&S zar#s5_c#9AjhbIV3H(ujoZg??Hh*gUz6kx#&>lVb=e>bHQGTC~Zx^h;B!T)rm#=?n i{ysz8&ey+WjNu<*ON< literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..f68cd847042a299627636ecc7ae9ef0af05a7e85 GIT binary patch literal 11061 zcmYLP1yozx(uNQqIKd^jmQvg`K#)ROKB3`$`4EWpX`?Q{#=%{lv-zcU(Icc7P=gs8^5!&bA_-Z z4X)MpJR!*<;~y*^9?WkBsIU9BW&3$Zv1^Lke+W69abDwm6}z4$c2~`Le^M>b9HRD0 zh+?EkMDSfndjCr6eZ%@B0mRDZ>AV-4lJ6=~syA(MesuD>_(n04Hd_gD;QNX%)LZO&CB*f|6_yz`zM;OfiK6mUmpfD=g_I>#eEsef zX7sMJLjQE$H}yTydRaB;Ggu`GqaQPXOOSCpK#)@49?hPX*YmpNd40!m^Y!DaoagM(zN&rauCQNpJ!wAFhxeWF~%Xo~q}#*wr9$7AV?kWf6aQ_ew( z5qmyiq|W2M-I%46=USl7(?JuPw1H5hc*$-j9$wSw+6OzKinY@pr44VcW1m(p+5)#; zaj9qpxiquOq4>^5bieD){*_bvd$hs0=}OKV+5+42%#);`dGhEUIctt$*1KnYv#`{KALzi2@iQ1V?(bIUB@C_Mv_U>nt zOoJx&XbUerO_Y`6Y5*_BKJB6M4%-WlAJ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C%@Pj;n@JZbYx|H#+rVPUDvvT|1t4 zG_OgOz>$NnGK55KcIE!UJt*xbyLJ5V?0I~s;H5(^&KREC1pmbW3SOV|`*Ak%L2c?> zGMQk$+g}R`n2?v<85TJslHWg_=l0djc7?tWK^cxeUDvr_RW66Zb%RY^$l%?-fbBUtO= zk&2EWg08}$Ul^iWYW)FyMV(SQxjn|zmWU&bj7Vej^s2Y|Oy1KdoJUZ1wboNNGXl_IQLqh-N zb~vcco6=c`KH%S^hk*OEB7pHqC;rifALi%C-!{i@Cj-Ha7AheK zqb2{>I(&a5ptBB&&5~tk$69o9T0hv2Ht>H!WEEh1T(%hI+jFD1oJOiuGrJI$0!Bo+ z5Ml9OQ=n}l{i>^Oo|J5}_M-4-|C$a=^ literal 0 HcmV?d00001 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 0000000000000000000000000000000000000000..75024841d327c4fbaefef7c8e9c8d0e892895f93 GIT binary patch literal 3180 zcmV-y43qPTP)-8%y z>?Lk&?1bQy00olTw5rOVwrM3QR77j2sF13vY1JS6sbZvxR;?=9{z8-xlkf-)&`7j@ zLPDIDmN(g8j2*{G>^OcucGvIhdUtxhGxyHUj@Mv*5J2jUj_=Ifnc4H5^PR_?jbWN5 zeUXQUzTo5k06yzs=!5%z{F9Jj7?1K{fTfRP;}p;BPws!b?{g2}k>CBkB{CIxbbfw5 zu&}U@aRCDXfOeKMEa3xB{pG?UJCJiQ7-_%)Z`S)Bu!3D(!%^gw)?^i4ZzND z5(~p)Pqpn2e^vmRc|IAcuA-ZF-YARX;}bMCF~RdV4Gs+pnCaHjJMX;HJ`Mx|A^?UlH$P8vbMxY*I4ckEIFH6+3?ya&Vy|ILPE5)y>q`lz z(_B8xIJ@terw_J$tOrz}(uKZ0DladihaP%}Mn*=ckIx$$8|ksf9uwu9W8J!S0tPdr zzOI(?^78D@alHj9W`m2z6ZWy?t(aVk<50es@0~tF16|#;?eG!uFD%mZ z#`P4b*-V3VTj<2GSHx4#J^Qq=S`UPC{Ql=jJHF3PH~H^w2ExJU@Re6|BvdxuT*%xZB*^{E4!MslIov^*2=VdbYw{>%ralpXsBTJONzHA^PWkyFn>KDF+S*{>I65{i;Ks(rv|-?F(4K05;!qqVhF00Nx$ zk~8}(qlwFkLKy&LVD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