You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by na...@apache.org on 2010/10/26 11:42:52 UTC

svn commit: r1027424 - in /tuscany/sca-java-1.x/trunk/demos/xml-bigbank: ./ README

Author: nash
Date: Tue Oct 26 09:42:52 2010
New Revision: 1027424

URL: http://svn.apache.org/viewvc?rev=1027424&view=rev
Log:
Merge r1001702 Update properties for generated build.xml

Modified:
    tuscany/sca-java-1.x/trunk/demos/xml-bigbank/   (props changed)
    tuscany/sca-java-1.x/trunk/demos/xml-bigbank/README

Propchange: tuscany/sca-java-1.x/trunk/demos/xml-bigbank/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Tue Oct 26 09:42:52 2010
@@ -7,7 +7,7 @@ dojo
 derby.log
 maven.log
 maven-eclipse.xml
-build-dependency.xml
+build.xml
 velocity.log*
 junit*.properties
 surefire*.properties

Modified: tuscany/sca-java-1.x/trunk/demos/xml-bigbank/README
URL: http://svn.apache.org/viewvc/tuscany/sca-java-1.x/trunk/demos/xml-bigbank/README?rev=1027424&r1=1027423&r2=1027424&view=diff
==============================================================================
--- tuscany/sca-java-1.x/trunk/demos/xml-bigbank/README (original)
+++ tuscany/sca-java-1.x/trunk/demos/xml-bigbank/README Tue Oct 26 09:42:52 2010
@@ -1,47 +1,57 @@
 XML BigBank Demo
 ================
 
-This demo showcases the integration with XML technolgies in the service assembly.
+This demo showcases the integration with XML technologies in the service assembly.
 
 Note: The live currency exchange rate RSS feed and the live stock quote web service are not always running.
 When this happens, the demo code uses historical data instead of live data.
 
-To run the demo, type "ant run" and it will produce the following output.
+To run the demo, do the following:
 
-Buildfile: build.xml
+cd xml-bigbank
+ant run
+
+You should see output similar to the following:
 
-init:
-      [get] Getting: http://www.swanandmokashi.com/HomePage/WebServices/StockQuotes.asmx?WSDL
-      [get] To: C:\Apache\tuscany-sca-1.0.1-incubating\demos\xml-bigbank\src\main\resources\wsdl\StockQuotes.wsdl
-      [get] local file date : Tue Nov 06 15:50:37 PST 2007
-      [get] .
-      [get] last modified = Wed Dec 31 16:00:00 PST 1969 - using current time instead
-    [mkdir] Created dir: C:\Apache\tuscany-sca-1.0.1-incubating\demos\xml-bigbank\target\classes
-
-compile:
-    [javac] Compiling 11 source files to C:\Apache\tuscany-sca-1.0.1-incubating\demos\xml-bigbank\target\classes
-     [copy] Copying 6 files to C:\Apache\tuscany-sca-1.0.1-incubating\demos\xml-bigbank\target\classes
-      [jar] Building jar: C:\Apache\tuscany-sca-1.0.1-incubating\demos\xml-bigbank\target\demo-xml-bigbank.jar
+Buildfile: build.xml
 
 run:
-     [java] Nov 6, 2007 3:52:28 PM org.apache.axis2.deployment.DeploymentEngine loadFromClassPath
-     [java] INFO: Module validation failed: The system is attempting to engage a module that is not available: rampart
      [java] Retrieving exchange rate...
-     [java] Nov 6, 2007 3:52:29 PM org.apache.tuscany.sca.binding.feed.provider.RSSBindingInvoker invoke
-     [java] INFO: >>> RSSBindingInvoker (rss_2.0) http://ansuz.sooke.bc.ca/rippy/exchange/?M=R&B=USD&F=CAD,CNY,EUR&T=F&S=O&I=S
-     [java] Exchange rate: USD 1.0=EUR 0.68705
+     [java] Exchange rate live quote not available, using historical data
      [java] Loading account data...
      [java] Getting stock quote...
-     [java] Nov 6, 2007 3:52:30 PM org.apache.commons.httpclient.HttpMethodBase readResponse
-     [java] INFO: Discarding unexpected response: HTTP/1.1 100 Continue
+     [java] Server responded: <StockQuotes><Stock><Symbol>IBM</Symbol><Last>134.
+11</Last><Date>9/24/2010</Date><Time>4:00pm</Time><Change>0.00</Change><Open>N/A
+</Open><High>N/A</High><Low>N/A</Low><Volume>400</Volume><MktCap>169.1B</MktCap>
+<PreviousClose>134.11</PreviousClose><PercentageChange>0.00%</PercentageChange><
+AnnRange>116.00 - 134.25</AnnRange><Earns>10.582</Earns><P-E>12.67</P-E><Name>In
+ternational Bus</Name></Stock></StockQuotes>
      [java] Calculating total value...
      [java] Checking Balance: xs:double: 1000
-     [java] Saving Blance: xs:double: 20000
-     [java] Stock Value: xs:integer: 0
-     [java] Total Value [1]: xs:double: 21000
-     [java] Total Value=USD 21000.0
-     [java] EUR: 14428.050000000001
+     [java] Saving Balance: xs:double: 20000
+     [java] Stock Price [1]: xs:double: 134.11
+     [java] Quantity: xs:double: 500
+     [java] Stock Value: xs:double: 67055
+     [java] Total Value [1]: xs:double: 88055
+     [java] Total Value=USD 88055.0
+     [java] EUR: 65254.91885
 
 BUILD SUCCESSFUL
-Total time: 7 seconds
+Total time: 5 seconds
+
+
+Building the Demo Using Ant
+---------------------------
+With the binary distribution the demo can be built using Ant as follows:
+
+cd xml-bigbank
+ant compile
+
+
+Building the Demo Using Maven 
+-----------------------------
+With either the binary or source distribution the demo can be built using
+Maven as follows:
 
+cd xml-bigbank
+mvn