You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by sv...@apache.org on 2007/09/16 19:34:03 UTC
svn commit: r576131 -
/incubator/tuscany/branches/sca-java-1.0/samples/simple-bigbank-spring/README
Author: svkrish
Date: Sun Sep 16 10:34:02 2007
New Revision: 576131
URL: http://svn.apache.org/viewvc?rev=576131&view=rev
Log:
applying corrections submitted in https://issues.apache.org/jira/browse/TUSCANY-1714
Modified:
incubator/tuscany/branches/sca-java-1.0/samples/simple-bigbank-spring/README
Modified: incubator/tuscany/branches/sca-java-1.0/samples/simple-bigbank-spring/README
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-1.0/samples/simple-bigbank-spring/README?rev=576131&r1=576130&r2=576131&view=diff
==============================================================================
--- incubator/tuscany/branches/sca-java-1.0/samples/simple-bigbank-spring/README (original)
+++ incubator/tuscany/branches/sca-java-1.0/samples/simple-bigbank-spring/README Sun Sep 16 10:34:02 2007
@@ -23,18 +23,20 @@
Sample Overview
---------------
-The sample provides a composite with two java components wired together
-with a default binding. A request to the AccountComponent results in a
-request to the AccountDataComponent to get account data. The data returns
-back via the AccountComponent to the client.
+This sample demonstrates a simple bank summary transaction using Spring for one of the components.
+
+A request to the AccountComponent results in a request to the AccountDataComponent to get account data
+which is based on a random stock quote price. Therefore result for this sample will vary on each run.
+
simple-bigbank-spring/
src/
main/
java/
bigbank/
- account/ - AccountComponent implementation
- accountdata/ - AccountDataComponent implementation
+ account/ - AccountComponent implementation using Spring
+ accountdata/ - AccountDataComponent implementation using Spring
+ sockquote/ - stockquote implementation using Java
client/ - starts the SCA Runtime and
deploys the BigBank.composite.
It then calls the deployed AccountService
@@ -60,11 +62,15 @@
ant compile
ant run
-You should see the following output from the run target.
+You should see the following output.
+** Please note that balance amount will vary depending on the random stock value.
run:
+ [java] Spring parent context - getBean called for name: stockQuoteService
+ [java] Getting stock quote for: IBM, value: 104.97
[java] Account summary: currency: USD, [ID:Foo_CHA12345, balance:1500.0, ID
-:Foo_SAA12345, balance:1500.0, ID:Foo_STA12345, symbol:IBM, quantity:100]
+:Foo_SAA12345, balance:1500.0, ID:Foo_STA12345, symbol:IBM, quantity:100, balance:10497.0]
+
Building And Running The Sample Using Maven
-------------------------------------------
@@ -75,17 +81,19 @@
mvn
You should see the following output from the test phase.
+** Please note that balance amount will vary depending on the random stock value.
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running bigbank.BigBankTestCase
+Getting stock quote for: IBM, value: 104.02
Account summary: currency: USD, [ID:Foo_CHA12345, balance:1500.0, ID:Foo_SAA1234
-5, balance:1500.0, ID:Foo_STA12345, symbol:IBM, quantity:100, balance:10432.0]]
-Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.592 sec
+5, balance:1500.0, ID:Foo_STA12345, symbol:IBM, quantity:100, balance:10402.0]
+Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.502 sec
Results :
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
-This shows that the Junit test cases have run successfully.
\ No newline at end of file
+This shows that the Junit test cases have run successfully.
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org