tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From svkr...@apache.org
Subject svn commit: r600142 [1/3] - in /incubator/tuscany/java/sca/demos/secure-bigbank: ./ secure-bigbank-account/ secure-bigbank-account/src/ secure-bigbank-account/src/main/ secure-bigbank-account/src/main/java/ secure-bigbank-account/src/main/java/bigbank/...
Date Sat, 01 Dec 2007 14:45:04 GMT
Author: svkrish
Date: Sat Dec  1 06:44:55 2007
New Revision: 600142

URL: http://svn.apache.org/viewvc?rev=600142&view=rev
Log:
adding new demo to demonstrate security policies

Added:
    incubator/tuscany/java/sca/demos/secure-bigbank/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/DISCLAIMER
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/LICENSE
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/NOTICE
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/README
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/bigbank.png   (with props)
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/bigbank.svg
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/build-dojo.xml
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/build.xml
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/pom.xml
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/account/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/account/AccountService.java
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/account/AccountServiceImpl.java
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/account/PasswordCallbackHandler.java
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/account/feed/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/account/feed/AccountFeedImpl.java
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/accountdata/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/accountdata/AccountDataService.java
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/accountdata/AccountDataServiceImpl.java
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/accountdata/CheckingAccount.java
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/accountdata/SavingsAccount.java
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/accountdata/StockAccount.java
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/client/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/client/BigBankClient.java
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/demo/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/demo/BigBankServer.java
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/calculator/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/calculator/CalculatorService.java
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/stockquote/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/stockquote/StockQuoteService.java
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/resources/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/resources/AccountData.composite
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/resources/BigBank.composite
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/resources/bbaccount.jks   (with props)
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/resources/definitions.xml
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/resources/security.properties
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/resources/web/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/resources/web/AccountJSON.html
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/resources/web/style.css
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/resources/wsdl/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/resources/wsdl/AccountService.wsdl
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/test/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/test/java/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/test/java/test/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/test/java/test/BigBankTestCase.java
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/DISCLAIMER
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/LICENSE
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/NOTICE
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/README
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/build.xml
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/pom.xml
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/src/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/src/main/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/src/main/java/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/src/main/java/calculator/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/src/main/java/calculator/AddService.java
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/src/main/java/calculator/CalculatorService.java
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/src/main/java/calculator/CalculatorServiceImpl.java
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/src/main/java/calculator/DivideService.java
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/src/main/java/calculator/MultiplyService.java
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/src/main/java/calculator/SubtractService.java
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/src/main/java/calculator/demo/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/src/main/java/calculator/demo/CalculatorServer.java
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/src/main/resources/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/src/main/resources/Calculator.composite
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/src/main/resources/calculator/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/src/main/resources/calculator/AddServiceImpl.js
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/src/main/resources/calculator/DivideServiceImpl.groovy
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/src/main/resources/calculator/MultiplyServiceImpl.py
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/src/main/resources/calculator/SubtractServiceImpl.rb
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-calculator/src/test/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/DISCLAIMER
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/LICENSE
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/NOTICE
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/README
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/build.xml
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/pom.xml
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/src/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/src/main/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/src/main/java/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/src/main/java/stockquote/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/src/main/java/stockquote/PasswordCallbackHandler.java
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/src/main/java/stockquote/StockQuoteImpl.java
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/src/main/java/stockquote/StockQuoteService.java
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/src/main/java/stockquote/demo/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/src/main/java/stockquote/demo/StockQuoteServer.java
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/src/main/resources/
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/src/main/resources/StockQuote.composite
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/src/main/resources/definitions.xml
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/src/main/resources/security.properties
    incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-stockquote/src/main/resources/stockQuote.jks   (with props)

Added: incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/DISCLAIMER
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/DISCLAIMER?rev=600142&view=auto
==============================================================================
--- incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/DISCLAIMER (added)
+++ incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/DISCLAIMER Sat Dec  1 06:44:55 2007
@@ -0,0 +1,8 @@
+Apache Tuscany is an effort undergoing incubation at The Apache Software
+Foundation (ASF), sponsored by the Apache Web Services PMC. Incubation is
+required of all newly accepted projects until a further review indicates that
+the infrastructure, communications, and decision making process have stabilized
+in a manner consistent with other successful ASF projects. While incubation
+status is not necessarily a reflection of the completeness or stability of the
+code, it does indicate that the project has yet to be fully endorsed by the ASF.
+

Added: incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/LICENSE
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/LICENSE?rev=600142&view=auto
==============================================================================
--- incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/LICENSE (added)
+++ incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/LICENSE Sat Dec  1 06:44:55 2007
@@ -0,0 +1,205 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] [name of copyright owner]
+
+   Licensed 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.
+
+
+

