summaryrefslogtreecommitdiffstats
path: root/branches/sca-java-1.0/demos/bigbank-account/README
blob: e3e1949da402a283fca3577271e6ed1a69b42f26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
BigBank Demo
============

This application is made of 3 modules that represent the different aspects 
of a fictitious banking application. Please see bigbank.png in the bigbank-account directory for a diagram of this demo.

To run the bigbank-account demo you need to first run bigbank-calculator and bigbank-stockquote composites. This will bring up Tuscany runtime and load the two applications and make them available as services. Bigbank-account is dependent on these services.

This demo uses ant. This is just one way of running this demo. 

Start Bigbank-calculator composite
----------------------------------

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 bigbank-calculator composite and make it available as a service for this demo do the following:

cd bigbank-calculator
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 Bigbank-stockquote
------------------------

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 bigbank-stockquote
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 Bigbank-account 
---------------------
  
Bigbank-account is entry point to this application running on Tuscany. Bigbank-account composite calls into bigbank-stockquote and bigbank-calculator services. Start bigbank-account in the following way:

cd bigbank-account
ant compile 
ant run

.. 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.

Run the demo
------------- 
The front end of this demo application is a web app which users Json/RPC to communicate with the backend for retrieving account information. 

To try the app out point you browser at:

http://localhost:8080/AccountJSON.html

This should display an interface with a single button that goes and retrieves 
a single set of account details exercising services across the three running 
SCA applications. 

If you press on getAccountReport, you'll see a response posted, but the detail of the data will be displayed in the screen where you started bigbank-account.


Stop the demo
-------------
Go to each of the corresponding command line screens and hit 'enter'. This will stop each of the applications.