Jean-Sebastien,
+1 for sca/demos/bigbank
I'd like to show it at IMPACT 2007 in Orlando week after next - I may
ask for some help next week as I prepare ;-)
Thanks for preparing it - it helped to give the JavaOne BOF some much
needed reality !
Yours, Mike.
Raymond Feng wrote:
Hi,
It's a very nice demo. I prefer to have it under sca/demos/bigbank.
Thanks,
Raymond
----- Original Message ----- From: "Jean-Sebastien Delfino"
<[EMAIL PROTECTED]>
To: <tuscany-dev@ws.apache.org>
Sent: Saturday, May 12, 2007 10:29 AM
Subject: JavaOne Demo
Hi all,
I would like to commit the three modules that I have put together for
demos of Tuscany/SCA at JavaOne.
The demo is a variation of the BigBank scenario that we've been using
in Tuscany and some of the SCA documents to illustrate the SCA
programming model.
This is a sample banking application that takes your customer id and
first gets information on your checking, savings, and stock account,
gets stock prices from a stockquote service, converts it to a
configured currency using a bunch of calculator components and returns
the total balance of all your accounts.
The application is implemented as a set of SCA composites and
components wired together and running on different JVMs:
- A StockQuote Java component (returning random stock prices)
providing a StockQuote service with a Web Service binding.
- A Calculator composite containing a fancy Calculator assembled with
4 components written in different scripting languages (Ruby, Groovy,
Python and Javascript) implementing the 4 basic operations of a
calculator, providin a Calculator service with an RMI binding.
- An AccountData composite containing an AccountData Java component
returning account information, used as a nested composite with an SCA
default binding in the BigBank composite.
- A BigBank composite, containing an Account Java component wired to
the above components, implementing the logic to retrieve account data,
the stock quote info, perform a currency conversion and sum the
balances of your three accounts. The Account service is provided with
both a Web Service binding and a JSON-RPC binding.
- A simple J2SE client program for the Account service as well as a
Web 2.0 client user interface using DOJO and JSON-RPC to call the
Account JSON_RPC service directly from your Web browser.
The demo can run from a command line with the J2SE client, or you can
deploy it to Tomcat and then run it from your Web browser.
I posted a diagram showing the SCA assembly for the demo on our Wiki
there: http://cwiki.apache.org/confluence/display/TUSCANY/JavaOne+Demo
This demo shows many aspects of SCA:
- Recursive SCA assembly using the SCA specification 1.0 syntax.
- Assembly of Java components and components written in 4 other
languages.
- SCA Java annotations.
- Web Service, RMI and JSON-RPC bindings (plus the SCA default binding
used inside the composites).
- SCA components running on different servers in an SCA domain.
- An SCA client programming model to invoke services in the SCA domain.
Where do people think it should go? samples? demo? demo-javaone?
--
Jean-Sebastien
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]