Added: incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/NOTICE
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/NOTICE?rev=600142&view=auto
==============================================================================
--- incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/NOTICE (added)
+++ incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/NOTICE Sat Dec  1 06:44:55 2007
@@ -0,0 +1,6 @@
+${pom.name}
+Copyright (c) 2005 - 2007 The Apache Software Foundation
+
+This product includes software developed by
+The Apache Software Foundation (http://www.apache.org/).
+

Added: incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/README
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/README?rev=600142&view=auto
==============================================================================
--- incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/README (added)
+++ incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/README Sat Dec  1 06:44:55 2007
@@ -0,0 +1,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.
+ 
+

Added: incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/bigbank.png
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/bigbank.png?rev=600142&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/bigbank.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/bigbank.svg
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/bigbank.svg?rev=600142&view=auto
==============================================================================
--- incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/bigbank.svg (added)
+++ incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/bigbank.svg Sat Dec  1 06:44:55 2007
@@ -0,0 +1,519 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://web.resource.org/cc/"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   width="1052.3622"
+   height="744.09448"
+   id="svg2"
+   sodipodi:version="0.32"
+   inkscape:version="0.44"
+   sodipodi:docbase="C:\simon\Projects\Tuscany\java\java-0.91\demos\bigbank-account"
+   sodipodi:docname="bigbank.svg"
+   version="1.0"
+   inkscape:export-filename="C:\simon\Projects\Tuscany\java\java-0.91\demos\bigbank-account\bigbank.png"
+   inkscape:export-xdpi="105.68515"
+   inkscape:export-ydpi="105.68515">
+  <defs
+     id="defs4" />
+  <sodipodi:namedview
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     gridtolerance="10000"
+     guidetolerance="10"
+     objecttolerance="10"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="0.7"
+     inkscape:cx="668.70076"
+     inkscape:cy="413.94086"
+     inkscape:document-units="px"
+     inkscape:current-layer="layer1"
+     inkscape:window-width="1138"
+     inkscape:window-height="772"
+     inkscape:window-x="94"
+     inkscape:window-y="129" />
+  <metadata
+     id="metadata7">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1">
+    <g
+       id="g2997"
+       transform="translate(-61.2386,-72.73099)">
+      <rect
+         rx="7.8521242"
+         ry="17.265177"
+         y="192.00223"
+         x="258.31161"
+         height="334.34488"
+         width="257.31851"
+         id="rect2067"
+         style="opacity:1;fill:#90baf4;fill-opacity:1;stroke:#060000;stroke-width:1.99999988;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
+      <flowRoot
+         id="flowRoot2954"
+         xml:space="preserve"><flowRegion
+           id="flowRegion2956"><rect
+             y="212.66591"
+             x="281.42856"
+             height="61.42857"
+             width="170"
+             id="rect2958" /></flowRegion><flowPara
+           id="flowPara2960">Composite</flowPara><flowPara
+           id="flowPara1883">BigBank</flowPara></flowRoot>      <flowRoot
+         id="flowRoot2315"
+         xml:space="preserve"
+         transform="translate(-185.101,71.92054)"><flowRegion
+           id="flowRegion2317"><rect
+             y="212.66591"
+             x="281.42856"
+             height="61.42857"
+             width="170"
+             id="rect2319" /></flowRegion><flowPara
+           id="flowPara2323">WebApp</flowPara></flowRoot>    </g>
+    <rect
+       style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+       id="rect2988"
+       width="115.66247"
+       height="126.26909"
+       x="269.58636"
+       y="190.53091"
+       rx="6.9961648"
+       ry="10.475038" />
+    <flowRoot
+       xml:space="preserve"
+       id="flowRoot2966"
+       transform="translate(1.99553,-15.40766)"><flowRegion
+         id="flowRegion2968"><rect
+           id="rect2970"
+           width="171.01015"
+           height="76.580856"
+           x="281.42856"
+           y="212.66591" /></flowRegion><flowPara
+         id="flowPara2972">Component </flowPara><flowPara
+         id="flowPara1885">Account</flowPara><flowPara
+         id="flowPara1887" /><flowPara
+         id="flowPara1889" /><flowPara
+         id="flowPara1891">Java</flowPara></flowRoot>    <path
+       style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 252.43583,222.37787 L 285.77087,222.37787 L 291.83178,235.50985 L 284.76072,247.63169 L 252.43583,247.63169 L 260.01198,235.50985 L 252.43583,222.37787 z "
+       id="path3017" />
+    <path
+       style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 365.68827,205.3873 L 399.02331,205.3873 L 405.08422,218.51928 L 398.01316,230.64112 L 365.68827,230.64112 L 373.26442,218.51928 L 365.68827,205.3873 z "
+       id="path3019" />
+    <path
+       style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1.00000012px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 152.40866,209.21877 L 214.80502,209.21877 L 226.1498,236.00801 L 212.91422,260.73656 L 152.40866,260.73656 L 166.58966,236.00801 L 152.40866,209.21877 z "
+       id="path1893" />
+    <rect
+       style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+       id="rect1895"
+       width="115.66247"
+       height="85.862968"
+       x="272.53705"
+       y="351.65024"
+       rx="6.9961648"
+       ry="7.1230249" />
+    <flowRoot
+       xml:space="preserve"
+       id="flowRoot1897"
+       transform="translate(4.94623,145.7117)"><flowRegion
+         id="flowRegion1899"><rect
+           id="rect1901"
+           width="171.01015"
+           height="76.580856"
+           x="281.42856"
+           y="212.66591" /></flowRegion><flowPara
+         id="flowPara1903">Component </flowPara><flowPara
+         id="flowPara1905">AccountData</flowPara><flowPara
+         id="flowPara1907" /><flowPara
+         id="flowPara1909" /><flowPara
+         id="flowPara1911">Java</flowPara></flowRoot>    <path
+       style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 255.38654,383.4972 L 288.72158,383.4972 L 294.78249,396.62918 L 287.71143,408.75102 L 255.38654,408.75102 L 262.96269,396.62918 L 255.38654,383.4972 z "
+       id="path1913" />
+    <flowRoot
+       xml:space="preserve"
+       id="flowRoot1917"
+       transform="translate(-115.5876,5.278396)"><flowRegion
+         id="flowRegion1919"><rect
+           id="rect1921"
+           width="171.01015"
+           height="76.580856"
+           x="281.42856"
+           y="212.66591" /></flowRegion><flowPara
+         id="flowPara1931">binding.</flowPara><flowPara
+         id="flowPara1941">jsonrpc</flowPara></flowRoot>    <path
+       style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:0.99999982px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 426.15997,139.5181 L 490.26581,139.5181 L 501.9214,165.78205 L 488.32321,190.02572 L 426.15997,190.02572 L 440.72949,165.78205 L 426.15997,139.5181 z "
+       id="path1943" />
+    <flowRoot
+       xml:space="preserve"
+       id="flowRoot1945"
+       transform="translate(161.03,-62.1275)"
+       inkscape:transform-center-y="51.51778"
+       inkscape:transform-center-x="-6.0609153"><flowRegion
+         id="flowRegion1947"><rect
+           id="rect1949"
+           width="171.01015"
+           height="76.580856"
+           x="281.42856"
+           y="212.66591" /></flowRegion><flowPara
+         id="flowPara1951">binding.</flowPara><flowPara
+         id="flowPara1953">ws</flowPara></flowRoot>    <path
+       style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:0.99999982px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 426.16,223.86592 L 490.26584,223.86592 L 501.92143,250.12987 L 488.32324,274.37354 L 426.16,274.37354 L 440.72952,250.12987 L 426.16,223.86592 z "
+       id="path1955" />
+    <flowRoot
+       xml:space="preserve"
+       id="flowRoot1957"
+       transform="translate(161.03,22.22032)"
+       inkscape:transform-center-y="51.51778"
+       inkscape:transform-center-x="-6.0609153"><flowRegion
+         id="flowRegion1959"><rect
+           id="rect1961"
+           width="171.01015"
+           height="76.580856"
+           x="281.42856"
+           y="212.66591" /></flowRegion><flowPara
+         id="flowPara1963">binding.</flowPara><flowPara
+         id="flowPara1965">rmi</flowPara></flowRoot>    <path
+       style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 366.56099,240.53344 L 399.89603,240.53344 L 405.95694,253.66542 L 398.88588,265.78726 L 366.56099,265.78726 L 374.13714,253.66542 L 366.56099,240.53344 z "
+       id="path1967" />
+    <path
+       style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 365.55084,275.88877 L 398.88588,275.88877 L 404.94679,289.02075 L 397.87573,301.14259 L 365.55084,301.14259 L 373.12699,289.02075 L 365.55084,275.88877 z "
+       id="path1969" />
+    <g
+       id="g1971"
+       transform="translate(439.292,-139.3494)">
+      <rect
+         rx="7.8521242"
+         ry="7.8236527"
+         y="220.28642"
+         x="165.37758"
+         height="151.50719"
+         width="257.31851"
+         id="rect1973"
+         style="opacity:1;fill:#90baf4;fill-opacity:1;stroke:#060000;stroke-width:1.99999976;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
+      <flowRoot
+         id="flowRoot1975"
+         xml:space="preserve"
+         transform="translate(-109.0965,17.17259)"><flowRegion
+           id="flowRegion1977"><rect
+             y="212.66591"
+             x="281.42856"
+             height="61.42857"
+             width="170"
+             id="rect1979" /></flowRegion><flowPara
+           id="flowPara1981">Composite</flowPara><flowPara
+           id="flowPara1983">StockQuote</flowPara></flowRoot>      <g
+         id="g2067"
+         transform="translate(-98.99495,207.0814)">
+        <rect
+           rx="12.845777"
+           ry="17.265177"
+           y="192.00223"
+           x="258.31168"
+           height="334.34488"
+           width="420.96332"
+           id="rect2069"
+           style="opacity:1;fill:#90baf4;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" />
+        <flowRoot
+           id="flowRoot2071"
+           xml:space="preserve"
+           transform="translate(-4.04061,-5.050763)"><flowRegion
+             id="flowRegion2073"><rect
+               y="212.66591"
+               x="281.42856"
+               height="61.42857"
+               width="170"
+               id="rect2075" /></flowRegion><flowPara
+             id="flowPara2077">Composite</flowPara><flowPara
+             id="flowPara2079">Calculator</flowPara></flowRoot>      </g>
+      <rect
+         style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:1.99999988;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+         id="rect2081"
+         width="115.66247"
+         height="200.01021"
+         x="231.82996"
+         y="470.34314"
+         rx="6.9961648"
+         ry="16.592457" />
+      <flowRoot
+         xml:space="preserve"
+         id="flowRoot2083"
+         transform="translate(-35.76085,264.4047)"><flowRegion
+           id="flowRegion2085"><rect
+             id="rect2087"
+             width="171.01015"
+             height="76.580856"
+             x="281.42856"
+             y="212.66591" /></flowRegion><flowPara
+           id="flowPara2089">Component </flowPara><flowPara
+           id="flowPara2091">Calculator</flowPara><flowPara
+           id="flowPara2093" /><flowPara
+           id="flowPara2095" /><flowPara
+           id="flowPara2097">Java</flowPara></flowRoot>      <path
+         style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+         d="M 214.67944,502.19018 L 248.01448,502.19018 L 254.07539,515.32216 L 247.00433,527.444 L 214.67944,527.444 L 222.25559,515.32216 L 214.67944,502.19018 z "
+         id="path2099" />
+      <path
+         style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+         d="M 327.93188,485.19961 L 361.26692,485.19961 L 367.32783,498.33159 L 360.25677,510.45343 L 327.93188,510.45343 L 335.50803,498.33159 L 327.93188,485.19961 z "
+         id="path2101" />
+      <path
+         style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1.00000012px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+         d="M 114.65227,489.03108 L 177.04863,489.03108 L 188.39341,515.82032 L 175.15784,540.54887 L 114.65227,540.54887 L 128.83327,515.82032 L 114.65227,489.03108 z "
+         id="path2103" />
+      <rect
+         style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2.00000024;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+         id="rect2105"
+         width="115.66247"
+         height="72.731003"
+         x="438.83148"
+         y="412.3407"
+         rx="6.9961648"
+         ry="6.0336223" />
+      <flowRoot
+         xml:space="preserve"
+         id="flowRoot2107"
+         transform="translate(183.2407,206.4021)"><flowRegion
+           id="flowRegion2109"><rect
+             id="rect2111"
+             width="171.01015"
+             height="76.580856"
+             x="281.42856"
+             y="212.66591" /></flowRegion><flowPara
+           id="flowPara2113">Component </flowPara><flowPara
+           id="flowPara2115">Add</flowPara><flowPara
+           id="flowPara2119" /><flowPara
+           id="flowPara2121">Javascript</flowPara></flowRoot>      <path
+         style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+         d="M 418.6505,435.09626 L 451.98554,435.09626 L 458.04645,448.22824 L 450.97539,460.35008 L 418.6505,460.35008 L 426.22665,448.22824 L 418.6505,435.09626 z "
+         id="path2123" />
+      <flowRoot
+         xml:space="preserve"
+         id="flowRoot2125"
+         transform="translate(-153.344,285.0907)"><flowRegion
+           id="flowRegion2127"><rect
+             id="rect2129"
+             width="171.01015"
+             height="76.580856"
+             x="281.42856"
+             y="212.66591" /></flowRegion><flowPara
+           id="flowPara2131">binding.</flowPara><flowPara
+           id="flowPara2133">rmi</flowPara></flowRoot>      <path
+         style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+         d="M 328.8046,531.45743 L 362.13964,531.45743 L 368.20055,544.58941 L 361.12949,556.71125 L 328.8046,556.71125 L 336.38075,544.58941 L 328.8046,531.45743 z "
+         id="path2159" />
+      <path
+         style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+         d="M 329.81476,581.96505 L 363.1498,581.96505 L 369.21071,595.09703 L 362.13965,607.21887 L 329.81476,607.21887 L 337.39091,595.09703 L 329.81476,581.96505 z "
+         id="path2161" />
+      <rect
+         style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2.00000024;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+         id="rect2225"
+         width="115.66247"
+         height="72.731003"
+         x="438.39767"
+         y="491.58591"
+         rx="6.9961648"
+         ry="6.0336223" />
+      <flowRoot
+         xml:space="preserve"
+         id="flowRoot2227"
+         transform="translate(182.8068,285.6473)"><flowRegion
+           id="flowRegion2229"><rect
+             id="rect2231"
+             width="171.01015"
+             height="76.580856"
+             x="281.42856"
+             y="212.66591" /></flowRegion><flowPara
+           id="flowPara2233">Component </flowPara><flowPara
+           id="flowPara2235">Subtract</flowPara><flowPara
+           id="flowPara2237" /><flowPara
+           id="flowPara2239">Ruby</flowPara></flowRoot>      <path
+         style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+         d="M 418.21668,514.34147 L 451.55172,514.34147 L 457.61263,527.47345 L 450.54157,539.59529 L 418.21668,539.59529 L 425.79283,527.47345 L 418.21668,514.34147 z "
+         id="path2241" />
+      <rect
+         style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2.00000024;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+         id="rect2243"
+         width="115.66247"
+         height="72.731003"
+         x="438.39767"
+         y="569.36768"
+         rx="6.9961648"
+         ry="6.0336223" />
+      <flowRoot
+         xml:space="preserve"
+         id="flowRoot2245"
+         transform="translate(182.8069,363.4291)"><flowRegion
+           id="flowRegion2247"><rect
+             id="rect2249"
+             width="171.01015"
+             height="76.580856"
+             x="281.42856"
+             y="212.66591" /></flowRegion><flowPara
+           id="flowPara2251">Component </flowPara><flowPara
+           id="flowPara2255">Multiply</flowPara><flowPara
+           id="flowPara2281" /><flowPara
+           id="flowPara2257">Python</flowPara></flowRoot>      <path
+         style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+         d="M 418.21667,592.12321 L 451.55171,592.12321 L 457.61262,605.25519 L 450.54156,617.37703 L 418.21667,617.37703 L 425.79282,605.25519 L 418.21667,592.12321 z "
+         id="path2259" />
+      <rect
+         style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2.00000024;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+         id="rect2261"
+         width="115.66247"
+         height="72.731003"
+         x="439.40784"
+         y="647.14941"
+         rx="6.9961648"
+         ry="6.0336223" />
+      <flowRoot
+         xml:space="preserve"
+         id="flowRoot2263"
+         transform="translate(183.817,441.2108)"><flowRegion
+           id="flowRegion2265"><rect
+             id="rect2267"
+             width="171.01015"
+             height="76.580856"
+             x="281.42856"
+             y="212.66591" /></flowRegion><flowPara
+           id="flowPara2269">Component </flowPara><flowPara
+           id="flowPara2271">Divide</flowPara><flowPara
+           id="flowPara2273" /><flowPara
+           id="flowPara2275">Groovy</flowPara></flowRoot>      <path
+         style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+         d="M 419.22682,669.90496 L 452.56186,669.90496 L 458.62277,683.03694 L 451.55171,695.15878 L 419.22682,695.15878 L 426.80297,683.03694 L 419.22682,669.90496 z "
+         id="path2277" />
+      <path
+         style="fill:#ae62bf;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+         d="M 328.29952,628.38036 L 361.63456,628.38036 L 367.69547,641.51234 L 360.62441,653.63418 L 328.29952,653.63418 L 335.87567,641.51234 L 328.29952,628.38036 z "
+         id="path2283" />
+    </g>
+    <rect
+       style="fill:#317fed;fill-opacity:1;stroke:#060000;stroke-width:2;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+       id="rect1985"
+       width="113.64217"
+       height="94.954361"
+       x="677.18286"
+       y="121.89223"
+       rx="6.9961648"
+       ry="10.475038" />
+    <flowRoot
+       xml:space="preserve"
+       id="flowRoot1987"
+       transform="translate(409.5921,-84.04634)"><flowRegion
+         id="flowRegion1989"><rect
+           id="rect1991"
+           width="171.01015"
+           height="76.580856"
+           x="281.42856"
+           y="212.66591" /></flowRegion><flowPara
+         id="flowPara1993">Component </flowPara><flowPara
+         id="flowPara1995">StockQuote</flowPara><flowPara
+         id="flowPara1997" /><flowPara
+         id="flowPara1999" /><flowPara
+         id="flowPara2001">Java</flowPara></flowRoot>    <path
+       style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 660.03239,153.73919 L 693.36743,153.73919 L 699.42834,166.87117 L 692.35728,178.99301 L 660.03239,178.99301 L 667.60854,166.87117 L 660.03239,153.73919 z "
+       id="path2003" />
+    <path
+       style="fill:#5b9d05;fill-opacity:1;fill-rule:evenodd;stroke:black;stroke-width:1.00000012px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 560.00522,140.58009 L 622.40158,140.58009 L 633.74636,167.36933 L 620.51078,192.09788 L 560.00522,192.09788 L 574.18622,167.36933 L 560.00522,140.58009 z "
+       id="path2007" />
+    <flowRoot
+       xml:space="preserve"
+       id="flowRoot2029"
+       transform="translate(292.009,-63.36024)"><flowRegion
+         id="flowRegion2031"><rect
+           id="rect2033"
+           width="171.01015"
+           height="76.580856"
+           x="281.42856"
+           y="212.66591" /></flowRegion><flowPara
+         id="flowPara2035">binding.</flowPara><flowPara
+         id="flowPara2037">ws</flowPara></flowRoot>    <path
+       style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 501.41636,164.26692 C 575.1575,165.27707 575.1575,165.27707 575.1575,165.27707"
+       id="path2285" />
+    <path
+       style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 633.74634,167.29737 C 667.08138,167.29737 667.08138,167.29737 667.08138,167.29737"
+       id="path2287" />
+    <path
+       style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 224.63456,235.98775 C 259.9899,235.98775 259.9899,235.98775 259.9899,235.98775"
+       id="path2289" />
+    <path
+       style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 403.43156,218.81515 L 412.52294,218.81515 L 412.52294,164.26692 L 439.79706,165.27707"
+       id="path2293" />
+    <path
+       style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 405.45187,254.17049 L 420.60416,254.17049 L 420.60416,250.12988 L 440.80721,251.14004"
+       id="path2295" />
+    <path
+       style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 404.44172,288.51568 L 419.59401,288.51568 L 419.59401,332.96239 L 225.64471,334.9827 L 226.65486,395.59185 L 262.01021,395.59185"
+       id="path2297" />
+    <path
+       style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 501.41636,249.11973 L 520.60926,249.11973 L 518.58895,377.4091 L 567.07628,377.4091"
+       id="path2299" />
+    <path
+       style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 625.66512,376.39895 L 660.01031,376.39895"
+       id="path2301" />
+    <path
+       style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 806.48243,359.22636 L 834.7667,359.22636 L 835.77685,309.72888 L 864.06112,308.71873"
+       id="path2303" />
+    <path
+       style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 807.49258,404.68322 L 840.82762,404.68322 L 840.82762,388.52078 L 864.06112,388.52078"
+       id="path2307" />
+    <path
+       style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 807.49258,455.19085 L 837.79716,455.19085 L 837.79716,467.31268 L 864.06112,467.31268"
+       id="path2309" />
+    <path
+       style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 805.47228,502.66802 L 833.75655,502.66802 L 833.75655,545.09443 L 865.07128,545.09443"
+       id="path2311" />
+    <rect
+       style="opacity:0.35555558;fill:#9a8787;fill-opacity:1;stroke:#261c1c;stroke-width:1;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+       id="rect2313"
+       width="87.14286"
+       height="77.14286"
+       x="17.142859"
+       y="192.66591"
+       rx="10.859112" />
+    <path
+       style="fill:none;fill-rule:evenodd;stroke:black;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       d="M 102.85714,235.52305 L 164.28571,235.52305"
+       id="path2327" />
+  </g>
+</svg>

Added: incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/build-dojo.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/build-dojo.xml?rev=600142&view=auto
==============================================================================
--- incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/build-dojo.xml (added)
+++ incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/build-dojo.xml Sat Dec  1 06:44:55 2007
@@ -0,0 +1,92 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * 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.
+-->
+<project name="DojoZipInstaller">
+	
+
+    <property name="dojo.version" value="1.0.0"/>
+    <property name="unpack.location" value="${basedir}/src/main/resources/web/dojo"/>
+	
+
+    <target name="check-dojo-installed">
+        <condition property="already.installed" >
+            <available file="${localRepository}/dojo/dojo/${dojo.version}/dojo-${dojo.version}.zip"/>
+        </condition>
+        <condition property="maven.suffix" value="">
+            <os family="unix"/>
+        </condition>
+        <condition property="maven.suffix" value=".bat">
+            <os family="windows"/>
+        </condition>
+    </target>
+	
+
+    <target name="check-dojo-unpacked">
+        <condition property="already.unpacked" >
+            <available file="${unpack.location}"/>
+        </condition>
+    </target>
+
+    <target name="install-dojo" depends="check-dojo-installed" unless="already.installed">
+        <mkdir dir="${basedir}/target/dojo-download/"/>
+        <get src="http://download.dojotoolkit.org/release-${dojo.version}/dojo-release-${dojo.version}.zip"
+            dest="${basedir}/target/dojo-download/dojo-release-${dojo.version}.zip"
+            verbose="true"
+            usetimestamp="true"/>
+        <exec executable="mvn${maven.suffix}" dir="${basedir}" failonerror="false">
+            <arg line="install:install-file -DgroupId=dojo  -DartifactId=dojo -Dversion=${dojo.version} -Dpackaging=zip -DgeneratePom=true -Dfile=${basedir}/target/dojo-download/dojo-release-${dojo.version}.zip"/>
+        </exec>
+    </target>
+
+    <target name="install-dojo-nomaven" depends="check-dojo-installed" unless="already.installed">
+        <mkdir dir="${basedir}/target/dojo-download/"/>
+        <get src="http://download.dojotoolkit.org/release-${dojo.version}/dojo-release-${dojo.version}.zip"
+            dest="${basedir}/target/dojo-download/dojo-release-${dojo.version}.zip"
+            verbose="true"
+            usetimestamp="true"/>
+        <copy file="${basedir}/target/dojo-download/dojo-release-${dojo.version}.zip" 
+              tofile="${localRepository}/dojo/dojo/${dojo.version}/dojo-${dojo.version}.zip"/>
+    </target>
+	
+
+    <target name="unpack-dojo-files" depends="check-dojo-installed, check-dojo-unpacked" unless="already.unpacked">
+        <fail message="dojo zip file not installed in local repository: ${localRepository}" unless="already.installed"/>
+        <mkdir dir="${basedir}/target/dojo-unpack-temp/"/>
+        <unzip src="${localRepository}/dojo/dojo/${dojo.version}/dojo-${dojo.version}.zip"
+               dest="${basedir}/target/dojo-unpack-temp/"
+               overwrite="false">
+            <patternset>
+                <include name="dojo-release-${dojo.version}/dojo/**"/>
+                <exclude name="dojo-release-${dojo.version}/dojo/tests/**"/>
+                <include name="dojo-release-${dojo.version}/dijit/**"/>
+                <exclude name="dojo-release-${dojo.version}/dojox/**"/>
+                <exclude name="dojo-release-${dojo.version}/util/**"/>
+            </patternset>
+        </unzip>
+        <move file="${basedir}/target/dojo-unpack-temp/dojo-release-${dojo.version}"
+              tofile="${unpack.location}"
+              verbose="true"/>
+        <delete dir="${basedir}/target/dojo-unpack-temp/"/>
+    </target>
+	
+
+    <target name="clean-dojo-files">
+        <delete dir="${unpack.location}"/>
+    </target>
+</project>

Added: incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/build.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/build.xml?rev=600142&view=auto
==============================================================================
--- incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/build.xml (added)
+++ incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/build.xml Sat Dec  1 06:44:55 2007
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * 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.
+-->
+<project name="bigbank-account" default="run">
+    <property name="localRepository" value="./target/repo" />
+    <property name="artifactId" value="demo-bigbank-account" />	
+    <property name="test.class" value="bigbank.demo.BigBankServer" />
+	
+    <path id="test.classpath">
+    	<pathelement location="target/classes"/>
+        <pathelement location="../../modules/tuscany-host-jetty-1.1-incubating-SNAPSHOT.jar"/>
+        <pathelement location="../../modules/tuscany-binding-jsonrpc-1.1-incubating-SNAPSHOT.jar"/>
+        <pathelement location="../../modules/tuscany-binding-rmi-1.1-incubating-SNAPSHOT.jar"/>
+    	<pathelement location="../../lib/tuscany-sca-manifest.jar"/>    	
+    	<pathelement location="target/demo-bigbank-account.jar"/>    
+    </path>
+	
+    <target name="init">
+        <mkdir dir="target/classes"/>
+        <mkdir dir="target/classes/web"/>
+    	<mkdir dir="target/repo"/>
+    </target>
+	
+    <target name="dojo" depends="init">
+        <ant antfile="./build-dojo.xml" target="install-dojo-nomaven">
+          <property name="localRepository" value="${settings.localRepository}"/>
+        </ant>
+        
+        <ant antfile="./build-dojo.xml" target="unpack-dojo-files">
+          <property name="localRepository" value="${settings.localRepository}"/>
+          <property name="artifactId" value="${artifactId}"/>
+        </ant>
+    </target>
+	
+    <target name="compile" depends="dojo">
+        <javac srcdir="src/main/java"
+               destdir="target/classes"
+               debug="on"
+               source="1.5"
+               target="1.5">
+            <classpath>
+            	<pathelement location="../../lib/tuscany-sca-manifest.jar"/>
+            </classpath>
+        </javac> 
+        <copy todir="target/classes">
+            <fileset dir="src/main/resources"/>
+        </copy>
+        <jar destfile="target/demo-bigbank-account.jar" basedir="target/classes">
+            <manifest>
+                <attribute name="Main-Class" value="${test.class}" /> 
+            </manifest>
+        </jar>    	
+    </target>		
+	
+    <target name="run" depends="compile">
+        <java classname="${test.class}"
+              fork="true">
+            <classpath>
+                <path refid="test.classpath"/>
+            </classpath>
+        </java>    	
+    </target>
+	
+</project>

Added: incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/pom.xml?rev=600142&view=auto
==============================================================================
--- incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/pom.xml (added)
+++ incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/pom.xml Sat Dec  1 06:44:55 2007
@@ -0,0 +1,181 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    * 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.    
+-->
+<project>
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.tuscany.sca</groupId>
+        <artifactId>tuscany-demos</artifactId>
+        <version>1.1-incubating-SNAPSHOT</version>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+    <artifactId>demo-secure-bigbank-account</artifactId>
+    <packaging>jar</packaging>
+    <name>Apache Tuscany SCA Secure BigBank Account Demo</name>
+
+    <repositories>
+       <repository>
+          <id>apache.incubator</id>
+          <url>http://people.apache.org/repo/m2-incubating-repository</url>
+       </repository>
+    </repositories>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-host-embedded</artifactId>
+            <version>1.1-incubating-SNAPSHOT</version>
+        </dependency>
+        
+        <dependency>
+            <groupId>org.apache.ws.security</groupId>
+            <artifactId>wss4j</artifactId>
+            <version>1.5.3</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-binding-feed</artifactId>
+            <version>1.1-incubating-SNAPSHOT</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-implementation-java-runtime</artifactId>
+            <version>1.1-incubating-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-binding-ws-axis2</artifactId>
+            <version>1.1-incubating-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-binding-jsonrpc</artifactId>
+            <version>1.1-incubating-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-binding-rmi</artifactId>
+            <version>1.1-incubating-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-implementation-resource</artifactId>
+            <version>1.1-incubating-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-binding-http</artifactId>
+            <version>1.1-incubating-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-host-jetty</artifactId>
+            <version>1.1-incubating-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+            <version>4.2</version>
+            <scope>test</scope>
+        </dependency>
+
+    </dependencies>
+    
+    <build>
+            <finalName>demo-bigbank-account</finalName>
+            <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-antrun-plugin</artifactId>
+                    
+                <dependencies>
+                    <dependency>
+                        <groupId>ant</groupId>
+                        <artifactId>ant-trax</artifactId>
+                        <version>1.6.5</version>
+                    </dependency>
+                </dependencies>
+                
+                    <executions>
+                        <execution> 
+                            <id>install-dojo</id>                       
+                            <phase>validate</phase>
+                            <goals>
+                                <goal>run</goal>
+                            </goals>
+                            <configuration>
+                                <tasks>
+                                    <ant antfile="./build-dojo.xml" target="install-dojo">
+                                        <property name="localRepository" value="${settings.localRepository}"/>
+                                    </ant>
+                                </tasks>
+                            </configuration>
+                        </execution>
+                        <execution> 
+                            <id>copy-dojo-files</id>                       
+                            <phase>generate-resources</phase>
+                            <goals>
+                                <goal>run</goal>
+                            </goals>
+                            <configuration>
+                                <tasks>
+                                    <ant antfile="./build-dojo.xml" target="unpack-dojo-files">
+                                        <property name="localRepository" value="${settings.localRepository}"/>
+                                        <property name="artifactId" value="${artifactId}"/>
+                                    </ant>
+                                </tasks>
+                            </configuration>
+                        </execution>
+                        <execution> 
+                            <id>clean-dojo-files</id>                       
+                            <phase>clean</phase>
+                            <goals>
+                                <goal>run</goal>
+                            </goals>
+                            <configuration>
+                                <tasks>
+                                    <ant antfile="./build-dojo.xml" target="clean-dojo-files">
+                                        <property name="localRepository" value="${settings.localRepository}"/>
+                                        <property name="artifactId" value="${artifactId}"/>
+                                    </ant>
+                                </tasks>
+                            </configuration>
+                        </execution>
+                    </executions>
+                </plugin>            
+                </plugins>
+    </build>
+
+</project>

Added: incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/account/AccountService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/account/AccountService.java?rev=600142&view=auto
==============================================================================
--- incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/account/AccountService.java (added)
+++ incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/account/AccountService.java Sat Dec  1 06:44:55 2007
@@ -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 bigbank.account;
+
+import org.osoa.sca.annotations.Remotable;
+
+/**
+ * @version $$Rev: 573144 $$ $$Date: 2007-09-06 09:25:24 +0530 (Thu, 06 Sep 2007) $$
+ */
+
+@Remotable
+public interface AccountService {
+
+    public double getAccountReport(String customerID);
+
+}

Added: incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/account/AccountServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/account/AccountServiceImpl.java?rev=600142&view=auto
==============================================================================
--- incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/account/AccountServiceImpl.java (added)
+++ incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/account/AccountServiceImpl.java Sat Dec  1 06:44:55 2007
@@ -0,0 +1,85 @@
+/*
+ * 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 bigbank.account;
+
+import org.osoa.sca.annotations.Property;
+import org.osoa.sca.annotations.Reference;
+import org.osoa.sca.annotations.Service;
+
+import stockquote.StockQuoteService;
+import bigbank.accountdata.AccountDataService;
+import bigbank.accountdata.CheckingAccount;
+import bigbank.accountdata.SavingsAccount;
+import bigbank.accountdata.StockAccount;
+import calculator.CalculatorService;
+
+/**
+ * @version $$Rev: 540764 $$ $$Date: 2007-05-23 03:17:57 +0530 (Wed, 23 May 2007) $$
+ */
+
+@Service(AccountService.class)
+public class AccountServiceImpl implements AccountService {
+
+    @Reference
+    protected AccountDataService accountDataService;
+    
+    @Reference
+    protected StockQuoteService stockQuoteService;
+    
+    @Reference
+    protected CalculatorService calculatorService;
+    
+    @Property
+    protected String currency;
+
+    public double getAccountReport(String customerID) {
+
+        // Get the checking, savings and stock accounts from the AccountData
+        // service component
+        CheckingAccount checking = accountDataService.getCheckingAccount(customerID);
+        System.out.println("Checking account: " + checking);
+
+        SavingsAccount savings = accountDataService.getSavingsAccount(customerID);
+        System.out.println("Savings account: " + savings);
+
+        StockAccount stock = accountDataService.getStockAccount(customerID);
+        System.out.println("Stock account: " + stock);
+        
+        // Get the stock price in USD
+        double price = stockQuoteService.getQuote(stock.getSymbol());
+        System.out.println("Stock price for " + stock.getSymbol() + ": " + price);
+
+        // Convert to the configured currency
+        if (currency.equals("EURO")) {
+            
+            // Use our fancy calculator service to convert to the target currency
+            price = calculatorService.multiply(price, 0.70);
+            
+            System.out.println("Converted to " + currency + ": " + price);
+        }
+        
+        // Calculate the value of the stock account
+        double stockValue = price * stock.getQuantity(); 
+        
+        // Calculate the total balance of all accounts and return it
+        double balance = checking.getBalance() + savings.getBalance() + stockValue;
+        
+        return balance;
+    }
+}

Added: incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/account/PasswordCallbackHandler.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/account/PasswordCallbackHandler.java?rev=600142&view=auto
==============================================================================
--- incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/account/PasswordCallbackHandler.java (added)
+++ incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/account/PasswordCallbackHandler.java Sat Dec  1 06:44:55 2007
@@ -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 bigbank.account;
+
+import java.io.IOException;
+
+import javax.security.auth.callback.Callback;
+import javax.security.auth.callback.CallbackHandler;
+import javax.security.auth.callback.UnsupportedCallbackException;
+
+import org.apache.ws.security.WSPasswordCallback;
+
+/**
+ * Sample userid passwd generation class 
+ */
+public class PasswordCallbackHandler implements CallbackHandler {
+
+    public void handle(Callback[] callbacks) throws IOException,
+            UnsupportedCallbackException {
+    	for (int i = 0; i < callbacks.length; i++) {
+            System.out.println("*** Calling Server User/Passwd Handler...." );
+            WSPasswordCallback pwcb = (WSPasswordCallback)callbacks[i];
+            System.out.println("*** Getting password for user ...."  + pwcb.getIdentifer() + " & " + pwcb.getKey());
+            if ( pwcb.getUsage() == WSPasswordCallback.SIGNATURE ) {
+                System.out.println(" Usage is SIGNATURE ... ");
+                pwcb.setPassword("bbservice");
+            }
+        }
+    }
+
+}

Added: incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/account/feed/AccountFeedImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/account/feed/AccountFeedImpl.java?rev=600142&view=auto
==============================================================================
--- incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/account/feed/AccountFeedImpl.java (added)
+++ incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/account/feed/AccountFeedImpl.java Sat Dec  1 06:44:55 2007
@@ -0,0 +1,94 @@
+/*
+ * 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 bigbank.account.feed;
+
+import java.util.Collections;
+
+import org.apache.tuscany.sca.binding.feed.collection.Collection;
+import org.osoa.sca.annotations.Reference;
+import org.osoa.sca.annotations.Service;
+
+import bigbank.account.AccountService;
+
+import com.sun.syndication.feed.atom.Content;
+import com.sun.syndication.feed.atom.Entry;
+import com.sun.syndication.feed.atom.Feed;
+import com.sun.syndication.feed.atom.Link;
+
+/**
+ * @version $$Rev: 592280 $$ $$Date: 2007-11-06 10:29:48 +0530 (Tue, 06 Nov 2007) $$
+ */
+
+@Service(Collection.class)
+public class AccountFeedImpl implements Collection {
+
+    @Reference
+    protected AccountService accountService;
+    
+    @SuppressWarnings("unchecked")
+    public com.sun.syndication.feed.atom.Feed getFeed() {
+        
+        // Create a new Feed
+        Feed feed = new Feed();
+        feed.setId("accounts");
+        feed.setTitle("Account Report Feed");
+        Content subtitle = new Content();
+        subtitle.setValue("This is a sample feed");
+        feed.setSubtitle(subtitle);
+        Link link = new Link();
+        link.setHref("http://incubator.apache.org/tuscany");
+        feed.getAlternateLinks().add(link);
+
+        // Add the Account report entry 
+        Entry entry = get("1234");
+        feed.getEntries().add(entry);
+
+        return feed;
+    }
+
+    public void delete(String id) {
+    }
+
+    public Entry get(String id) {
+
+        // Get the account report for the specified customer ID
+        double balance = accountService.getAccountReport(id); 
+        String value = Double.toString(balance);
+        
+        Entry entry = new Entry();
+        entry.setId("account-" + id);
+        entry.setTitle("Account Report Entry");
+        Content summary = new Content();
+        summary.setType(Content.HTML);
+        summary.setValue("This is your account report: <b>" + value + "</b>");
+        entry.setSummary(summary);
+        Content content = new Content();
+        content.setValue(value);
+        entry.setContents(Collections.singletonList(content));
+        return entry;
+    }
+
+    public Entry post(Entry entry) {
+        return null;
+    }
+
+    public void put(String id, Entry entry) {
+    }
+
+}

Added: incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/accountdata/AccountDataService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/accountdata/AccountDataService.java?rev=600142&view=auto
==============================================================================
--- incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/accountdata/AccountDataService.java (added)
+++ incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/accountdata/AccountDataService.java Sat Dec  1 06:44:55 2007
@@ -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 bigbank.accountdata;
+
+/**
+ * @version $$Rev: 540764 $$ $$Date: 2007-05-23 03:17:57 +0530 (Wed, 23 May 2007) $$
+ */
+
+public interface AccountDataService {
+    
+    public CheckingAccount getCheckingAccount(String customerID);
+    
+    public SavingsAccount getSavingsAccount(String customerID);
+    
+    public StockAccount getStockAccount(String customerID);
+    
+}

Added: incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/accountdata/AccountDataServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/accountdata/AccountDataServiceImpl.java?rev=600142&view=auto
==============================================================================
--- incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/accountdata/AccountDataServiceImpl.java (added)
+++ incubator/tuscany/java/sca/demos/secure-bigbank/secure-bigbank-account/src/main/java/bigbank/accountdata/AccountDataServiceImpl.java Sat Dec  1 06:44:55 2007
@@ -0,0 +1,57 @@
+/*
+ * 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 bigbank.accountdata;
+
+import org.osoa.sca.annotations.Service;
+
+/**
+ * @version $$Rev: 540764 $$ $$Date: 2007-05-23 03:17:57 +0530 (Wed, 23 May 2007) $$
+ */
+
+@Service(AccountDataService.class)
+public class AccountDataServiceImpl implements AccountDataService {
+
+	public CheckingAccount getCheckingAccount(String customerID) {
+
+		CheckingAccount checkingAccount = new CheckingAccount();
+		checkingAccount.setAccountNumber("CHA_" + customerID);
+		checkingAccount.setBalance(500.0f);
+
+		return checkingAccount;
+	}
+
+	public SavingsAccount getSavingsAccount(String customerID) {
+
+		SavingsAccount savingsAccount = new SavingsAccount();
+		savingsAccount.setAccountNumber("SAA_" + customerID);
+		savingsAccount.setBalance(1500.0f);
+
+		return savingsAccount;
+	}
+
+	public StockAccount getStockAccount(String customerID) {
+
+		StockAccount stockAccount = new StockAccount();
+		stockAccount.setAccountNumber("STA_" + customerID);
+		stockAccount.setSymbol("IBM");
+		stockAccount.setQuantity(100);
+
+		return stockAccount;
+	}
+}



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message