summaryrefslogtreecommitdiffstats
path: root/java/sca/samples/simple-bigbank-spring/README
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2008-08-13 11:24:14 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2008-08-13 11:24:14 +0000
commita547b84aa11668a8d8a4a9b99442d95a586d8de8 (patch)
treef61f85816a87e2f8112a7fbc2333dc7de4bf5282 /java/sca/samples/simple-bigbank-spring/README
parent76350b074c8ef62ba4f1d95ece7bc43921ea9e4b (diff)
TUSCANY-2543: apply patch from Ramkumar Ramalingam to Demostrate Explicit/Implicit services, references in Spring BigBank Sample
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@685520 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/samples/simple-bigbank-spring/README')
-rw-r--r--java/sca/samples/simple-bigbank-spring/README73
1 files changed, 61 insertions, 12 deletions
diff --git a/java/sca/samples/simple-bigbank-spring/README b/java/sca/samples/simple-bigbank-spring/README
index 900a006141..bb44d63719 100644
--- a/java/sca/samples/simple-bigbank-spring/README
+++ b/java/sca/samples/simple-bigbank-spring/README
@@ -1,25 +1,74 @@
Spring Bigbank Sample
-=================
-This sample implements a simple a version of the BigBank scenrio used in
-various places in the SCA specification documents.
+======================
+This sample is made of 3 modules that represent the different aspects of a fictitious banking application.
-The README in the samples directory (the directory above this) provides
-general instructions about building and running samples. Take a look there
-first.
+To run the simple-bigbank-spring sample you need to first run spring-bigbank-calculator, spring-bigbank-checkaccount and spring-bigbank-stockquote composites.
+This will bring up Tuscany runtime and load the three applications and make them available as services.
+Bigbank-Spring is dependent on these services.
-If you just want to run it to see what happens open a command prompt, navigate
-to this sample directory and do:
+This demo uses ant. This is just one way of running this demo.
+Start Spring-Bigbank-calculator Composite
+-----------------------------------------
+
+Spring-Bigbank-calculator is a calculator application which handles add, subtract, multiply and divide operations. Each of these operations is implemented in a different language, including JavaScript, groovy, Ruby and Python.
+
+To run the spring-bigbank-calculator composite and make it available as a service for this demo do the following:
+
+cd spring-bigbank-calculator
+ant compile
ant run
-OR if you don't have ant, on Windows do
+.. Leave the server running
+
+Note that 'ant compile' needs to be done the first time you run this demo out of the binary distribution. No need to do 'ant compile' from there on.
+
+Start Spring-Bigbank-checkaccount Composite
+-------------------------------------------
+
+This contains all artifacts that deal with the account management within the bigbank. The services offered by the bigbank-account module are used by the bigbank.
+
+cd spring-bigbank-checkaccount
+ant compile
+ant run
+
+.. Leave the server running
+
+Note that 'ant compile' needs to be done the first time you run this demo out of the binary distribution. No need to do 'ant compile' from there on.
+
+Start Spring-Bigbank-stockquote Composite
+-----------------------------------------
+
+A very simple web services based stock quote application which returns random
+stock quotes on request. Please note that the stockquote service is not live and is implemented instead to allow for this application to always run without dependency on the availability of a webservice.
+
+cd spring-bigbank-stockquote
+ant compile
+ant run
+
+.. Leave the server running
+
+Start Spring Bigbank
+--------------------
+This contains all artifacts that make up the bigbank application. This is the application that the end user interacts with
-java -cp ..\..\lib\tuscany-sca-manifest.jar;target\sample-simple-bigbank-spring.jar bigbank.client.BigBankClient
+Start spring-bigbank in the following way:
-and on *nix do
+i ) Compile the spring-bigbank as follows :
+
+ cd simple-bigbank-spring
+ ant compile
+
+ii) Now start the bigbank service as follows :
+
+ cd bigbank
+ ant compile
+ ant run
-java -cp ../../lib/tuscany-sca-manifest.jar:target/sample-simple-bigbank-spring.jar bigbank.client.BigBankClient
+ .. Leave the server running
+Note that 'ant compile' needs to be done the first time you run this demo out ofthe binary distribution.
+No need to do 'ant compile' from there on.
Sample Overview
---------------