You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by js...@apache.org on 2007/05/22 23:48:01 UTC

svn commit: r540764 [1/2] - in /incubator/tuscany/java/sca/demos: ./ bigbank-account/ bigbank-account/src/ bigbank-account/src/main/ bigbank-account/src/main/java/ bigbank-account/src/main/java/bigbank/ bigbank-account/src/main/java/bigbank/account/ bi...

Author: jsdelfino
Date: Tue May 22 14:47:57 2007
New Revision: 540764

URL: http://svn.apache.org/viewvc?view=rev&rev=540764
Log:
Version of Bigbank used for JavaOne demos, demonstrating multiple composites running on different VMs, nested composition, Java and script components, as well as Web Service, RMI and JSON-RPC bindings.

Added:
    incubator/tuscany/java/sca/demos/
    incubator/tuscany/java/sca/demos/bigbank-account/   (with props)
    incubator/tuscany/java/sca/demos/bigbank-account/build.xml   (with props)
    incubator/tuscany/java/sca/demos/bigbank-account/pom.xml   (with props)
    incubator/tuscany/java/sca/demos/bigbank-account/src/
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/BigBankClient.java   (with props)
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountReport.java   (with props)
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountService.java   (with props)
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountService.wsdl   (with props)
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountServiceImpl.java   (with props)
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataService.java   (with props)
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataServiceImpl.java   (with props)
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/CheckingAccount.java   (with props)
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/SavingsAccount.java   (with props)
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/StockAccount.java   (with props)
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/demo/
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/demo/BigBankServer.java   (with props)
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/calculator/
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/calculator/CalculatorService.java   (with props)
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/stockquote/
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/stockquote/StockQuoteService.java   (with props)
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/AccountData.composite   (with props)
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/BigBank.composite   (with props)
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/AccountService.wsdl   (with props)
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/StockQuote.wsdl   (with props)
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/   (with props)
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/AccountJSON.html   (with props)
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/WEB-INF/
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/WEB-INF/web.xml   (with props)
    incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/style.css
    incubator/tuscany/java/sca/demos/bigbank-calculator/   (with props)
    incubator/tuscany/java/sca/demos/bigbank-calculator/pom.xml   (with props)
    incubator/tuscany/java/sca/demos/bigbank-calculator/src/
    incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/
    incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/
    incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/
    incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/AddService.java   (with props)
    incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/CalculatorService.java   (with props)
    incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/CalculatorServiceImpl.java   (with props)
    incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/DivideService.java   (with props)
    incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/MultiplyService.java   (with props)
    incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/SubtractService.java   (with props)
    incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/demo/
    incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/demo/CalculatorServer.java   (with props)
    incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/
    incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/Calculator.composite   (with props)
    incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/
    incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/AddServiceImpl.componentType   (with props)
    incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/AddServiceImpl.js   (with props)
    incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/DivideServiceImpl.componentType   (with props)
    incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/DivideServiceImpl.groovy
    incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/MultiplyServiceImpl.componentType   (with props)
    incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/MultiplyServiceImpl.py   (with props)
    incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/SubtractServiceImpl.componentType   (with props)
    incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/SubtractServiceImpl.rb   (with props)
    incubator/tuscany/java/sca/demos/bigbank-calculator/src/test/
    incubator/tuscany/java/sca/demos/bigbank-stockquote/   (with props)
    incubator/tuscany/java/sca/demos/bigbank-stockquote/pom.xml   (with props)
    incubator/tuscany/java/sca/demos/bigbank-stockquote/src/
    incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/
    incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/java/
    incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/java/stockquote/
    incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/java/stockquote/StockQuoteImpl.java   (with props)
    incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/java/stockquote/StockQuoteService.java   (with props)
    incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/java/stockquote/demo/
    incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/java/stockquote/demo/StockQuoteServer.java   (with props)
    incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/
    incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/StockQuote.composite   (with props)
    incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/wsdl/
    incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/wsdl/StockQuote.wsdl   (with props)
    incubator/tuscany/java/sca/demos/pom.xml   (with props)

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue May 22 14:47:57 2007
@@ -0,0 +1,14 @@
+target
+*.iws
+*.ipr
+*.iml
+.project
+.classpath
+maven.log
+velocity.log*
+junit*.properties
+surefire*.properties
+.settings
+.deployables
+.wtpmodules
+

Added: incubator/tuscany/java/sca/demos/bigbank-account/build.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/build.xml?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-account/build.xml (added)
+++ incubator/tuscany/java/sca/demos/bigbank-account/build.xml Tue May 22 14:47:57 2007
@@ -0,0 +1,81 @@
+<?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="0.4.0"/>
+    <property name="dojo.distro" value="ajax"/>
+    <property name="unpack.location" value="${basedir}/src/main/webapp/dojo"/>
+	
+
+    <target name="check-dojo-installed">
+        <condition property="already.installed" >
+            <available file="${localRepository}/dojo/dojo-${dojo.distro}/${dojo.version}/dojo-${dojo.distro}-${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-${dojo.version}-${dojo.distro}.zip"
+            dest="${basedir}/target/dojo-download/dojo-${dojo.version}-${dojo.distro}.zip"
+            verbose="true"
+            usetimestamp="true"/>
+        <exec executable="mvn${maven.suffix}" dir="${basedir}" failonerror="false">
+            <arg line="install:install-file -DgroupId=dojo  -DartifactId=dojo-${dojo.distro} -Dversion=${dojo.version} -Dpackaging=zip -DgeneratePom=true -Dfile=${basedir}/target/dojo-download/dojo-${dojo.version}-${dojo.distro}.zip"/>
+        </exec>
+    </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" unless="already.installed"/>
+        <mkdir dir="${basedir}/target/dojo-unpack-temp/"/>
+        <unzip src="${localRepository}/dojo/dojo-${dojo.distro}/${dojo.version}/dojo-${dojo.distro}-${dojo.version}.zip"
+               dest="${basedir}/target/dojo-unpack-temp/"
+               overwrite="false">
+            <patternset>
+                <include name="dojo-${dojo.version}-${dojo.distro}/**"/>
+                <exclude name="dojo-${dojo.version}-${dojo.distro}/demos/**"/>
+                <exclude name="dojo-${dojo.version}-${dojo.distro}/tests/**"/>
+            </patternset>
+        </unzip>
+        <move file="${basedir}/target/dojo-unpack-temp/dojo-${dojo.version}-${dojo.distro}"
+              tofile="${unpack.location}"
+              verbose="true"/>
+        <delete dir="${basedir}/target/dojo-unpack-temp/"/>
+    </target>
+	
+
+    <target name="clean-dojo-files">
+        <delete dir="${unpack.location}"/>
+    </target>
+</project>

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/build.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/build.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/demos/bigbank-account/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/pom.xml?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-account/pom.xml (added)
+++ incubator/tuscany/java/sca/demos/bigbank-account/pom.xml Tue May 22 14:47:57 2007
@@ -0,0 +1,145 @@
+<?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-samples</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+    <artifactId>demo-bigbank-account</artifactId>
+    <packaging>war</packaging>
+    <name>Apache Tuscany 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-webapp</artifactId>
+            <version>1.0-incubating-SNAPSHOT</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-host-embedded</artifactId>
+            <version>1.0-incubating-SNAPSHOT</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-implementation-java-runtime</artifactId>
+            <version>1.0-incubating-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-binding-ws-axis2</artifactId>
+            <version>1.0-incubating-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-binding-jsonrpc</artifactId>
+            <version>1.0-incubating-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-binding-rmi</artifactId>
+            <version>1.0-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>sample-bigbank-account</finalName>
+            <plugins>
+            <plugin>
+                    <groupId>org.apache.maven.plugins</groupId>
+                    <artifactId>maven-antrun-plugin</artifactId>
+                    <executions>
+                        <execution> 
+                            <id>install-dojo</id>                       
+                            <phase>validate</phase>
+                            <goals>
+                                <goal>run</goal>
+                            </goals>
+                            <configuration>
+                                <tasks>
+                                    <ant 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 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 target="clean-dojo-files">
+                                        <property name="localRepository" value="${settings.localRepository}"/>
+                                        <property name="artifactId" value="${artifactId}"/>
+                                    </ant>
+                                </tasks>
+                            </configuration>
+                        </execution>
+                    </executions>
+                </plugin>            
+                </plugins>
+    </build>
+
+</project>

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/BigBankClient.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/BigBankClient.java?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/BigBankClient.java (added)
+++ incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/BigBankClient.java Tue May 22 14:47:57 2007
@@ -0,0 +1,50 @@
+/*
+ * 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;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+
+import bigbank.account.AccountService;
+
+/**
+ * This client program shows how to create an SCA runtime, start it,
+ * and locate and invoke a SCA component
+ */
+public class BigBankClient {
+    
+    public static void main(String[] args) throws Exception {
+
+        SCADomain domain = SCADomain.newInstance("http://localhost:8080", "/", "BigBank.composite");
+        
+        AccountService accountService = domain.getService(AccountService.class, "AccountServiceComponent");
+
+        String customerID = "1234";
+        
+        System.out.println("Calling account service for customer: " + customerID);
+        System.out.println();
+        double balance = accountService.getAccountReport(customerID);
+
+        System.out.println();
+        System.out.println("Balance: " + balance);
+
+        domain.close();
+    }  
+
+}

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/BigBankClient.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/BigBankClient.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountReport.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountReport.java?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountReport.java (added)
+++ incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountReport.java Tue May 22 14:47:57 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;
+
+
+/**
+ * @version $$Rev$$ $$Date: 2007-04-14 11:34:18 -0700 (Sat, 14 Apr
+ *          2007) $$
+ */
+
+public class AccountReport {
+    private String currency;
+    private String checkingAccountNumber;
+    private double checkingBalance;
+    private String savingsAccountNumber;
+    private double savingsBalance;
+    private String stockAccountNumber;
+    private double stockBalance;
+    
+    public String getCheckingAccountNumber() {
+        return checkingAccountNumber;
+    }
+    public void setCheckingAccountNumber(String checkingAccountID) {
+        this.checkingAccountNumber = checkingAccountID;
+    }
+    public double getCheckingBalance() {
+        return checkingBalance;
+    }
+    public void setCheckingBalance(double checkingBalance) {
+        this.checkingBalance = checkingBalance;
+    }
+    public String getCurrency() {
+        return currency;
+    }
+    public void setCurrency(String currency) {
+        this.currency = currency;
+    }
+    public String getSavingsAccountNumber() {
+        return savingsAccountNumber;
+    }
+    public void setSavingsAccountNumber(String savingsAccountID) {
+        this.savingsAccountNumber = savingsAccountID;
+    }
+    public double getSavingsBalance() {
+        return savingsBalance;
+    }
+    public void setSavingsBalance(double savingsBalance) {
+        this.savingsBalance = savingsBalance;
+    }
+    public String getStockAccountNumber() {
+        return stockAccountNumber;
+    }
+    public void setStockAccountNumber(String stockAccountID) {
+        this.stockAccountNumber = stockAccountID;
+    }
+    public double getStockBalance() {
+        return stockBalance;
+    }
+    public void setStockBalance(double stockBalance) {
+        this.stockBalance = stockBalance;
+    }
+
+    public String toString() {
+        return "Account Report: \n" +
+        "Checking: " + checkingAccountNumber + ", balance:" + checkingBalance + "\n" +
+        "Savings: " + savingsAccountNumber + ", balance:" + savingsBalance + "\n" +
+        "Stocks: " + stockAccountNumber + ", balance:" + stockBalance;
+    }
+}

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountReport.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountReport.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountService.java?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountService.java (added)
+++ incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountService.java Tue May 22 14:47:57 2007
@@ -0,0 +1,34 @@
+/*
+ * 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;
+import org.osoa.sca.annotations.Service;
+
+/**
+ * @version $$Rev$$ $$Date$$
+ */
+
+@Remotable
+@Service
+public interface AccountService {
+    
+	public double getAccountReport(String customerID);
+        
+}

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountService.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountService.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountService.wsdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountService.wsdl?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountService.wsdl (added)
+++ incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountService.wsdl Tue May 22 14:47:57 2007
@@ -0,0 +1,91 @@
+<?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.
+-->
+
+<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+	xmlns:tns="http://bigbank"
+	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	targetNamespace="http://bigbank"
+	name="AccountService">
+
+	<wsdl:types>
+		<xsd:schema
+			targetNamespace="http://bigbank"
+			xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+			<xsd:element name="getAccountReport">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element name="customerID" type="xsd:string" />
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>
+
+			<xsd:element name="getAccountReportResponse">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element name="balance" type="xsd:double" />
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>
+
+		</xsd:schema>
+	</wsdl:types>
+
+	<wsdl:message name="getAccountReportRequest">
+		<wsdl:part element="tns:getAccountReport"
+			name="getAccountReportRequest" />
+	</wsdl:message>
+
+	<wsdl:message name="getAccountReportResponse">
+		<wsdl:part element="tns:getAccountReportResponse"
+			name="getAccountReportResponse" />
+	</wsdl:message>
+
+	<wsdl:portType name="AccountService">
+		<wsdl:operation name="getAccountReport">
+			<wsdl:input message="tns:getAccountReportRequest" />
+			<wsdl:output message="tns:getAccountReportResponse" />
+		</wsdl:operation>
+	</wsdl:portType>
+
+	<wsdl:binding name="AccountServiceSoap" type="tns:AccountService">
+		<soap:binding style="document"
+			transport="http://schemas.xmlsoap.org/soap/http" />
+		<wsdl:operation name="getAccountReport">
+			<soap:operation
+				soapAction="" />
+			<wsdl:input>
+				<soap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output>
+				<soap:body use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+	</wsdl:binding>
+
+	<wsdl:service name="AccountService">
+		<wsdl:port binding="tns:AccountServiceSoap"
+			name="AccountServiceSoap">
+			<soap:address
+				location="http://localhost:8082/services/AccountWebService" />
+		</wsdl:port>
+	</wsdl:service>
+</wsdl:definitions>

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountService.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountService.wsdl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountServiceImpl.java?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountServiceImpl.java (added)
+++ incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountServiceImpl.java Tue May 22 14:47:57 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$$ $$Date$$
+ */
+
+@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;
+    }
+}

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountServiceImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountServiceImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataService.java?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataService.java (added)
+++ incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataService.java Tue May 22 14:47:57 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$$ $$Date$$
+ */
+
+public interface AccountDataService {
+    
+    public CheckingAccount getCheckingAccount(String customerID);
+    
+    public SavingsAccount getSavingsAccount(String customerID);
+    
+    public StockAccount getStockAccount(String customerID);
+    
+}

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataService.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataService.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataServiceImpl.java?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataServiceImpl.java (added)
+++ incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataServiceImpl.java Tue May 22 14:47:57 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$$ $$Date$$
+ */
+
+@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;
+	}
+}

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataServiceImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataServiceImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/CheckingAccount.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/CheckingAccount.java?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/CheckingAccount.java (added)
+++ incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/CheckingAccount.java Tue May 22 14:47:57 2007
@@ -0,0 +1,49 @@
+/*
+ * 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$$ $$Date: 2007-04-09 12:03:34 -0700 (Mon, 09 Apr
+ *          2007) $$
+ */
+
+public class CheckingAccount {
+    private String accountNumber;
+    private double balance;
+
+    public String getAccountNumber() {
+        return accountNumber;
+    }
+
+    public void setAccountNumber(String n) {
+        this.accountNumber = n;
+    }
+
+    public double getBalance() {
+        return balance;
+    }
+
+    public void setBalance(double b) {
+        this.balance = b;
+    }
+
+    public String toString() {
+        return accountNumber + ", balance:" + balance;
+    }
+}

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/CheckingAccount.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/CheckingAccount.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/SavingsAccount.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/SavingsAccount.java?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/SavingsAccount.java (added)
+++ incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/SavingsAccount.java Tue May 22 14:47:57 2007
@@ -0,0 +1,49 @@
+/*
+ * 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$$ $$Date: 2007-04-09 12:03:34 -0700 (Mon, 09 Apr
+ *          2007) $$
+ */
+
+public class SavingsAccount {
+    private String accountNumber;
+    private double balance;
+
+    public String getAccountNumber() {
+        return accountNumber;
+    }
+
+    public void setAccountNumber(String n) {
+        this.accountNumber = n;
+    }
+
+    public double getBalance() {
+        return balance;
+    }
+
+    public void setBalance(double b) {
+        this.balance = b;
+    }
+
+    public String toString() {
+        return accountNumber + ", balance:" + balance;
+    }
+}

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/SavingsAccount.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/SavingsAccount.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/StockAccount.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/StockAccount.java?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/StockAccount.java (added)
+++ incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/StockAccount.java Tue May 22 14:47:57 2007
@@ -0,0 +1,58 @@
+/*
+ * 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$$ $$Date: 2007-04-09 12:03:34 -0700 (Mon, 09 Apr
+ *          2007) $$
+ */
+
+public class StockAccount {
+    private String accountNumber;
+    private String symbol;
+    private int quantity;
+
+    public String getAccountNumber() {
+        return accountNumber;
+    }
+
+    public void setAccountNumber(String n) {
+        this.accountNumber = n;
+    }
+
+    public double getQuantity() {
+        return quantity;
+    }
+
+    public void setQuantity(int a) {
+        this.quantity = a;
+    }
+
+    public String getSymbol() {
+        return symbol;
+    }
+
+    public void setSymbol(String s) {
+        this.symbol = s;
+    }
+
+    public String toString() {
+        return accountNumber + ", symbol:" + symbol + ", quantity:" + quantity;
+    }
+}

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/StockAccount.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/StockAccount.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/demo/BigBankServer.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/demo/BigBankServer.java?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/demo/BigBankServer.java (added)
+++ incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/demo/BigBankServer.java Tue May 22 14:47:57 2007
@@ -0,0 +1,44 @@
+/*
+ * 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.demo;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+
+/**
+ * This client program shows how to create an SCA runtime, start it,
+ * and locate and invoke a SCA component
+ */
+public class BigBankServer {
+    
+    public static void main(String[] args) throws Exception {
+
+        System.out.println("Starting the Sample SCA BigBank server...");
+        
+        SCADomain domain = SCADomain.newInstance("http://localhost:8080", "/", "BigBank.composite");
+        
+        System.out.println("Press Enter to Exit...");
+        System.in.read();
+        
+        domain.close();
+        
+        System.out.println("Bye");
+    }  
+
+}

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/demo/BigBankServer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/demo/BigBankServer.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/calculator/CalculatorService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/calculator/CalculatorService.java?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/calculator/CalculatorService.java (added)
+++ incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/calculator/CalculatorService.java Tue May 22 14:47:57 2007
@@ -0,0 +1,34 @@
+/*
+ * 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 calculator;
+
+/**
+ * The Calculator service interface.
+ */
+public interface CalculatorService {
+
+    double add(double n1, double n2);
+
+    double subtract(double n1, double n2);
+
+    double multiply(double n1, double n2);
+
+    double divide(double n1, double n2);
+
+}

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/calculator/CalculatorService.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/calculator/CalculatorService.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/stockquote/StockQuoteService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/stockquote/StockQuoteService.java?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/stockquote/StockQuoteService.java (added)
+++ incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/stockquote/StockQuoteService.java Tue May 22 14:47:57 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 stockquote;
+
+import org.osoa.sca.annotations.Remotable;
+import org.osoa.sca.annotations.Service;
+
+/**
+ * This is the business interface of the StockQuote service.
+ */
+@Remotable
+@Service
+public interface StockQuoteService {
+
+    public double getQuote(String symbol);
+}
+

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/stockquote/StockQuoteService.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/stockquote/StockQuoteService.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/AccountData.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/AccountData.composite?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/AccountData.composite (added)
+++ incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/AccountData.composite Tue May 22 14:47:57 2007
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+	targetNamespace="http://bigbank"
+	xmlns:bb="http://bigbank"
+	name="AccountData">
+
+    <service name="AccountDataService" promote="AccountDataServiceComponent">
+        <interface.java interface="bigbank.accountdata.AccountDataService"/>
+    </service>
+
+    <component name="AccountDataServiceComponent">
+        <implementation.java class="bigbank.accountdata.AccountDataServiceImpl"/>
+    </component>
+
+</composite>

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/AccountData.composite
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/AccountData.composite
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/BigBank.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/BigBank.composite?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/BigBank.composite (added)
+++ incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/BigBank.composite Tue May 22 14:47:57 2007
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+	targetNamespace="http://bigbank"
+	xmlns:bb="http://bigbank"
+	name="BigBank">
+
+    <service name="AccountWebService" promote="AccountServiceComponent">
+        <interface.java interface="bigbank.account.AccountService"/>
+		<binding.ws wsdlElement="http://bigbank#wsdl.port(AccountService/AccountServiceSoap)"/>
+    </service>
+
+    <service name="AccountJSONService" promote="AccountServiceComponent">
+        <interface.java interface="bigbank.account.AccountService"/>
+        <binding.jsonrpc/>
+    </service>
+
+    <component name="AccountServiceComponent">
+        <implementation.java class="bigbank.account.AccountServiceImpl"/>
+        <reference name="accountDataService" target="AccountDataServiceComponent"/>
+        <property name="currency">EURO</property>
+    </component>
+
+    <component name="AccountDataServiceComponent">
+        <implementation.composite name="bb:AccountData"/>
+    </component>
+
+    <reference name="CalculatorReference" promote="AccountServiceComponent/calculatorService">
+    	<binding.rmi host="localhost" port="8099" serviceName="CalculatorRMIService"/>
+   	</reference> 
+   	
+    <reference name="StockQuoteReference" promote="AccountServiceComponent/stockQuoteService">
+        <binding.ws wsdlElement="http://stockquote#wsdl.port(StockQuoteService/StockQuoteSoapPort)"/>
+    </reference>
+
+</composite>

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/BigBank.composite
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/BigBank.composite
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/AccountService.wsdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/AccountService.wsdl?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/AccountService.wsdl (added)
+++ incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/AccountService.wsdl Tue May 22 14:47:57 2007
@@ -0,0 +1,91 @@
+<?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.
+-->
+
+<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+	xmlns:tns="http://bigbank"
+	xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	targetNamespace="http://bigbank"
+	name="AccountService">
+
+	<wsdl:types>
+		<xsd:schema
+			targetNamespace="http://bigbank"
+			xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+			<xsd:element name="getAccountReport">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element name="customerID" type="xsd:string" />
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>
+
+			<xsd:element name="getAccountReportResponse">
+				<xsd:complexType>
+					<xsd:sequence>
+						<xsd:element name="balance" type="xsd:double" />
+					</xsd:sequence>
+				</xsd:complexType>
+			</xsd:element>
+
+		</xsd:schema>
+	</wsdl:types>
+
+	<wsdl:message name="getAccountReportRequest">
+		<wsdl:part element="tns:getAccountReport"
+			name="getAccountReportRequest" />
+	</wsdl:message>
+
+	<wsdl:message name="getAccountReportResponse">
+		<wsdl:part element="tns:getAccountReportResponse"
+			name="getAccountReportResponse" />
+	</wsdl:message>
+
+	<wsdl:portType name="AccountService">
+		<wsdl:operation name="getAccountReport">
+			<wsdl:input message="tns:getAccountReportRequest" />
+			<wsdl:output message="tns:getAccountReportResponse" />
+		</wsdl:operation>
+	</wsdl:portType>
+
+	<wsdl:binding name="AccountServiceSoap" type="tns:AccountService">
+		<soap:binding style="document"
+			transport="http://schemas.xmlsoap.org/soap/http" />
+		<wsdl:operation name="getAccountReport">
+			<soap:operation
+				soapAction="" />
+			<wsdl:input>
+				<soap:body use="literal" />
+			</wsdl:input>
+			<wsdl:output>
+				<soap:body use="literal" />
+			</wsdl:output>
+		</wsdl:operation>
+	</wsdl:binding>
+
+	<wsdl:service name="AccountService">
+		<wsdl:port binding="tns:AccountServiceSoap"
+			name="AccountServiceSoap">
+			<soap:address
+				location="http://localhost:8082/services/AccountWebService" />
+		</wsdl:port>
+	</wsdl:service>
+</wsdl:definitions>

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/AccountService.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/AccountService.wsdl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/StockQuote.wsdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/StockQuote.wsdl?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/StockQuote.wsdl (added)
+++ incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/StockQuote.wsdl Tue May 22 14:47:57 2007
@@ -0,0 +1,79 @@
+<?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.    
+-->
+<wsdl:definitions targetNamespace="http://stockquote" xmlns:tns="http://stockquote" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+	name="stockquote">
+
+    <wsdl:types>
+        <schema elementFormDefault="qualified" targetNamespace="http://stockquote" xmlns="http://www.w3.org/2001/XMLSchema">
+
+            <element name="getQuote">
+                <complexType>
+                    <sequence>
+                        <element name="name" type="xsd:string"/>
+                    </sequence>
+                </complexType>
+            </element>
+
+            <element name="getQuoteResponse">
+                <complexType>
+                    <sequence>
+                        <element name="getQuoteReturn" type="xsd:double"/>
+                    </sequence>
+                </complexType>
+            </element>
+            
+        </schema>
+    </wsdl:types>
+
+    <wsdl:message name="getQuoteRequest">
+        <wsdl:part element="tns:getQuote" name="parameters"/>
+    </wsdl:message>
+
+    <wsdl:message name="getQuoteResponse">
+        <wsdl:part element="tns:getQuoteResponse" name="parameters"/>
+    </wsdl:message>
+
+    <wsdl:portType name="StockQuote">
+        <wsdl:operation name="getQuote">
+            <wsdl:input message="tns:getQuoteRequest" name="getQuoteRequest"/>
+            <wsdl:output message="tns:getQuoteResponse" name="getQuoteResponse"/>
+        </wsdl:operation>
+    </wsdl:portType>
+
+    <wsdl:binding name="StockQuoteSoapBinding" type="tns:StockQuote">
+        <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+        <wsdl:operation name="getQuote">
+            <wsdlsoap:operation soapAction=""/>
+            <wsdl:input name="getQuoteRequest">
+                <wsdlsoap:body use="literal"/>
+            </wsdl:input>
+            <wsdl:output name="getQuoteResponse">
+                <wsdlsoap:body use="literal"/>
+            </wsdl:output>
+        </wsdl:operation>
+    </wsdl:binding>
+
+    <wsdl:service name="StockQuoteService">
+        <wsdl:port binding="tns:StockQuoteSoapBinding" name="StockQuoteSoapPort">
+            <wsdlsoap:address location="http://localhost:8081/services/StockQuoteWebService"/>
+        </wsdl:port>
+    </wsdl:service>
+
+</wsdl:definitions>

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/StockQuote.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/StockQuote.wsdl
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue May 22 14:47:57 2007
@@ -0,0 +1 @@
+dojo

Added: incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/AccountJSON.html
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/AccountJSON.html?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/AccountJSON.html (added)
+++ incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/AccountJSON.html Tue May 22 14:47:57 2007
@@ -0,0 +1,102 @@
+<html>
+<!--
+ * 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.    
+ -->
+  <head>
+    <title>Tuscany JSON-RPC BigBank Client</TITLE>
+    
+    <script type="text/javascript">
+        var djConfig = {isDebug: true,debugContainerId: "dojoDebug" };
+        //djConfig.debugAtAllCosts = true;
+    </script>
+
+    <script type="text/javascript" src="services/SCA/scripts"></script>
+
+    <script language="JavaScript">
+       SCA = new JSONRpcClient("services/AccountJSONService");
+    
+       function getAccountReport() {
+          var name = document.getElementById("name").value;
+          var result = SCA.AccountJSONService.getAccountReport(name);
+          document.getElementById('balance').innerHTML=result;
+       }
+    </script>
+    
+    <script type="text/javascript" src="dojo/dojo.js"> 
+    </script>
+
+    <script type="text/javascript">
+    	dojo.require("dojo.widget.*");
+    	dojo.require("dojo.widget.Button");
+    	dojo.require("dojo.rpc.JsonService");    	
+    </script>
+    
+    <link rel="stylesheet" type="text/css" href="style.css" />
+  </head>
+
+  <body>
+
+    <table>
+      <tr>
+        <th colspan="2">Tuscany JSON-RPC BigBank Client</th>
+      </tr>
+      <tr>
+        <td colspan="2">
+           <p>This example uses the <a href="http://dojotoolkit.org/">Dojo Toolkit</a>
+           to create a JavaScript object <code>accountService</code> for the service at
+           <b>services/AccountJSONService</b>
+           using <a href="http://manual.dojotoolkit.org/WikiHome/DojoDotBook/Book9">Dojo's RPC classes</a>
+           and providing them with <a href="services/AccountJSONService?smd">services/AccountJSONService?smd</a>
+           for <a href="http://dojo.jot.com/SMD">Simple Method Description (SMD)</a> input.</p>
+           <p>It then creates a Dojo button that will envoke the <code>getAccountReport</code> method of the <code>accountService</code> object.</p>
+      </tr>
+      <tr>
+        <td>Request</td>
+        <td>Response</td>
+      </tr>
+      <tr>
+        <td>
+            <br><div id="myaccount" dojoType="Button" onClick='accountService.getAccountReport("Dojo").addCallback(contentCallBack);'>accountService.getAccountReport("Dojo").addCallback(contentCallBack);</div><br>
+        </td>
+        <td>           
+            <div id="ReturnedContent">None Yet.</div>
+        </td>
+      </tr>      
+      <tr>
+        <td colspan="2">
+           <div id="dojoDebug">Dojo Debug:</div>
+        </td>
+      </tr>
+    </table>    
+    
+    
+   
+    
+    <script type="text/javascript">
+    
+    	function contentCallBack(result) {
+    		var handlerNode = document.getElementById("ReturnedContent");
+    		handlerNode.innerHTML = "<p>" + result + "</p>" ;
+    	}
+    
+    	var accountService = new dojo.rpc.JsonService("services/AccountJSONService?smd");
+    
+    </script>
+       
+  </body>
+</html>

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/AccountJSON.html
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/AccountJSON.html
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/WEB-INF/web.xml?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/WEB-INF/web.xml (added)
+++ incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/WEB-INF/web.xml Tue May 22 14:47:57 2007
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ * 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.    
+-->
+
+<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
+Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
+<web-app>
+
+
+  <display-name>Tuscany BigBank Account Sample</display-name>
+
+    <welcome-file-list id="WelcomeFileList">
+        <welcome-file>AccountJSON.html</welcome-file>
+    </welcome-file-list>  
+    
+  <listener>
+     <listener-class>org.apache.tuscany.sca.webapp.TuscanyContextListener</listener-class>
+  </listener>
+
+
+<servlet>
+       <servlet-name>TuscanyServlet</servlet-name>
+       <servlet-class>org.apache.tuscany.sca.webapp.TuscanyServlet</servlet-class>
+    </servlet>
+ 
+    <servlet-mapping>
+       <servlet-name>TuscanyServlet</servlet-name>
+       <url-pattern>/services/*</url-pattern>
+    </servlet-mapping>
+</web-app>

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/style.css
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/style.css?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/style.css (added)
+++ incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/style.css Tue May 22 14:47:57 2007
@@ -0,0 +1,4 @@
+* { font-family: arial; }
+
+table, th, td { border: 2px solid blue; border-collapse: collapse; }
+th { color: white; background-color: blue; }

Propchange: incubator/tuscany/java/sca/demos/bigbank-calculator/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Tue May 22 14:47:57 2007
@@ -0,0 +1,14 @@
+target
+*.iws
+*.ipr
+*.iml
+.project
+.classpath
+maven.log
+velocity.log*
+junit*.properties
+surefire*.properties
+.settings
+.deployables
+.wtpmodules
+

Added: incubator/tuscany/java/sca/demos/bigbank-calculator/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-calculator/pom.xml?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-calculator/pom.xml (added)
+++ incubator/tuscany/java/sca/demos/bigbank-calculator/pom.xml Tue May 22 14:47:57 2007
@@ -0,0 +1,78 @@
+<?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-sca</artifactId>
+        <version>1.0-incubating-SNAPSHOT</version>
+        <relativePath>../../pom.xml</relativePath>
+    </parent>
+    <artifactId>demo-bigbank-calculator</artifactId>
+    <name>Apache Tuscany BigBank Calculator 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.0-incubating-SNAPSHOT</version>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-implementation-java-runtime</artifactId>
+            <version>1.0-incubating-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-implementation-script</artifactId>
+            <version>1.0-incubating-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-binding-rmi</artifactId>
+            <version>1.0-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>${artifactId}</finalName>
+    </build>
+</project>

Propchange: incubator/tuscany/java/sca/demos/bigbank-calculator/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/demos/bigbank-calculator/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/AddService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/AddService.java?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/AddService.java (added)
+++ incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/AddService.java Tue May 22 14:47:57 2007
@@ -0,0 +1,25 @@
+/*
+ * 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 calculator;
+
+public interface AddService {
+
+    double add(double n1, double n2);
+
+}

Propchange: incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/AddService.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/AddService.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/CalculatorService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/CalculatorService.java?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/CalculatorService.java (added)
+++ incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/CalculatorService.java Tue May 22 14:47:57 2007
@@ -0,0 +1,34 @@
+/*
+ * 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 calculator;
+
+/**
+ * The Calculator service interface.
+ */
+public interface CalculatorService {
+
+    double add(double n1, double n2);
+
+    double subtract(double n1, double n2);
+
+    double multiply(double n1, double n2);
+
+    double divide(double n1, double n2);
+
+}

Propchange: incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/CalculatorService.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/CalculatorService.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/CalculatorServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/CalculatorServiceImpl.java?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/CalculatorServiceImpl.java (added)
+++ incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/CalculatorServiceImpl.java Tue May 22 14:47:57 2007
@@ -0,0 +1,69 @@
+/*
+ * 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 calculator;
+
+import org.osoa.sca.annotations.Reference;
+
+/**
+ * An implementation of the Calculator service.
+ */
+public class CalculatorServiceImpl implements CalculatorService {
+
+    private AddService addService;
+    private SubtractService subtractService;
+    private MultiplyService multiplyService;
+    private DivideService divideService;
+
+    @Reference
+    public void setAddService(AddService addService) {
+        this.addService = addService;
+    }
+
+    @Reference
+    public void setSubtractService(SubtractService subtractService) {
+        this.subtractService = subtractService;
+    }
+
+    @Reference
+    public void setDivideService(DivideService divideService) {
+        this.divideService = divideService;
+    }
+
+    @Reference
+    public void setMultiplyService(MultiplyService multiplyService) {
+        this.multiplyService = multiplyService;
+    }
+
+    public double add(double n1, double n2) {
+        return addService.add(n1, n2);
+    }
+
+    public double subtract(double n1, double n2) {
+        return subtractService.subtract(n1, n2);
+    }
+
+    public double multiply(double n1, double n2) {
+        return multiplyService.multiply(n1, n2);
+    }
+
+    public double divide(double n1, double n2) {
+        return divideService.divide(n1, n2);
+    }
+
+}

Propchange: incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/CalculatorServiceImpl.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/CalculatorServiceImpl.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date

Added: incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/DivideService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/DivideService.java?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/DivideService.java (added)
+++ incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/DivideService.java Tue May 22 14:47:57 2007
@@ -0,0 +1,25 @@
+/*
+ * 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 calculator;
+
+public interface DivideService {
+
+    double divide(double n1, double n2);
+
+}

Propchange: incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/DivideService.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/DivideService.java
------------------------------------------------------------------------------
    svn:keywords = Rev Date



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


Re: svn commit: r540764 [1/2] - in /incubator/tuscany/java/sca/demos: ./ bigbank-account/ bigbank-account/src/ bigbank-account/src/main/ bigbank-account/src/main/java/ bigbank-account/src/main/java/bigbank/ bigbank-account/src/main/java/bigbank/account/ bi

Posted by Jean-Sebastien Delfino <js...@apache.org>.
Raymond Feng wrote:
> Hi,
>
> I found out the StockQuoteServer is using TomcatServer which doesn't 
> handle the uri port at all.
>
> Thanks,
> Raymond
>

My bad... I had not regenerated my Eclipse project with mvn 
eclipse:eclipse so it was still using Jetty instead of Tomcat as 
specified in the pom.xml. At least it allowed us to find a bug in our 
Tomcat integration code, and it looks like you've fixed it in revision 
r541484 :)

> ----- Original Message ----- From: "Jean-Sebastien Delfino" 
> <js...@apache.org>
> To: <tu...@ws.apache.org>
> Sent: Wednesday, May 23, 2007 11:20 AM
> Subject: Re: svn commit: r540764 [1/2] - in 
> /incubator/tuscany/java/sca/demos: ./ bigbank-account/ 
> bigbank-account/src/ bigbank-account/src/main/ 
> bigbank-account/src/main/java/ bigbank-account/src/main/java/bigbank/ 
> bigbank-account/src/main/java/bigbank/account/ bi
>
>
>> Raymond Feng wrote:
>>> Hi,
>>>
>>> I started the StockQuoteServer and it was listening on 8080.
>>>
>>> Raymond
>>>
>>> ----- Original Message ----- From: "Jean-Sebastien Delfino" 
>>> <js...@apache.org>
>>> To: <tu...@ws.apache.org>
>>> Sent: Wednesday, May 23, 2007 10:25 AM
>>> Subject: Re: svn commit: r540764 [1/2] - in 
>>> /incubator/tuscany/java/sca/demos: ./ bigbank-account/ 
>>> bigbank-account/src/ bigbank-account/src/main/ 
>>> bigbank-account/src/main/java/ 
>>> bigbank-account/src/main/java/bigbank/ 
>>> bigbank-account/src/main/java/bigbank/account/ bi
>>>
>>>
>>>> Raymond Feng wrote:
>>>>> Hi,
>>>>>
>>>>> I followed your instructions, but I still saw the failure as shown 
>>>>> below. It seems that the web services are running under 8080. Does 
>>>>> the binding.axis2 now honor the port from the soap address in the 
>>>>> WSDL?
>>>>>
>>>>> Thanks,
>>>>> Raymond
>>>>>
>>>>> log4j:WARN No appenders could be found for logger 
>>>>> (org.apache.axiom.om.util.StAXUtils).
>>>>> log4j:WARN Please initialize the log4j system properly.
>>>>> Calling account service for customer: 1234
>>>>> Checking account: CHA_1234, balance:500.0
>>>>> Savings account: SAA_1234, balance:1500.0
>>>>> Stock account: STA_1234, symbol:IBM, quantity:100
>>>>> Exception in thread "main" 
>>>>> java.lang.reflect.UndeclaredThrowableException
>>>>> at $Proxy7.getQuote(Unknown Source)
>>>>> at 
>>>>> bigbank.account.AccountServiceImpl.getAccountReport(AccountServiceImpl.java:65) 
>>>>>
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> at 
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) 
>>>>>
>>>>> at 
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
>>>>>
>>>>> at java.lang.reflect.Method.invoke(Method.java:615)
>>>>> at 
>>>>> org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invokeTarget(JavaTargetInvoker.java:112) 
>>>>>
>>>>> at 
>>>>> org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invoke(JavaTargetInvoker.java:134) 
>>>>>
>>>>> at 
>>>>> org.apache.tuscany.sca.implementation.java.invocation.PassByValueInvoker.invoke(PassByValueInvoker.java:61) 
>>>>>
>>>>> at 
>>>>> org.apache.tuscany.sca.implementation.java.invocation.TargetInvokerInvoker.invoke(TargetInvokerInvoker.java:46) 
>>>>>
>>>>> at 
>>>>> org.apache.tuscany.sca.core.invocation.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:84) 
>>>>>
>>>>> at 
>>>>> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:73) 
>>>>>
>>>>> at $Proxy4.getAccountReport(Unknown Source)
>>>>> at bigbank.client.BigBankClient.main(BigBankClient.java:42)
>>>>> Caused by: org.apache.axis2.AxisFault: Connection refused: connect
>>>>> at 
>>>>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:221) 
>>>>>
>>>>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:452)
>>>>> at 
>>>>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330) 
>>>>>
>>>>> at 
>>>>> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294) 
>>>>>
>>>>> at 
>>>>> org.apache.tuscany.sca.binding.axis2.Axis2BindingInvoker.invokeTarget(Axis2BindingInvoker.java:92) 
>>>>>
>>>>> at 
>>>>> org.apache.tuscany.sca.binding.axis2.Axis2BindingInvoker.invoke(Axis2BindingInvoker.java:71) 
>>>>>
>>>>> at 
>>>>> org.apache.tuscany.core.databinding.wire.DataTransformationInteceptor.invoke(DataTransformationInteceptor.java:68) 
>>>>>
>>>>> at 
>>>>> org.apache.tuscany.sca.core.invocation.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:84) 
>>>>>
>>>>> at 
>>>>> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:73) 
>>>>>
>>>>> ... 14 more
>>>>> Caused by: org.apache.axis2.AxisFault: Connection refused: connect
>>>>> at 
>>>>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:314) 
>>>>>
>>>>> at 
>>>>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:201) 
>>>>>
>>>>> ... 22 more
>>>>> Caused by: org.apache.axis2.AxisFault: Connection refused: connect
>>>>> at 
>>>>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:179) 
>>>>>
>>>>> at 
>>>>> org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:73)
>>>>> at 
>>>>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:305) 
>>>>>
>>>>> ... 23 more
>>>>> Caused by: java.net.ConnectException: Connection refused: connect
>>>>> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:372)
>>>>> at 
>>>>> java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:233)
>>>>> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:220)
>>>>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:385)
>>>>> at java.net.Socket.connect(Socket.java:541)
>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>> at 
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) 
>>>>>
>>>>> at 
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
>>>>>
>>>>> at java.lang.reflect.Method.invoke(Method.java:615)
>>>>> at 
>>>>> org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:139) 
>>>>>
>>>>> at 
>>>>> org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:124) 
>>>>>
>>>>> at 
>>>>> org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706) 
>>>>>
>>>>> at 
>>>>> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321) 
>>>>>
>>>>> at 
>>>>> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386) 
>>>>>
>>>>> at 
>>>>> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) 
>>>>>
>>>>> at 
>>>>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) 
>>>>>
>>>>> at 
>>>>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) 
>>>>>
>>>>> at 
>>>>> org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:558) 
>>>>>
>>>>> at 
>>>>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:176) 
>>>>>
>>>>> ... 25 more
>>>>>
>>>>> ----- Original Message ----- From: "Jean-Sebastien Delfino" 
>>>>> <js...@apache.org>
>>>>> To: <tu...@ws.apache.org>
>>>>> Sent: Tuesday, May 22, 2007 11:27 PM
>>>>> Subject: Re: svn commit: r540764 [1/2] - in 
>>>>> /incubator/tuscany/java/sca/demos: ./ bigbank-account/ 
>>>>> bigbank-account/src/ bigbank-account/src/main/ 
>>>>> bigbank-account/src/main/java/ 
>>>>> bigbank-account/src/main/java/bigbank/ 
>>>>> bigbank-account/src/main/java/bigbank/account/ bi
>>>>>
>>>>>
>>>>>> Raymond Feng wrote:
>>>>>>> Hi, Sebastien.
>>>>>>>
>>>>>>> I'm trying to play with this cool demo and I have a few questions:
>>>>>>>
>>>>>>> 1) How can I start the stockquote and accountservice under 
>>>>>>> different HTTP ports (8081, 8082)?
>>>>>>> 2) What's the URL of the web 2.0 demo page?
>>>>>>>
>>>>>>> In my case, I first started StockQuoteServer, CalculatorServer 
>>>>>>> and BigBankServer. Then when I tried to run BigBankClient, it 
>>>>>>> failed with an exception complaining "connect refused". I guess 
>>>>>>> it tried to connect to the port 8081 or 8082.
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Raymond
>>>>>>>
>>>>>>
>>>>>> The port numbers are configured in the bindings of the various 
>>>>>> services:
>>>>>> StockQuoteService uses port 8081, as configured in StockQuote.wsdl
>>>>>> AccountService uses port 8082, as configured in AccountService.wsdl
>>>>>>
>>>>>> The way the demo is configured, you can do the following:
>>>>>>
>>>>>> - First start both the StockQuoteServer and CalculatorServer
>>>>>>
>>>>>> - Then run BigBankClient. It will make a local to call the 
>>>>>> AccountService, which will in turn invoke the StockQuote service 
>>>>>> over SOAP and Calculator service over RMI.
>>>>>>
>>>>>> - Or run BigBankServer, and invoke the AccountService Web service 
>>>>>> using a SOAP client tool. I've been successful with the Web 
>>>>>> Services tool from the Eclipse WTP project (just right click on 
>>>>>> AccountService.wsdl and go from there).
>>>>>>
>>>>>> - Or deploy demo-bigbank-account .war to Tomcat (in this case the 
>>>>>> AccountService will be provided on port 8080) and again invoke 
>>>>>> the AccountService Web Service using your Web Services tool. When 
>>>>>> running on top of Tomcat, the demo also provides a DOJO based UI 
>>>>>> at http://localhost:8080/demo-bigbank-account/, which will will 
>>>>>> invoke the AccountService JSON-RPC service when you click the 
>>>>>> getAccountReport button.
>>>>>>
>>>>>> BigBankClient runs the same SCA composites as BigBankServer, so 
>>>>>> you'll get AddressInUse errors if you try to run it at the same 
>>>>>> time as BigBankServer. If you wanted to have  a separate 
>>>>>> BigBankClient talking to the AccountService Web service it would 
>>>>>> have to be in a different Maven module and use a different 
>>>>>> composite containing an SCA reference for the AccountService.
>>>>>>
>>>>>> -- 
>>>>>> Jean-Sebastien
>>>>>>
>>>>>>
>>>>
>>>> Can you just start StockQuoteServer, and see what port it listens 
>>>> on? it should be 8081, that's what I see in my environment.
>>>>
>>>> -- 
>>>> Jean-Sebastien
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
>>>> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
>>> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>>>
>>>
>>
>> Can you set a breakpoint in JettyServer to see why it's listening on 
>> the wrong port? The WSDL says 8081, it should listen on 8081, that's 
>> what it does on my machine with the latest code from trunk, but this 
>> code has not changed for a while.
>>
>> -- 
>> Jean-Sebastien
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>


-- 
Jean-Sebastien


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


Re: svn commit: r540764 [1/2] - in /incubator/tuscany/java/sca/demos: ./ bigbank-account/ bigbank-account/src/ bigbank-account/src/main/ bigbank-account/src/main/java/ bigbank-account/src/main/java/bigbank/ bigbank-account/src/main/java/bigbank/account/ bi

Posted by Raymond Feng <en...@gmail.com>.
Hi,

I found out the StockQuoteServer is using TomcatServer which doesn't handle 
the uri port at all.

Thanks,
Raymond

----- Original Message ----- 
From: "Jean-Sebastien Delfino" <js...@apache.org>
To: <tu...@ws.apache.org>
Sent: Wednesday, May 23, 2007 11:20 AM
Subject: Re: svn commit: r540764 [1/2] - in 
/incubator/tuscany/java/sca/demos: ./ bigbank-account/ bigbank-account/src/ 
bigbank-account/src/main/ bigbank-account/src/main/java/ 
bigbank-account/src/main/java/bigbank/ 
bigbank-account/src/main/java/bigbank/account/ bi


> Raymond Feng wrote:
>> Hi,
>>
>> I started the StockQuoteServer and it was listening on 8080.
>>
>> Raymond
>>
>> ----- Original Message ----- From: "Jean-Sebastien Delfino" 
>> <js...@apache.org>
>> To: <tu...@ws.apache.org>
>> Sent: Wednesday, May 23, 2007 10:25 AM
>> Subject: Re: svn commit: r540764 [1/2] - in 
>> /incubator/tuscany/java/sca/demos: ./ bigbank-account/ 
>> bigbank-account/src/ bigbank-account/src/main/ 
>> bigbank-account/src/main/java/ bigbank-account/src/main/java/bigbank/ 
>> bigbank-account/src/main/java/bigbank/account/ bi
>>
>>
>>> Raymond Feng wrote:
>>>> Hi,
>>>>
>>>> I followed your instructions, but I still saw the failure as shown 
>>>> below. It seems that the web services are running under 8080. Does the 
>>>> binding.axis2 now honor the port from the soap address in the WSDL?
>>>>
>>>> Thanks,
>>>> Raymond
>>>>
>>>> log4j:WARN No appenders could be found for logger 
>>>> (org.apache.axiom.om.util.StAXUtils).
>>>> log4j:WARN Please initialize the log4j system properly.
>>>> Calling account service for customer: 1234
>>>> Checking account: CHA_1234, balance:500.0
>>>> Savings account: SAA_1234, balance:1500.0
>>>> Stock account: STA_1234, symbol:IBM, quantity:100
>>>> Exception in thread "main" 
>>>> java.lang.reflect.UndeclaredThrowableException
>>>> at $Proxy7.getQuote(Unknown Source)
>>>> at 
>>>> bigbank.account.AccountServiceImpl.getAccountReport(AccountServiceImpl.java:65)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at 
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>>>> at 
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:615)
>>>> at 
>>>> org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invokeTarget(JavaTargetInvoker.java:112)
>>>> at 
>>>> org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invoke(JavaTargetInvoker.java:134)
>>>> at 
>>>> org.apache.tuscany.sca.implementation.java.invocation.PassByValueInvoker.invoke(PassByValueInvoker.java:61)
>>>> at 
>>>> org.apache.tuscany.sca.implementation.java.invocation.TargetInvokerInvoker.invoke(TargetInvokerInvoker.java:46)
>>>> at 
>>>> org.apache.tuscany.sca.core.invocation.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:84)
>>>> at 
>>>> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:73)
>>>> at $Proxy4.getAccountReport(Unknown Source)
>>>> at bigbank.client.BigBankClient.main(BigBankClient.java:42)
>>>> Caused by: org.apache.axis2.AxisFault: Connection refused: connect
>>>> at 
>>>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:221)
>>>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:452)
>>>> at 
>>>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330)
>>>> at 
>>>> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
>>>> at 
>>>> org.apache.tuscany.sca.binding.axis2.Axis2BindingInvoker.invokeTarget(Axis2BindingInvoker.java:92)
>>>> at 
>>>> org.apache.tuscany.sca.binding.axis2.Axis2BindingInvoker.invoke(Axis2BindingInvoker.java:71)
>>>> at 
>>>> org.apache.tuscany.core.databinding.wire.DataTransformationInteceptor.invoke(DataTransformationInteceptor.java:68)
>>>> at 
>>>> org.apache.tuscany.sca.core.invocation.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:84)
>>>> at 
>>>> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:73)
>>>> ... 14 more
>>>> Caused by: org.apache.axis2.AxisFault: Connection refused: connect
>>>> at 
>>>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:314)
>>>> at 
>>>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:201)
>>>> ... 22 more
>>>> Caused by: org.apache.axis2.AxisFault: Connection refused: connect
>>>> at 
>>>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:179)
>>>> at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:73)
>>>> at 
>>>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:305)
>>>> ... 23 more
>>>> Caused by: java.net.ConnectException: Connection refused: connect
>>>> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:372)
>>>> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:233)
>>>> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:220)
>>>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:385)
>>>> at java.net.Socket.connect(Socket.java:541)
>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>> at 
>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>>>> at 
>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>> at java.lang.reflect.Method.invoke(Method.java:615)
>>>> at 
>>>> org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:139)
>>>> at 
>>>> org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:124)
>>>> at 
>>>> org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
>>>> at 
>>>> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321)
>>>> at 
>>>> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
>>>> at 
>>>> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
>>>> at 
>>>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
>>>> at 
>>>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
>>>> at 
>>>> org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:558)
>>>> at 
>>>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:176)
>>>> ... 25 more
>>>>
>>>> ----- Original Message ----- From: "Jean-Sebastien Delfino" 
>>>> <js...@apache.org>
>>>> To: <tu...@ws.apache.org>
>>>> Sent: Tuesday, May 22, 2007 11:27 PM
>>>> Subject: Re: svn commit: r540764 [1/2] - in 
>>>> /incubator/tuscany/java/sca/demos: ./ bigbank-account/ 
>>>> bigbank-account/src/ bigbank-account/src/main/ 
>>>> bigbank-account/src/main/java/ bigbank-account/src/main/java/bigbank/ 
>>>> bigbank-account/src/main/java/bigbank/account/ bi
>>>>
>>>>
>>>>> Raymond Feng wrote:
>>>>>> Hi, Sebastien.
>>>>>>
>>>>>> I'm trying to play with this cool demo and I have a few questions:
>>>>>>
>>>>>> 1) How can I start the stockquote and accountservice under different 
>>>>>> HTTP ports (8081, 8082)?
>>>>>> 2) What's the URL of the web 2.0 demo page?
>>>>>>
>>>>>> In my case, I first started StockQuoteServer, CalculatorServer and 
>>>>>> BigBankServer. Then when I tried to run BigBankClient, it failed with 
>>>>>> an exception complaining "connect refused". I guess it tried to 
>>>>>> connect to the port 8081 or 8082.
>>>>>>
>>>>>> Thanks,
>>>>>> Raymond
>>>>>>
>>>>>
>>>>> The port numbers are configured in the bindings of the various 
>>>>> services:
>>>>> StockQuoteService uses port 8081, as configured in StockQuote.wsdl
>>>>> AccountService uses port 8082, as configured in AccountService.wsdl
>>>>>
>>>>> The way the demo is configured, you can do the following:
>>>>>
>>>>> - First start both the StockQuoteServer and CalculatorServer
>>>>>
>>>>> - Then run BigBankClient. It will make a local to call the 
>>>>> AccountService, which will in turn invoke the StockQuote service over 
>>>>> SOAP and Calculator service over RMI.
>>>>>
>>>>> - Or run BigBankServer, and invoke the AccountService Web service 
>>>>> using a SOAP client tool. I've been successful with the Web Services 
>>>>> tool from the Eclipse WTP project (just right click on 
>>>>> AccountService.wsdl and go from there).
>>>>>
>>>>> - Or deploy demo-bigbank-account .war to Tomcat (in this case the 
>>>>> AccountService will be provided on port 8080) and again invoke the 
>>>>> AccountService Web Service using your Web Services tool. When running 
>>>>> on top of Tomcat, the demo also provides a DOJO based UI at 
>>>>> http://localhost:8080/demo-bigbank-account/, which will will invoke 
>>>>> the AccountService JSON-RPC service when you click the 
>>>>> getAccountReport button.
>>>>>
>>>>> BigBankClient runs the same SCA composites as BigBankServer, so you'll 
>>>>> get AddressInUse errors if you try to run it at the same time as 
>>>>> BigBankServer. If you wanted to have  a separate BigBankClient talking 
>>>>> to the AccountService Web service it would have to be in a different 
>>>>> Maven module and use a different composite containing an SCA reference 
>>>>> for the AccountService.
>>>>>
>>>>> -- 
>>>>> Jean-Sebastien
>>>>>
>>>>>
>>>
>>> Can you just start StockQuoteServer, and see what port it listens on? it 
>>> should be 8081, that's what I see in my environment.
>>>
>>> -- 
>>> Jean-Sebastien
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
>>> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>>
>>
>
> Can you set a breakpoint in JettyServer to see why it's listening on the 
> wrong port? The WSDL says 8081, it should listen on 8081, that's what it 
> does on my machine with the latest code from trunk, but this code has not 
> changed for a while.
>
> -- 
> Jean-Sebastien
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> 


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


Re: svn commit: r540764 [1/2] - in /incubator/tuscany/java/sca/demos: ./ bigbank-account/ bigbank-account/src/ bigbank-account/src/main/ bigbank-account/src/main/java/ bigbank-account/src/main/java/bigbank/ bigbank-account/src/main/java/bigbank/account/ bi

Posted by Jean-Sebastien Delfino <js...@apache.org>.
Raymond Feng wrote:
> Hi,
>
> I started the StockQuoteServer and it was listening on 8080.
>
> Raymond
>
> ----- Original Message ----- From: "Jean-Sebastien Delfino" 
> <js...@apache.org>
> To: <tu...@ws.apache.org>
> Sent: Wednesday, May 23, 2007 10:25 AM
> Subject: Re: svn commit: r540764 [1/2] - in 
> /incubator/tuscany/java/sca/demos: ./ bigbank-account/ 
> bigbank-account/src/ bigbank-account/src/main/ 
> bigbank-account/src/main/java/ bigbank-account/src/main/java/bigbank/ 
> bigbank-account/src/main/java/bigbank/account/ bi
>
>
>> Raymond Feng wrote:
>>> Hi,
>>>
>>> I followed your instructions, but I still saw the failure as shown 
>>> below. It seems that the web services are running under 8080. Does 
>>> the binding.axis2 now honor the port from the soap address in the WSDL?
>>>
>>> Thanks,
>>> Raymond
>>>
>>> log4j:WARN No appenders could be found for logger 
>>> (org.apache.axiom.om.util.StAXUtils).
>>> log4j:WARN Please initialize the log4j system properly.
>>> Calling account service for customer: 1234
>>> Checking account: CHA_1234, balance:500.0
>>> Savings account: SAA_1234, balance:1500.0
>>> Stock account: STA_1234, symbol:IBM, quantity:100
>>> Exception in thread "main" 
>>> java.lang.reflect.UndeclaredThrowableException
>>> at $Proxy7.getQuote(Unknown Source)
>>> at 
>>> bigbank.account.AccountServiceImpl.getAccountReport(AccountServiceImpl.java:65) 
>>>
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at 
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) 
>>>
>>> at 
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
>>>
>>> at java.lang.reflect.Method.invoke(Method.java:615)
>>> at 
>>> org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invokeTarget(JavaTargetInvoker.java:112) 
>>>
>>> at 
>>> org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invoke(JavaTargetInvoker.java:134) 
>>>
>>> at 
>>> org.apache.tuscany.sca.implementation.java.invocation.PassByValueInvoker.invoke(PassByValueInvoker.java:61) 
>>>
>>> at 
>>> org.apache.tuscany.sca.implementation.java.invocation.TargetInvokerInvoker.invoke(TargetInvokerInvoker.java:46) 
>>>
>>> at 
>>> org.apache.tuscany.sca.core.invocation.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:84) 
>>>
>>> at 
>>> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:73) 
>>>
>>> at $Proxy4.getAccountReport(Unknown Source)
>>> at bigbank.client.BigBankClient.main(BigBankClient.java:42)
>>> Caused by: org.apache.axis2.AxisFault: Connection refused: connect
>>> at 
>>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:221) 
>>>
>>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:452)
>>> at 
>>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330) 
>>>
>>> at 
>>> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294) 
>>>
>>> at 
>>> org.apache.tuscany.sca.binding.axis2.Axis2BindingInvoker.invokeTarget(Axis2BindingInvoker.java:92) 
>>>
>>> at 
>>> org.apache.tuscany.sca.binding.axis2.Axis2BindingInvoker.invoke(Axis2BindingInvoker.java:71) 
>>>
>>> at 
>>> org.apache.tuscany.core.databinding.wire.DataTransformationInteceptor.invoke(DataTransformationInteceptor.java:68) 
>>>
>>> at 
>>> org.apache.tuscany.sca.core.invocation.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:84) 
>>>
>>> at 
>>> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:73) 
>>>
>>> ... 14 more
>>> Caused by: org.apache.axis2.AxisFault: Connection refused: connect
>>> at 
>>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:314) 
>>>
>>> at 
>>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:201) 
>>>
>>> ... 22 more
>>> Caused by: org.apache.axis2.AxisFault: Connection refused: connect
>>> at 
>>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:179) 
>>>
>>> at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:73)
>>> at 
>>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:305) 
>>>
>>> ... 23 more
>>> Caused by: java.net.ConnectException: Connection refused: connect
>>> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:372)
>>> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:233)
>>> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:220)
>>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:385)
>>> at java.net.Socket.connect(Socket.java:541)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at 
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) 
>>>
>>> at 
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
>>>
>>> at java.lang.reflect.Method.invoke(Method.java:615)
>>> at 
>>> org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:139) 
>>>
>>> at 
>>> org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:124) 
>>>
>>> at 
>>> org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706) 
>>>
>>> at 
>>> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321) 
>>>
>>> at 
>>> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386) 
>>>
>>> at 
>>> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) 
>>>
>>> at 
>>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) 
>>>
>>> at 
>>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) 
>>>
>>> at 
>>> org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:558) 
>>>
>>> at 
>>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:176) 
>>>
>>> ... 25 more
>>>
>>> ----- Original Message ----- From: "Jean-Sebastien Delfino" 
>>> <js...@apache.org>
>>> To: <tu...@ws.apache.org>
>>> Sent: Tuesday, May 22, 2007 11:27 PM
>>> Subject: Re: svn commit: r540764 [1/2] - in 
>>> /incubator/tuscany/java/sca/demos: ./ bigbank-account/ 
>>> bigbank-account/src/ bigbank-account/src/main/ 
>>> bigbank-account/src/main/java/ 
>>> bigbank-account/src/main/java/bigbank/ 
>>> bigbank-account/src/main/java/bigbank/account/ bi
>>>
>>>
>>>> Raymond Feng wrote:
>>>>> Hi, Sebastien.
>>>>>
>>>>> I'm trying to play with this cool demo and I have a few questions:
>>>>>
>>>>> 1) How can I start the stockquote and accountservice under 
>>>>> different HTTP ports (8081, 8082)?
>>>>> 2) What's the URL of the web 2.0 demo page?
>>>>>
>>>>> In my case, I first started StockQuoteServer, CalculatorServer and 
>>>>> BigBankServer. Then when I tried to run BigBankClient, it failed 
>>>>> with an exception complaining "connect refused". I guess it tried 
>>>>> to connect to the port 8081 or 8082.
>>>>>
>>>>> Thanks,
>>>>> Raymond
>>>>>
>>>>
>>>> The port numbers are configured in the bindings of the various 
>>>> services:
>>>> StockQuoteService uses port 8081, as configured in StockQuote.wsdl
>>>> AccountService uses port 8082, as configured in AccountService.wsdl
>>>>
>>>> The way the demo is configured, you can do the following:
>>>>
>>>> - First start both the StockQuoteServer and CalculatorServer
>>>>
>>>> - Then run BigBankClient. It will make a local to call the 
>>>> AccountService, which will in turn invoke the StockQuote service 
>>>> over SOAP and Calculator service over RMI.
>>>>
>>>> - Or run BigBankServer, and invoke the AccountService Web service 
>>>> using a SOAP client tool. I've been successful with the Web 
>>>> Services tool from the Eclipse WTP project (just right click on 
>>>> AccountService.wsdl and go from there).
>>>>
>>>> - Or deploy demo-bigbank-account .war to Tomcat (in this case the 
>>>> AccountService will be provided on port 8080) and again invoke the 
>>>> AccountService Web Service using your Web Services tool. When 
>>>> running on top of Tomcat, the demo also provides a DOJO based UI at 
>>>> http://localhost:8080/demo-bigbank-account/, which will will invoke 
>>>> the AccountService JSON-RPC service when you click the 
>>>> getAccountReport button.
>>>>
>>>> BigBankClient runs the same SCA composites as BigBankServer, so 
>>>> you'll get AddressInUse errors if you try to run it at the same 
>>>> time as BigBankServer. If you wanted to have  a separate 
>>>> BigBankClient talking to the AccountService Web service it would 
>>>> have to be in a different Maven module and use a different 
>>>> composite containing an SCA reference for the AccountService.
>>>>
>>>> -- 
>>>> Jean-Sebastien
>>>>
>>>>
>>
>> Can you just start StockQuoteServer, and see what port it listens on? 
>> it should be 8081, that's what I see in my environment.
>>
>> -- 
>> Jean-Sebastien
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
>> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>

Can you set a breakpoint in JettyServer to see why it's listening on the 
wrong port? The WSDL says 8081, it should listen on 8081, that's what it 
does on my machine with the latest code from trunk, but this code has 
not changed for a while.

-- 
Jean-Sebastien


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


Re: svn commit: r540764 [1/2] - in /incubator/tuscany/java/sca/demos: ./ bigbank-account/ bigbank-account/src/ bigbank-account/src/main/ bigbank-account/src/main/java/ bigbank-account/src/main/java/bigbank/ bigbank-account/src/main/java/bigbank/account/ bi

Posted by Raymond Feng <en...@gmail.com>.
Hi,

I started the StockQuoteServer and it was listening on 8080.

Raymond

----- Original Message ----- 
From: "Jean-Sebastien Delfino" <js...@apache.org>
To: <tu...@ws.apache.org>
Sent: Wednesday, May 23, 2007 10:25 AM
Subject: Re: svn commit: r540764 [1/2] - in 
/incubator/tuscany/java/sca/demos: ./ bigbank-account/ bigbank-account/src/ 
bigbank-account/src/main/ bigbank-account/src/main/java/ 
bigbank-account/src/main/java/bigbank/ 
bigbank-account/src/main/java/bigbank/account/ bi


> Raymond Feng wrote:
>> Hi,
>>
>> I followed your instructions, but I still saw the failure as shown below. 
>> It seems that the web services are running under 8080. Does the 
>> binding.axis2 now honor the port from the soap address in the WSDL?
>>
>> Thanks,
>> Raymond
>>
>> log4j:WARN No appenders could be found for logger 
>> (org.apache.axiom.om.util.StAXUtils).
>> log4j:WARN Please initialize the log4j system properly.
>> Calling account service for customer: 1234
>> Checking account: CHA_1234, balance:500.0
>> Savings account: SAA_1234, balance:1500.0
>> Stock account: STA_1234, symbol:IBM, quantity:100
>> Exception in thread "main" java.lang.reflect.UndeclaredThrowableException
>> at $Proxy7.getQuote(Unknown Source)
>> at 
>> bigbank.account.AccountServiceImpl.getAccountReport(AccountServiceImpl.java:65)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>> at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:615)
>> at 
>> org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invokeTarget(JavaTargetInvoker.java:112)
>> at 
>> org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invoke(JavaTargetInvoker.java:134)
>> at 
>> org.apache.tuscany.sca.implementation.java.invocation.PassByValueInvoker.invoke(PassByValueInvoker.java:61)
>> at 
>> org.apache.tuscany.sca.implementation.java.invocation.TargetInvokerInvoker.invoke(TargetInvokerInvoker.java:46)
>> at 
>> org.apache.tuscany.sca.core.invocation.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:84)
>> at 
>> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:73)
>> at $Proxy4.getAccountReport(Unknown Source)
>> at bigbank.client.BigBankClient.main(BigBankClient.java:42)
>> Caused by: org.apache.axis2.AxisFault: Connection refused: connect
>> at 
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:221)
>> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:452)
>> at 
>> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330)
>> at 
>> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
>> at 
>> org.apache.tuscany.sca.binding.axis2.Axis2BindingInvoker.invokeTarget(Axis2BindingInvoker.java:92)
>> at 
>> org.apache.tuscany.sca.binding.axis2.Axis2BindingInvoker.invoke(Axis2BindingInvoker.java:71)
>> at 
>> org.apache.tuscany.core.databinding.wire.DataTransformationInteceptor.invoke(DataTransformationInteceptor.java:68)
>> at 
>> org.apache.tuscany.sca.core.invocation.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:84)
>> at 
>> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:73)
>> ... 14 more
>> Caused by: org.apache.axis2.AxisFault: Connection refused: connect
>> at 
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:314)
>> at 
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:201)
>> ... 22 more
>> Caused by: org.apache.axis2.AxisFault: Connection refused: connect
>> at 
>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:179)
>> at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:73)
>> at 
>> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:305)
>> ... 23 more
>> Caused by: java.net.ConnectException: Connection refused: connect
>> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:372)
>> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:233)
>> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:220)
>> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:385)
>> at java.net.Socket.connect(Socket.java:541)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at 
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
>> at 
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:615)
>> at 
>> org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:139)
>> at 
>> org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:124)
>> at 
>> org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
>> at 
>> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321)
>> at 
>> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
>> at 
>> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
>> at 
>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
>> at 
>> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
>> at 
>> org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:558)
>> at 
>> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:176)
>> ... 25 more
>>
>> ----- Original Message ----- From: "Jean-Sebastien Delfino" 
>> <js...@apache.org>
>> To: <tu...@ws.apache.org>
>> Sent: Tuesday, May 22, 2007 11:27 PM
>> Subject: Re: svn commit: r540764 [1/2] - in 
>> /incubator/tuscany/java/sca/demos: ./ bigbank-account/ 
>> bigbank-account/src/ bigbank-account/src/main/ 
>> bigbank-account/src/main/java/ bigbank-account/src/main/java/bigbank/ 
>> bigbank-account/src/main/java/bigbank/account/ bi
>>
>>
>>> Raymond Feng wrote:
>>>> Hi, Sebastien.
>>>>
>>>> I'm trying to play with this cool demo and I have a few questions:
>>>>
>>>> 1) How can I start the stockquote and accountservice under different 
>>>> HTTP ports (8081, 8082)?
>>>> 2) What's the URL of the web 2.0 demo page?
>>>>
>>>> In my case, I first started StockQuoteServer, CalculatorServer and 
>>>> BigBankServer. Then when I tried to run BigBankClient, it failed with 
>>>> an exception complaining "connect refused". I guess it tried to connect 
>>>> to the port 8081 or 8082.
>>>>
>>>> Thanks,
>>>> Raymond
>>>>
>>>
>>> The port numbers are configured in the bindings of the various services:
>>> StockQuoteService uses port 8081, as configured in StockQuote.wsdl
>>> AccountService uses port 8082, as configured in AccountService.wsdl
>>>
>>> The way the demo is configured, you can do the following:
>>>
>>> - First start both the StockQuoteServer and CalculatorServer
>>>
>>> - Then run BigBankClient. It will make a local to call the 
>>> AccountService, which will in turn invoke the StockQuote service over 
>>> SOAP and Calculator service over RMI.
>>>
>>> - Or run BigBankServer, and invoke the AccountService Web service using 
>>> a SOAP client tool. I've been successful with the Web Services tool from 
>>> the Eclipse WTP project (just right click on AccountService.wsdl and go 
>>> from there).
>>>
>>> - Or deploy demo-bigbank-account .war to Tomcat (in this case the 
>>> AccountService will be provided on port 8080) and again invoke the 
>>> AccountService Web Service using your Web Services tool. When running on 
>>> top of Tomcat, the demo also provides a DOJO based UI at 
>>> http://localhost:8080/demo-bigbank-account/, which will will invoke the 
>>> AccountService JSON-RPC service when you click the getAccountReport 
>>> button.
>>>
>>> BigBankClient runs the same SCA composites as BigBankServer, so you'll 
>>> get AddressInUse errors if you try to run it at the same time as 
>>> BigBankServer. If you wanted to have  a separate BigBankClient talking 
>>> to the AccountService Web service it would have to be in a different 
>>> Maven module and use a different composite containing an SCA reference 
>>> for the AccountService.
>>>
>>> -- 
>>> Jean-Sebastien
>>>
>>>
>
> Can you just start StockQuoteServer, and see what port it listens on? it 
> should be 8081, that's what I see in my environment.
>
> -- 
> Jean-Sebastien
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> 


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


Re: svn commit: r540764 [1/2] - in /incubator/tuscany/java/sca/demos: ./ bigbank-account/ bigbank-account/src/ bigbank-account/src/main/ bigbank-account/src/main/java/ bigbank-account/src/main/java/bigbank/ bigbank-account/src/main/java/bigbank/account/ bi

Posted by Jean-Sebastien Delfino <js...@apache.org>.
Raymond Feng wrote:
> Hi,
>
> I followed your instructions, but I still saw the failure as shown 
> below. It seems that the web services are running under 8080. Does the 
> binding.axis2 now honor the port from the soap address in the WSDL?
>
> Thanks,
> Raymond
>
> log4j:WARN No appenders could be found for logger 
> (org.apache.axiom.om.util.StAXUtils).
> log4j:WARN Please initialize the log4j system properly.
> Calling account service for customer: 1234
> Checking account: CHA_1234, balance:500.0
> Savings account: SAA_1234, balance:1500.0
> Stock account: STA_1234, symbol:IBM, quantity:100
> Exception in thread "main" java.lang.reflect.UndeclaredThrowableException
> at $Proxy7.getQuote(Unknown Source)
> at 
> bigbank.account.AccountServiceImpl.getAccountReport(AccountServiceImpl.java:65) 
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) 
>
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
>
> at java.lang.reflect.Method.invoke(Method.java:615)
> at 
> org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invokeTarget(JavaTargetInvoker.java:112) 
>
> at 
> org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invoke(JavaTargetInvoker.java:134) 
>
> at 
> org.apache.tuscany.sca.implementation.java.invocation.PassByValueInvoker.invoke(PassByValueInvoker.java:61) 
>
> at 
> org.apache.tuscany.sca.implementation.java.invocation.TargetInvokerInvoker.invoke(TargetInvokerInvoker.java:46) 
>
> at 
> org.apache.tuscany.sca.core.invocation.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:84) 
>
> at 
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:73) 
>
> at $Proxy4.getAccountReport(Unknown Source)
> at bigbank.client.BigBankClient.main(BigBankClient.java:42)
> Caused by: org.apache.axis2.AxisFault: Connection refused: connect
> at 
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:221) 
>
> at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:452)
> at 
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330) 
>
> at 
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294) 
>
> at 
> org.apache.tuscany.sca.binding.axis2.Axis2BindingInvoker.invokeTarget(Axis2BindingInvoker.java:92) 
>
> at 
> org.apache.tuscany.sca.binding.axis2.Axis2BindingInvoker.invoke(Axis2BindingInvoker.java:71) 
>
> at 
> org.apache.tuscany.core.databinding.wire.DataTransformationInteceptor.invoke(DataTransformationInteceptor.java:68) 
>
> at 
> org.apache.tuscany.sca.core.invocation.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:84) 
>
> at 
> org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:73) 
>
> ... 14 more
> Caused by: org.apache.axis2.AxisFault: Connection refused: connect
> at 
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:314) 
>
> at 
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:201) 
>
> ... 22 more
> Caused by: org.apache.axis2.AxisFault: Connection refused: connect
> at 
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:179) 
>
> at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:73)
> at 
> org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:305) 
>
> ... 23 more
> Caused by: java.net.ConnectException: Connection refused: connect
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:372)
> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:233)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:220)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:385)
> at java.net.Socket.connect(Socket.java:541)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64) 
>
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
>
> at java.lang.reflect.Method.invoke(Method.java:615)
> at 
> org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:139) 
>
> at 
> org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:124) 
>
> at 
> org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706) 
>
> at 
> org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321) 
>
> at 
> org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386) 
>
> at 
> org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170) 
>
> at 
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396) 
>
> at 
> org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346) 
>
> at 
> org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:558) 
>
> at 
> org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:176) 
>
> ... 25 more
>
> ----- Original Message ----- From: "Jean-Sebastien Delfino" 
> <js...@apache.org>
> To: <tu...@ws.apache.org>
> Sent: Tuesday, May 22, 2007 11:27 PM
> Subject: Re: svn commit: r540764 [1/2] - in 
> /incubator/tuscany/java/sca/demos: ./ bigbank-account/ 
> bigbank-account/src/ bigbank-account/src/main/ 
> bigbank-account/src/main/java/ bigbank-account/src/main/java/bigbank/ 
> bigbank-account/src/main/java/bigbank/account/ bi
>
>
>> Raymond Feng wrote:
>>> Hi, Sebastien.
>>>
>>> I'm trying to play with this cool demo and I have a few questions:
>>>
>>> 1) How can I start the stockquote and accountservice under different 
>>> HTTP ports (8081, 8082)?
>>> 2) What's the URL of the web 2.0 demo page?
>>>
>>> In my case, I first started StockQuoteServer, CalculatorServer and 
>>> BigBankServer. Then when I tried to run BigBankClient, it failed 
>>> with an exception complaining "connect refused". I guess it tried to 
>>> connect to the port 8081 or 8082.
>>>
>>> Thanks,
>>> Raymond
>>>
>>
>> The port numbers are configured in the bindings of the various services:
>> StockQuoteService uses port 8081, as configured in StockQuote.wsdl
>> AccountService uses port 8082, as configured in AccountService.wsdl
>>
>> The way the demo is configured, you can do the following:
>>
>> - First start both the StockQuoteServer and CalculatorServer
>>
>> - Then run BigBankClient. It will make a local to call the 
>> AccountService, which will in turn invoke the StockQuote service over 
>> SOAP and Calculator service over RMI.
>>
>> - Or run BigBankServer, and invoke the AccountService Web service 
>> using a SOAP client tool. I've been successful with the Web Services 
>> tool from the Eclipse WTP project (just right click on 
>> AccountService.wsdl and go from there).
>>
>> - Or deploy demo-bigbank-account .war to Tomcat (in this case the 
>> AccountService will be provided on port 8080) and again invoke the 
>> AccountService Web Service using your Web Services tool. When running 
>> on top of Tomcat, the demo also provides a DOJO based UI at 
>> http://localhost:8080/demo-bigbank-account/, which will will invoke 
>> the AccountService JSON-RPC service when you click the 
>> getAccountReport button.
>>
>> BigBankClient runs the same SCA composites as BigBankServer, so 
>> you'll get AddressInUse errors if you try to run it at the same time 
>> as BigBankServer. If you wanted to have  a separate BigBankClient 
>> talking to the AccountService Web service it would have to be in a 
>> different Maven module and use a different composite containing an 
>> SCA reference for the AccountService.
>>
>> -- 
>> Jean-Sebastien
>>
>>

Can you just start StockQuoteServer, and see what port it listens on? it 
should be 8081, that's what I see in my environment.

-- 
Jean-Sebastien


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


Re: svn commit: r540764 [1/2] - in /incubator/tuscany/java/sca/demos: ./ bigbank-account/ bigbank-account/src/ bigbank-account/src/main/ bigbank-account/src/main/java/ bigbank-account/src/main/java/bigbank/ bigbank-account/src/main/java/bigbank/account/ bi

Posted by Raymond Feng <en...@gmail.com>.
Hi,

I followed your instructions, but I still saw the failure as shown below. It 
seems that the web services are running under 8080. Does the binding.axis2 
now honor the port from the soap address in the WSDL?

Thanks,
Raymond

log4j:WARN No appenders could be found for logger 
(org.apache.axiom.om.util.StAXUtils).
log4j:WARN Please initialize the log4j system properly.
Calling account service for customer: 1234
Checking account: CHA_1234, balance:500.0
Savings account: SAA_1234, balance:1500.0
Stock account: STA_1234, symbol:IBM, quantity:100
Exception in thread "main" java.lang.reflect.UndeclaredThrowableException
at $Proxy7.getQuote(Unknown Source)
at 
bigbank.account.AccountServiceImpl.getAccountReport(AccountServiceImpl.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at 
org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invokeTarget(JavaTargetInvoker.java:112)
at 
org.apache.tuscany.sca.implementation.java.invocation.JavaTargetInvoker.invoke(JavaTargetInvoker.java:134)
at 
org.apache.tuscany.sca.implementation.java.invocation.PassByValueInvoker.invoke(PassByValueInvoker.java:61)
at 
org.apache.tuscany.sca.implementation.java.invocation.TargetInvokerInvoker.invoke(TargetInvokerInvoker.java:46)
at 
org.apache.tuscany.sca.core.invocation.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:84)
at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:73)
at $Proxy4.getAccountReport(Unknown Source)
at bigbank.client.BigBankClient.main(BigBankClient.java:42)
Caused by: org.apache.axis2.AxisFault: Connection refused: connect
at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:221)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:452)
at 
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:330)
at 
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:294)
at 
org.apache.tuscany.sca.binding.axis2.Axis2BindingInvoker.invokeTarget(Axis2BindingInvoker.java:92)
at 
org.apache.tuscany.sca.binding.axis2.Axis2BindingInvoker.invoke(Axis2BindingInvoker.java:71)
at 
org.apache.tuscany.core.databinding.wire.DataTransformationInteceptor.invoke(DataTransformationInteceptor.java:68)
at 
org.apache.tuscany.sca.core.invocation.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:84)
at 
org.apache.tuscany.sca.core.invocation.JDKInvocationHandler.invoke(JDKInvocationHandler.java:73)
... 14 more
Caused by: org.apache.axis2.AxisFault: Connection refused: connect
at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:314)
at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:201)
... 22 more
Caused by: org.apache.axis2.AxisFault: Connection refused: connect
at 
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:179)
at org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:73)
at 
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:305)
... 23 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:372)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:233)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:220)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:385)
at java.net.Socket.connect(Socket.java:541)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at 
org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:139)
at 
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:124)
at 
org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
at 
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321)
at 
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
at 
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at 
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:558)
at 
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:176)
... 25 more

----- Original Message ----- 
From: "Jean-Sebastien Delfino" <js...@apache.org>
To: <tu...@ws.apache.org>
Sent: Tuesday, May 22, 2007 11:27 PM
Subject: Re: svn commit: r540764 [1/2] - in 
/incubator/tuscany/java/sca/demos: ./ bigbank-account/ bigbank-account/src/ 
bigbank-account/src/main/ bigbank-account/src/main/java/ 
bigbank-account/src/main/java/bigbank/ 
bigbank-account/src/main/java/bigbank/account/ bi


> Raymond Feng wrote:
>> Hi, Sebastien.
>>
>> I'm trying to play with this cool demo and I have a few questions:
>>
>> 1) How can I start the stockquote and accountservice under different HTTP 
>> ports (8081, 8082)?
>> 2) What's the URL of the web 2.0 demo page?
>>
>> In my case, I first started StockQuoteServer, CalculatorServer and 
>> BigBankServer. Then when I tried to run BigBankClient, it failed with an 
>> exception complaining "connect refused". I guess it tried to connect to 
>> the port 8081 or 8082.
>>
>> Thanks,
>> Raymond
>>
>
> The port numbers are configured in the bindings of the various services:
> StockQuoteService uses port 8081, as configured in StockQuote.wsdl
> AccountService uses port 8082, as configured in AccountService.wsdl
>
> The way the demo is configured, you can do the following:
>
> - First start both the StockQuoteServer and CalculatorServer
>
> - Then run BigBankClient. It will make a local to call the AccountService, 
> which will in turn invoke the StockQuote service over SOAP and Calculator 
> service over RMI.
>
> - Or run BigBankServer, and invoke the AccountService Web service using a 
> SOAP client tool. I've been successful with the Web Services tool from the 
> Eclipse WTP project (just right click on AccountService.wsdl and go from 
> there).
>
> - Or deploy demo-bigbank-account .war to Tomcat (in this case the 
> AccountService will be provided on port 8080) and again invoke the 
> AccountService Web Service using your Web Services tool. When running on 
> top of Tomcat, the demo also provides a DOJO based UI at 
> http://localhost:8080/demo-bigbank-account/, which will will invoke the 
> AccountService JSON-RPC service when you click the getAccountReport 
> button.
>
> BigBankClient runs the same SCA composites as BigBankServer, so you'll get 
> AddressInUse errors if you try to run it at the same time as 
> BigBankServer. If you wanted to have  a separate BigBankClient talking to 
> the AccountService Web service it would have to be in a different Maven 
> module and use a different composite containing an SCA reference for the 
> AccountService.
>
> -- 
> Jean-Sebastien
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> 


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


Re: svn commit: r540764 [1/2] - in /incubator/tuscany/java/sca/demos: ./ bigbank-account/ bigbank-account/src/ bigbank-account/src/main/ bigbank-account/src/main/java/ bigbank-account/src/main/java/bigbank/ bigbank-account/src/main/java/bigbank/account/ bi

Posted by Jean-Sebastien Delfino <js...@apache.org>.
Raymond Feng wrote:
> Hi, Sebastien.
>
> I'm trying to play with this cool demo and I have a few questions:
>
> 1) How can I start the stockquote and accountservice under different 
> HTTP ports (8081, 8082)?
> 2) What's the URL of the web 2.0 demo page?
>
> In my case, I first started StockQuoteServer, CalculatorServer and 
> BigBankServer. Then when I tried to run BigBankClient, it failed with 
> an exception complaining "connect refused". I guess it tried to 
> connect to the port 8081 or 8082.
>
> Thanks,
> Raymond
>

The port numbers are configured in the bindings of the various services:
StockQuoteService uses port 8081, as configured in StockQuote.wsdl
AccountService uses port 8082, as configured in AccountService.wsdl

The way the demo is configured, you can do the following:

- First start both the StockQuoteServer and CalculatorServer

- Then run BigBankClient. It will make a local to call the 
AccountService, which will in turn invoke the StockQuote service over 
SOAP and Calculator service over RMI.

- Or run BigBankServer, and invoke the AccountService Web service using 
a SOAP client tool. I've been successful with the Web Services tool from 
the Eclipse WTP project (just right click on AccountService.wsdl and go 
from there).

- Or deploy demo-bigbank-account .war to Tomcat (in this case the 
AccountService will be provided on port 8080) and again invoke the 
AccountService Web Service using your Web Services tool. When running on 
top of Tomcat, the demo also provides a DOJO based UI at 
http://localhost:8080/demo-bigbank-account/, which will will invoke the 
AccountService JSON-RPC service when you click the getAccountReport button.

BigBankClient runs the same SCA composites as BigBankServer, so you'll 
get AddressInUse errors if you try to run it at the same time as 
BigBankServer. If you wanted to have  a separate BigBankClient talking 
to the AccountService Web service it would have to be in a different 
Maven module and use a different composite containing an SCA reference 
for the AccountService.

-- 
Jean-Sebastien


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


Re: svn commit: r540764 [1/2] - in /incubator/tuscany/java/sca/demos: ./ bigbank-account/ bigbank-account/src/ bigbank-account/src/main/ bigbank-account/src/main/java/ bigbank-account/src/main/java/bigbank/ bigbank-account/src/main/java/bigbank/account/ bi

Posted by Raymond Feng <en...@gmail.com>.
Hi, Sebastien.

I'm trying to play with this cool demo and I have a few questions:

1) How can I start the stockquote and accountservice under different HTTP 
ports (8081, 8082)?
2) What's the URL of the web 2.0 demo page?

In my case, I first started StockQuoteServer, CalculatorServer and 
BigBankServer. Then when I tried to run BigBankClient, it failed with an 
exception complaining "connect refused". I guess it tried to connect to the 
port 8081 or 8082.

Thanks,
Raymond

----- Original Message ----- 
From: <js...@apache.org>
To: <tu...@ws.apache.org>
Sent: Tuesday, May 22, 2007 2:48 PM
Subject: svn commit: r540764 [1/2] - in /incubator/tuscany/java/sca/demos: 
./ bigbank-account/ bigbank-account/src/ bigbank-account/src/main/ 
bigbank-account/src/main/java/ bigbank-account/src/main/java/bigbank/ 
bigbank-account/src/main/java/bigbank/account/ bi...


> Author: jsdelfino
> Date: Tue May 22 14:47:57 2007
> New Revision: 540764
>
> URL: http://svn.apache.org/viewvc?view=rev&rev=540764
> Log:
> Version of Bigbank used for JavaOne demos, demonstrating multiple 
> composites running on different VMs, nested composition, Java and script 
> components, as well as Web Service, RMI and JSON-RPC bindings.
>
> Added:
>    incubator/tuscany/java/sca/demos/
>    incubator/tuscany/java/sca/demos/bigbank-account/   (with props)
>    incubator/tuscany/java/sca/demos/bigbank-account/build.xml   (with 
> props)
>    incubator/tuscany/java/sca/demos/bigbank-account/pom.xml   (with props)
>    incubator/tuscany/java/sca/demos/bigbank-account/src/
>    incubator/tuscany/java/sca/demos/bigbank-account/src/main/
>    incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/
>    incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/
> 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/BigBankClient.java 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/
> 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountReport.java 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountService.java 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountService.wsdl 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountServiceImpl.java 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/
> 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataService.java 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataServiceImpl.java 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/CheckingAccount.java 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/SavingsAccount.java 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/StockAccount.java 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/demo/
> 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/demo/BigBankServer.java 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/calculator/
> 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/calculator/CalculatorService.java 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/stockquote/
> 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/stockquote/StockQuoteService.java 
> (with props)
>    incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/
> 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/AccountData.composite 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/BigBank.composite 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/
> 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/AccountService.wsdl 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/StockQuote.wsdl 
> (with props)
>    incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/ 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/AccountJSON.html 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/WEB-INF/
> 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/WEB-INF/web.xml 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/style.css
>    incubator/tuscany/java/sca/demos/bigbank-calculator/   (with props)
>    incubator/tuscany/java/sca/demos/bigbank-calculator/pom.xml   (with 
> props)
>    incubator/tuscany/java/sca/demos/bigbank-calculator/src/
>    incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/
>    incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/
> 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/
> 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/AddService.java 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/CalculatorService.java 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/CalculatorServiceImpl.java 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/DivideService.java 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/MultiplyService.java 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/SubtractService.java 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/demo/
> 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/demo/CalculatorServer.java 
> (with props)
>    incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/
> 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/Calculator.composite 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/
> 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/AddServiceImpl.componentType 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/AddServiceImpl.js 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/DivideServiceImpl.componentType 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/DivideServiceImpl.groovy
> 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/MultiplyServiceImpl.componentType 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/MultiplyServiceImpl.py 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/SubtractServiceImpl.componentType 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/SubtractServiceImpl.rb 
> (with props)
>    incubator/tuscany/java/sca/demos/bigbank-calculator/src/test/
>    incubator/tuscany/java/sca/demos/bigbank-stockquote/   (with props)
>    incubator/tuscany/java/sca/demos/bigbank-stockquote/pom.xml   (with 
> props)
>    incubator/tuscany/java/sca/demos/bigbank-stockquote/src/
>    incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/
>    incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/java/
> 
> incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/java/stockquote/
> 
> incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/java/stockquote/StockQuoteImpl.java 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/java/stockquote/StockQuoteService.java 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/java/stockquote/demo/
> 
> incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/java/stockquote/demo/StockQuoteServer.java 
> (with props)
>    incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/
> 
> incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/StockQuote.composite 
> (with props)
> 
> incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/wsdl/
> 
> incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/wsdl/StockQuote.wsdl 
> (with props)
>    incubator/tuscany/java/sca/demos/pom.xml   (with props)
>
> Propchange: incubator/tuscany/java/sca/demos/bigbank-account/
> ------------------------------------------------------------------------------
> --- svn:ignore (added)
> +++ svn:ignore Tue May 22 14:47:57 2007
> @@ -0,0 +1,14 @@
> +target
> +*.iws
> +*.ipr
> +*.iml
> +.project
> +.classpath
> +maven.log
> +velocity.log*
> +junit*.properties
> +surefire*.properties
> +.settings
> +.deployables
> +.wtpmodules
> +
>
> Added: incubator/tuscany/java/sca/demos/bigbank-account/build.xml
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/build.xml?view=auto&rev=540764
> ==============================================================================
> --- incubator/tuscany/java/sca/demos/bigbank-account/build.xml (added)
> +++ incubator/tuscany/java/sca/demos/bigbank-account/build.xml Tue May 22 
> 14:47:57 2007
> @@ -0,0 +1,81 @@
> +<?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="0.4.0"/>
> +    <property name="dojo.distro" value="ajax"/>
> +    <property name="unpack.location" 
> value="${basedir}/src/main/webapp/dojo"/>
> +
> +
> +    <target name="check-dojo-installed">
> +        <condition property="already.installed" >
> +            <available 
> file="${localRepository}/dojo/dojo-${dojo.distro}/${dojo.version}/dojo-${dojo.distro}-${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-${dojo.version}-${dojo.distro}.zip"
> + 
> dest="${basedir}/target/dojo-download/dojo-${dojo.version}-${dojo.distro}.zip"
> +            verbose="true"
> +            usetimestamp="true"/>
> +        <exec executable="mvn${maven.suffix}" dir="${basedir}" 
> failonerror="false">
> +            <arg 
> ine="install:install-file -DgroupId=dojo  -DartifactId=dojo-${dojo.distro} 
>  -Dversion=${dojo.version} -Dpackaging=zip -DgeneratePom=true -Dfile=${basedir}/target/dojo-download/dojo-${dojo.version}-${dojo.distro}.zip"/>
> +        </exec>
> +    </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" 
> unless="already.installed"/>
> +        <mkdir dir="${basedir}/target/dojo-unpack-temp/"/>
> +        <unzip 
> src="${localRepository}/dojo/dojo-${dojo.distro}/${dojo.version}/dojo-${dojo.distro}-${dojo.version}.zip"
> +               dest="${basedir}/target/dojo-unpack-temp/"
> +               overwrite="false">
> +            <patternset>
> +                <include name="dojo-${dojo.version}-${dojo.distro}/**"/>
> +                <exclude 
> name="dojo-${dojo.version}-${dojo.distro}/demos/**"/>
> +                <exclude 
> name="dojo-${dojo.version}-${dojo.distro}/tests/**"/>
> +            </patternset>
> +        </unzip>
> +        <move 
> file="${basedir}/target/dojo-unpack-temp/dojo-${dojo.version}-${dojo.distro}"
> +              tofile="${unpack.location}"
> +              verbose="true"/>
> +        <delete dir="${basedir}/target/dojo-unpack-temp/"/>
> +    </target>
> +
> +
> +    <target name="clean-dojo-files">
> +        <delete dir="${unpack.location}"/>
> +    </target>
> +</project>
>
> Propchange: incubator/tuscany/java/sca/demos/bigbank-account/build.xml
> ------------------------------------------------------------------------------
>    svn:eol-style = native
>
> Propchange: incubator/tuscany/java/sca/demos/bigbank-account/build.xml
> ------------------------------------------------------------------------------
>    svn:keywords = Rev Date
>
> Added: incubator/tuscany/java/sca/demos/bigbank-account/pom.xml
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/pom.xml?view=auto&rev=540764
> ==============================================================================
> --- incubator/tuscany/java/sca/demos/bigbank-account/pom.xml (added)
> +++ incubator/tuscany/java/sca/demos/bigbank-account/pom.xml Tue May 22 
> 14:47:57 2007
> @@ -0,0 +1,145 @@
> +<?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-samples</artifactId>
> +        <version>1.0-incubating-SNAPSHOT</version>
> +        <relativePath>../../pom.xml</relativePath>
> +    </parent>
> +    <artifactId>demo-bigbank-account</artifactId>
> +    <packaging>war</packaging>
> +    <name>Apache Tuscany 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-webapp</artifactId>
> +            <version>1.0-incubating-SNAPSHOT</version>
> +        </dependency>
> +
> +        <dependency>
> +            <groupId>org.apache.tuscany.sca</groupId>
> +            <artifactId>tuscany-host-embedded</artifactId>
> +            <version>1.0-incubating-SNAPSHOT</version>
> +        </dependency>
> +
> +        <dependency>
> +            <groupId>org.apache.tuscany.sca</groupId>
> +            <artifactId>tuscany-implementation-java-runtime</artifactId>
> +            <version>1.0-incubating-SNAPSHOT</version>
> +            <scope>runtime</scope>
> +        </dependency>
> +
> +        <dependency>
> +            <groupId>org.apache.tuscany.sca</groupId>
> +            <artifactId>tuscany-binding-ws-axis2</artifactId>
> +            <version>1.0-incubating-SNAPSHOT</version>
> +            <scope>runtime</scope>
> +        </dependency>
> +
> +        <dependency>
> +            <groupId>org.apache.tuscany.sca</groupId>
> +            <artifactId>tuscany-binding-jsonrpc</artifactId>
> +            <version>1.0-incubating-SNAPSHOT</version>
> +            <scope>runtime</scope>
> +        </dependency>
> +
> +        <dependency>
> +            <groupId>org.apache.tuscany.sca</groupId>
> +            <artifactId>tuscany-binding-rmi</artifactId>
> +            <version>1.0-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>sample-bigbank-account</finalName>
> +            <plugins>
> +            <plugin>
> +                    <groupId>org.apache.maven.plugins</groupId>
> +                    <artifactId>maven-antrun-plugin</artifactId>
> +                    <executions>
> +                        <execution>
> +                            <id>install-dojo</id>
> +                            <phase>validate</phase>
> +                            <goals>
> +                                <goal>run</goal>
> +                            </goals>
> +                            <configuration>
> +                                <tasks>
> +                                    <ant 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 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 target="clean-dojo-files">
> +                                        <property name="localRepository" 
> value="${settings.localRepository}"/>
> +                                        <property name="artifactId" 
> value="${artifactId}"/>
> +                                    </ant>
> +                                </tasks>
> +                            </configuration>
> +                        </execution>
> +                    </executions>
> +                </plugin>
> +                </plugins>
> +    </build>
> +
> +</project>
>
> Propchange: incubator/tuscany/java/sca/demos/bigbank-account/pom.xml
> ------------------------------------------------------------------------------
>    svn:eol-style = native
>
> Propchange: incubator/tuscany/java/sca/demos/bigbank-account/pom.xml
> ------------------------------------------------------------------------------
>    svn:keywords = Rev Date
>
> Added: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/BigBankClient.java
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/BigBankClient.java?view=auto&rev=540764
> ==============================================================================
> ---  
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/BigBankClient.java 
> (added)
> +++ 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/BigBankClient.java 
> Tue May 22 14:47:57 2007
> @@ -0,0 +1,50 @@
> +/*
> + * 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;
> +
> +import org.apache.tuscany.sca.host.embedded.SCADomain;
> +
> +import bigbank.account.AccountService;
> +
> +/**
> + * This client program shows how to create an SCA runtime, start it,
> + * and locate and invoke a SCA component
> + */
> +public class BigBankClient {
> +
> +    public static void main(String[] args) throws Exception {
> +
> +        SCADomain domain = SCADomain.newInstance("http://localhost:8080", 
> "/", "BigBank.composite");
> +
> +        AccountService accountService = 
> domain.getService(AccountService.class, "AccountServiceComponent");
> +
> +        String customerID = "1234";
> +
> +        System.out.println("Calling account service for customer: " + 
> customerID);
> +        System.out.println();
> +        double balance = accountService.getAccountReport(customerID);
> +
> +        System.out.println();
> +        System.out.println("Balance: " + balance);
> +
> +        domain.close();
> +    }
> +
> +}
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/BigBankClient.java
> ------------------------------------------------------------------------------
>    svn:eol-style = native
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/BigBankClient.java
> ------------------------------------------------------------------------------
>    svn:keywords = Rev Date
>
> Added: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountReport.java
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountReport.java?view=auto&rev=540764
> ==============================================================================
> ---  
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountReport.java 
> (added)
> +++ 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountReport.java 
> Tue May 22 14:47:57 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;
> +
> +
> +/**
> + * @version $$Rev$$ $$Date: 2007-04-14 11:34:18 -0700 (Sat, 14 Apr
> + *          2007) $$
> + */
> +
> +public class AccountReport {
> +    private String currency;
> +    private String checkingAccountNumber;
> +    private double checkingBalance;
> +    private String savingsAccountNumber;
> +    private double savingsBalance;
> +    private String stockAccountNumber;
> +    private double stockBalance;
> +
> +    public String getCheckingAccountNumber() {
> +        return checkingAccountNumber;
> +    }
> +    public void setCheckingAccountNumber(String checkingAccountID) {
> +        this.checkingAccountNumber = checkingAccountID;
> +    }
> +    public double getCheckingBalance() {
> +        return checkingBalance;
> +    }
> +    public void setCheckingBalance(double checkingBalance) {
> +        this.checkingBalance = checkingBalance;
> +    }
> +    public String getCurrency() {
> +        return currency;
> +    }
> +    public void setCurrency(String currency) {
> +        this.currency = currency;
> +    }
> +    public String getSavingsAccountNumber() {
> +        return savingsAccountNumber;
> +    }
> +    public void setSavingsAccountNumber(String savingsAccountID) {
> +        this.savingsAccountNumber = savingsAccountID;
> +    }
> +    public double getSavingsBalance() {
> +        return savingsBalance;
> +    }
> +    public void setSavingsBalance(double savingsBalance) {
> +        this.savingsBalance = savingsBalance;
> +    }
> +    public String getStockAccountNumber() {
> +        return stockAccountNumber;
> +    }
> +    public void setStockAccountNumber(String stockAccountID) {
> +        this.stockAccountNumber = stockAccountID;
> +    }
> +    public double getStockBalance() {
> +        return stockBalance;
> +    }
> +    public void setStockBalance(double stockBalance) {
> +        this.stockBalance = stockBalance;
> +    }
> +
> +    public String toString() {
> +        return "Account Report: \n" +
> +        "Checking: " + checkingAccountNumber + ", balance:" + 
> checkingBalance + "\n" +
> +        "Savings: " + savingsAccountNumber + ", balance:" + 
> savingsBalance + "\n" +
> +        "Stocks: " + stockAccountNumber + ", balance:" + stockBalance;
> +    }
> +}
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountReport.java
> ------------------------------------------------------------------------------
>    svn:eol-style = native
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountReport.java
> ------------------------------------------------------------------------------
>    svn:keywords = Rev Date
>
> Added: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountService.java
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountService.java?view=auto&rev=540764
> ==============================================================================
> ---  
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountService.java 
> (added)
> +++ 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountService.java 
> Tue May 22 14:47:57 2007
> @@ -0,0 +1,34 @@
> +/*
> + * 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;
> +import org.osoa.sca.annotations.Service;
> +
> +/**
> + * @version $$Rev$$ $$Date$$
> + */
> +
> +@Remotable
> +@Service
> +public interface AccountService {
> +
> + public double getAccountReport(String customerID);
> +
> +}
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountService.java
> ------------------------------------------------------------------------------
>    svn:eol-style = native
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountService.java
> ------------------------------------------------------------------------------
>    svn:keywords = Rev Date
>
> Added: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountService.wsdl
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountService.wsdl?view=auto&rev=540764
> ==============================================================================
> ---  
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountService.wsdl 
> (added)
> +++ 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountService.wsdl 
> Tue May 22 14:47:57 2007
> @@ -0,0 +1,91 @@
> +<?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.
> +-->
> +
> +<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> + xmlns:tns="http://bigbank"
> + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> + xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> + targetNamespace="http://bigbank"
> + name="AccountService">
> +
> + <wsdl:types>
> + <xsd:schema
> + targetNamespace="http://bigbank"
> + xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> +
> + <xsd:element name="getAccountReport">
> + <xsd:complexType>
> + <xsd:sequence>
> + <xsd:element name="customerID" type="xsd:string" />
> + </xsd:sequence>
> + </xsd:complexType>
> + </xsd:element>
> +
> + <xsd:element name="getAccountReportResponse">
> + <xsd:complexType>
> + <xsd:sequence>
> + <xsd:element name="balance" type="xsd:double" />
> + </xsd:sequence>
> + </xsd:complexType>
> + </xsd:element>
> +
> + </xsd:schema>
> + </wsdl:types>
> +
> + <wsdl:message name="getAccountReportRequest">
> + <wsdl:part element="tns:getAccountReport"
> + name="getAccountReportRequest" />
> + </wsdl:message>
> +
> + <wsdl:message name="getAccountReportResponse">
> + <wsdl:part element="tns:getAccountReportResponse"
> + name="getAccountReportResponse" />
> + </wsdl:message>
> +
> + <wsdl:portType name="AccountService">
> + <wsdl:operation name="getAccountReport">
> + <wsdl:input message="tns:getAccountReportRequest" />
> + <wsdl:output message="tns:getAccountReportResponse" />
> + </wsdl:operation>
> + </wsdl:portType>
> +
> + <wsdl:binding name="AccountServiceSoap" type="tns:AccountService">
> + <soap:binding style="document"
> + transport="http://schemas.xmlsoap.org/soap/http" />
> + <wsdl:operation name="getAccountReport">
> + <soap:operation
> + soapAction="" />
> + <wsdl:input>
> + <soap:body use="literal" />
> + </wsdl:input>
> + <wsdl:output>
> + <soap:body use="literal" />
> + </wsdl:output>
> + </wsdl:operation>
> + </wsdl:binding>
> +
> + <wsdl:service name="AccountService">
> + <wsdl:port binding="tns:AccountServiceSoap"
> + name="AccountServiceSoap">
> + <soap:address
> + location="http://localhost:8082/services/AccountWebService" />
> + </wsdl:port>
> + </wsdl:service>
> +</wsdl:definitions>
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountService.wsdl
> ------------------------------------------------------------------------------
>    svn:eol-style = native
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountService.wsdl
> ------------------------------------------------------------------------------
>    svn:keywords = Rev Date
>
> Added: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountServiceImpl.java
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountServiceImpl.java?view=auto&rev=540764
> ==============================================================================
> ---  
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountServiceImpl.java 
> (added)
> +++ 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountServiceImpl.java 
> Tue May 22 14:47:57 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$$ $$Date$$
> + */
> +
> +@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;
> +    }
> +}
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountServiceImpl.java
> ------------------------------------------------------------------------------
>    svn:eol-style = native
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/account/AccountServiceImpl.java
> ------------------------------------------------------------------------------
>    svn:keywords = Rev Date
>
> Added: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataService.java
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataService.java?view=auto&rev=540764
> ==============================================================================
> ---  
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataService.java 
> (added)
> +++ 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataService.java 
> Tue May 22 14:47:57 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$$ $$Date$$
> + */
> +
> +public interface AccountDataService {
> +
> +    public CheckingAccount getCheckingAccount(String customerID);
> +
> +    public SavingsAccount getSavingsAccount(String customerID);
> +
> +    public StockAccount getStockAccount(String customerID);
> +
> +}
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataService.java
> ------------------------------------------------------------------------------
>    svn:eol-style = native
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataService.java
> ------------------------------------------------------------------------------
>    svn:keywords = Rev Date
>
> Added: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataServiceImpl.java
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataServiceImpl.java?view=auto&rev=540764
> ==============================================================================
> ---  
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataServiceImpl.java 
> (added)
> +++ 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataServiceImpl.java 
> Tue May 22 14:47:57 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$$ $$Date$$
> + */
> +
> +@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;
> + }
> +}
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataServiceImpl.java
> ------------------------------------------------------------------------------
>    svn:eol-style = native
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/AccountDataServiceImpl.java
> ------------------------------------------------------------------------------
>    svn:keywords = Rev Date
>
> Added: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/CheckingAccount.java
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/CheckingAccount.java?view=auto&rev=540764
> ==============================================================================
> ---  
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/CheckingAccount.java 
> (added)
> +++ 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/CheckingAccount.java 
> Tue May 22 14:47:57 2007
> @@ -0,0 +1,49 @@
> +/*
> + * 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$$ $$Date: 2007-04-09 12:03:34 -0700 (Mon, 09 Apr
> + *          2007) $$
> + */
> +
> +public class CheckingAccount {
> +    private String accountNumber;
> +    private double balance;
> +
> +    public String getAccountNumber() {
> +        return accountNumber;
> +    }
> +
> +    public void setAccountNumber(String n) {
> +        this.accountNumber = n;
> +    }
> +
> +    public double getBalance() {
> +        return balance;
> +    }
> +
> +    public void setBalance(double b) {
> +        this.balance = b;
> +    }
> +
> +    public String toString() {
> +        return accountNumber + ", balance:" + balance;
> +    }
> +}
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/CheckingAccount.java
> ------------------------------------------------------------------------------
>    svn:eol-style = native
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/CheckingAccount.java
> ------------------------------------------------------------------------------
>    svn:keywords = Rev Date
>
> Added: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/SavingsAccount.java
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/SavingsAccount.java?view=auto&rev=540764
> ==============================================================================
> ---  
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/SavingsAccount.java 
> (added)
> +++ 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/SavingsAccount.java 
> Tue May 22 14:47:57 2007
> @@ -0,0 +1,49 @@
> +/*
> + * 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$$ $$Date: 2007-04-09 12:03:34 -0700 (Mon, 09 Apr
> + *          2007) $$
> + */
> +
> +public class SavingsAccount {
> +    private String accountNumber;
> +    private double balance;
> +
> +    public String getAccountNumber() {
> +        return accountNumber;
> +    }
> +
> +    public void setAccountNumber(String n) {
> +        this.accountNumber = n;
> +    }
> +
> +    public double getBalance() {
> +        return balance;
> +    }
> +
> +    public void setBalance(double b) {
> +        this.balance = b;
> +    }
> +
> +    public String toString() {
> +        return accountNumber + ", balance:" + balance;
> +    }
> +}
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/SavingsAccount.java
> ------------------------------------------------------------------------------
>    svn:eol-style = native
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/SavingsAccount.java
> ------------------------------------------------------------------------------
>    svn:keywords = Rev Date
>
> Added: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/StockAccount.java
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/StockAccount.java?view=auto&rev=540764
> ==============================================================================
> ---  
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/StockAccount.java 
> (added)
> +++ 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/StockAccount.java 
> Tue May 22 14:47:57 2007
> @@ -0,0 +1,58 @@
> +/*
> + * 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$$ $$Date: 2007-04-09 12:03:34 -0700 (Mon, 09 Apr
> + *          2007) $$
> + */
> +
> +public class StockAccount {
> +    private String accountNumber;
> +    private String symbol;
> +    private int quantity;
> +
> +    public String getAccountNumber() {
> +        return accountNumber;
> +    }
> +
> +    public void setAccountNumber(String n) {
> +        this.accountNumber = n;
> +    }
> +
> +    public double getQuantity() {
> +        return quantity;
> +    }
> +
> +    public void setQuantity(int a) {
> +        this.quantity = a;
> +    }
> +
> +    public String getSymbol() {
> +        return symbol;
> +    }
> +
> +    public void setSymbol(String s) {
> +        this.symbol = s;
> +    }
> +
> +    public String toString() {
> +        return accountNumber + ", symbol:" + symbol + ", quantity:" + 
> quantity;
> +    }
> +}
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/StockAccount.java
> ------------------------------------------------------------------------------
>    svn:eol-style = native
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/accountdata/StockAccount.java
> ------------------------------------------------------------------------------
>    svn:keywords = Rev Date
>
> Added: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/demo/BigBankServer.java
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/demo/BigBankServer.java?view=auto&rev=540764
> ==============================================================================
> ---  
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/demo/BigBankServer.java 
> (added)
> +++ 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/demo/BigBankServer.java 
> Tue May 22 14:47:57 2007
> @@ -0,0 +1,44 @@
> +/*
> + * 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.demo;
> +
> +import org.apache.tuscany.sca.host.embedded.SCADomain;
> +
> +/**
> + * This client program shows how to create an SCA runtime, start it,
> + * and locate and invoke a SCA component
> + */
> +public class BigBankServer {
> +
> +    public static void main(String[] args) throws Exception {
> +
> +        System.out.println("Starting the Sample SCA BigBank server...");
> +
> +        SCADomain domain = SCADomain.newInstance("http://localhost:8080", 
> "/", "BigBank.composite");
> +
> +        System.out.println("Press Enter to Exit...");
> +        System.in.read();
> +
> +        domain.close();
> +
> +        System.out.println("Bye");
> +    }
> +
> +}
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/demo/BigBankServer.java
> ------------------------------------------------------------------------------
>    svn:eol-style = native
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/bigbank/demo/BigBankServer.java
> ------------------------------------------------------------------------------
>    svn:keywords = Rev Date
>
> Added: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/calculator/CalculatorService.java
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/calculator/CalculatorService.java?view=auto&rev=540764
> ==============================================================================
> ---  
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/calculator/CalculatorService.java 
> (added)
> +++ 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/calculator/CalculatorService.java 
> Tue May 22 14:47:57 2007
> @@ -0,0 +1,34 @@
> +/*
> + * 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 calculator;
> +
> +/**
> + * The Calculator service interface.
> + */
> +public interface CalculatorService {
> +
> +    double add(double n1, double n2);
> +
> +    double subtract(double n1, double n2);
> +
> +    double multiply(double n1, double n2);
> +
> +    double divide(double n1, double n2);
> +
> +}
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/calculator/CalculatorService.java
> ------------------------------------------------------------------------------
>    svn:eol-style = native
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/calculator/CalculatorService.java
> ------------------------------------------------------------------------------
>    svn:keywords = Rev Date
>
> Added: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/stockquote/StockQuoteService.java
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/stockquote/StockQuoteService.java?view=auto&rev=540764
> ==============================================================================
> ---  
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/stockquote/StockQuoteService.java 
> (added)
> +++ 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/stockquote/StockQuoteService.java 
> Tue May 22 14:47:57 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 stockquote;
> +
> +import org.osoa.sca.annotations.Remotable;
> +import org.osoa.sca.annotations.Service;
> +
> +/**
> + * This is the business interface of the StockQuote service.
> + */
> +@Remotable
> +@Service
> +public interface StockQuoteService {
> +
> +    public double getQuote(String symbol);
> +}
> +
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/stockquote/StockQuoteService.java
> ------------------------------------------------------------------------------
>    svn:eol-style = native
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/java/stockquote/StockQuoteService.java
> ------------------------------------------------------------------------------
>    svn:keywords = Rev Date
>
> Added: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/AccountData.composite
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/AccountData.composite?view=auto&rev=540764
> ==============================================================================
> ---  
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/AccountData.composite 
> (added)
> +++ 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/AccountData.composite 
> Tue May 22 14:47:57 2007
> @@ -0,0 +1,15 @@
> +<?xml version="1.0" encoding="UTF-8"?>
> +<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
> + targetNamespace="http://bigbank"
> + xmlns:bb="http://bigbank"
> + name="AccountData">
> +
> +    <service name="AccountDataService" 
> promote="AccountDataServiceComponent">
> +        <interface.java 
> interface="bigbank.accountdata.AccountDataService"/>
> +    </service>
> +
> +    <component name="AccountDataServiceComponent">
> +        <implementation.java 
> class="bigbank.accountdata.AccountDataServiceImpl"/>
> +    </component>
> +
> +</composite>
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/AccountData.composite
> ------------------------------------------------------------------------------
>    svn:eol-style = native
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/AccountData.composite
> ------------------------------------------------------------------------------
>    svn:keywords = Rev Date
>
> Added: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/BigBank.composite
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/BigBank.composite?view=auto&rev=540764
> ==============================================================================
> ---  
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/BigBank.composite 
> (added)
> +++ 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/BigBank.composite 
> Tue May 22 14:47:57 2007
> @@ -0,0 +1,35 @@
> +<?xml version="1.0" encoding="UTF-8"?>
> +<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
> + targetNamespace="http://bigbank"
> + xmlns:bb="http://bigbank"
> + name="BigBank">
> +
> +    <service name="AccountWebService" promote="AccountServiceComponent">
> +        <interface.java interface="bigbank.account.AccountService"/>
> + <binding.ws 
> wsdlElement="http://bigbank#wsdl.port(AccountService/AccountServiceSoap)"/>
> +    </service>
> +
> +    <service name="AccountJSONService" promote="AccountServiceComponent">
> +        <interface.java interface="bigbank.account.AccountService"/>
> +        <binding.jsonrpc/>
> +    </service>
> +
> +    <component name="AccountServiceComponent">
> +        <implementation.java class="bigbank.account.AccountServiceImpl"/>
> +        <reference name="accountDataService" 
> target="AccountDataServiceComponent"/>
> +        <property name="currency">EURO</property>
> +    </component>
> +
> +    <component name="AccountDataServiceComponent">
> +        <implementation.composite name="bb:AccountData"/>
> +    </component>
> +
> +    <reference name="CalculatorReference" 
> promote="AccountServiceComponent/calculatorService">
> +    <binding.rmi host="localhost" port="8099" 
> serviceName="CalculatorRMIService"/>
> +   </reference>
> +
> +    <reference name="StockQuoteReference" 
> promote="AccountServiceComponent/stockQuoteService">
> +        <binding.ws 
> wsdlElement="http://stockquote#wsdl.port(StockQuoteService/StockQuoteSoapPort)"/>
> +    </reference>
> +
> +</composite>
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/BigBank.composite
> ------------------------------------------------------------------------------
>    svn:eol-style = native
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/BigBank.composite
> ------------------------------------------------------------------------------
>    svn:keywords = Rev Date
>
> Added: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/AccountService.wsdl
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/AccountService.wsdl?view=auto&rev=540764
> ==============================================================================
> ---  
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/AccountService.wsdl 
> (added)
> +++ 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/AccountService.wsdl 
> Tue May 22 14:47:57 2007
> @@ -0,0 +1,91 @@
> +<?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.
> +-->
> +
> +<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
> + xmlns:tns="http://bigbank"
> + xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> + xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> + targetNamespace="http://bigbank"
> + name="AccountService">
> +
> + <wsdl:types>
> + <xsd:schema
> + targetNamespace="http://bigbank"
> + xmlns:xsd="http://www.w3.org/2001/XMLSchema">
> +
> + <xsd:element name="getAccountReport">
> + <xsd:complexType>
> + <xsd:sequence>
> + <xsd:element name="customerID" type="xsd:string" />
> + </xsd:sequence>
> + </xsd:complexType>
> + </xsd:element>
> +
> + <xsd:element name="getAccountReportResponse">
> + <xsd:complexType>
> + <xsd:sequence>
> + <xsd:element name="balance" type="xsd:double" />
> + </xsd:sequence>
> + </xsd:complexType>
> + </xsd:element>
> +
> + </xsd:schema>
> + </wsdl:types>
> +
> + <wsdl:message name="getAccountReportRequest">
> + <wsdl:part element="tns:getAccountReport"
> + name="getAccountReportRequest" />
> + </wsdl:message>
> +
> + <wsdl:message name="getAccountReportResponse">
> + <wsdl:part element="tns:getAccountReportResponse"
> + name="getAccountReportResponse" />
> + </wsdl:message>
> +
> + <wsdl:portType name="AccountService">
> + <wsdl:operation name="getAccountReport">
> + <wsdl:input message="tns:getAccountReportRequest" />
> + <wsdl:output message="tns:getAccountReportResponse" />
> + </wsdl:operation>
> + </wsdl:portType>
> +
> + <wsdl:binding name="AccountServiceSoap" type="tns:AccountService">
> + <soap:binding style="document"
> + transport="http://schemas.xmlsoap.org/soap/http" />
> + <wsdl:operation name="getAccountReport">
> + <soap:operation
> + soapAction="" />
> + <wsdl:input>
> + <soap:body use="literal" />
> + </wsdl:input>
> + <wsdl:output>
> + <soap:body use="literal" />
> + </wsdl:output>
> + </wsdl:operation>
> + </wsdl:binding>
> +
> + <wsdl:service name="AccountService">
> + <wsdl:port binding="tns:AccountServiceSoap"
> + name="AccountServiceSoap">
> + <soap:address
> + location="http://localhost:8082/services/AccountWebService" />
> + </wsdl:port>
> + </wsdl:service>
> +</wsdl:definitions>
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/AccountService.wsdl
> ------------------------------------------------------------------------------
>    svn:eol-style = native
>
>Propchange: 
>incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/AccountService.wsdl
> ------------------------------------------------------------------------------
>    svn:keywords = Rev Date
>
> Added: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/StockQuote.wsdl
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/StockQuote.wsdl?view=auto&rev=540764
> ==============================================================================
> ---  
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/StockQuote.wsdl 
> (added)
> +++ 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/StockQuote.wsdl 
> Tue May 22 14:47:57 2007
> @@ -0,0 +1,79 @@
> +<?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.
> +-->
> +<wsdl:definitions targetNamespace="http://stockquote" 
> xmlns:tns="http://stockquote" 
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" 
> xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" 
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> + name="stockquote">
> +
> +    <wsdl:types>
> +        <schema elementFormDefault="qualified" 
> targetNamespace="http://stockquote" 
> xmlns="http://www.w3.org/2001/XMLSchema">
> +
> +            <element name="getQuote">
> +                <complexType>
> +                    <sequence>
> +                        <element name="name" type="xsd:string"/>
> +                    </sequence>
> +                </complexType>
> +            </element>
> +
> +            <element name="getQuoteResponse">
> +                <complexType>
> +                    <sequence>
> +                        <element name="getQuoteReturn" 
> type="xsd:double"/>
> +                    </sequence>
> +                </complexType>
> +            </element>
> +
> +        </schema>
> +    </wsdl:types>
> +
> +    <wsdl:message name="getQuoteRequest">
> +        <wsdl:part element="tns:getQuote" name="parameters"/>
> +    </wsdl:message>
> +
> +    <wsdl:message name="getQuoteResponse">
> +        <wsdl:part element="tns:getQuoteResponse" name="parameters"/>
> +    </wsdl:message>
> +
> +    <wsdl:portType name="StockQuote">
> +        <wsdl:operation name="getQuote">
> +            <wsdl:input message="tns:getQuoteRequest" 
> name="getQuoteRequest"/>
> +            <wsdl:output message="tns:getQuoteResponse" 
> name="getQuoteResponse"/>
> +        </wsdl:operation>
> +    </wsdl:portType>
> +
> +    <wsdl:binding name="StockQuoteSoapBinding" type="tns:StockQuote">
> +        <wsdlsoap:binding style="document" 
> transport="http://schemas.xmlsoap.org/soap/http"/>
> +        <wsdl:operation name="getQuote">
> +            <wsdlsoap:operation soapAction=""/>
> +            <wsdl:input name="getQuoteRequest">
> +                <wsdlsoap:body use="literal"/>
> +            </wsdl:input>
> +            <wsdl:output name="getQuoteResponse">
> +                <wsdlsoap:body use="literal"/>
> +            </wsdl:output>
> +        </wsdl:operation>
> +    </wsdl:binding>
> +
> +    <wsdl:service name="StockQuoteService">
> +        <wsdl:port binding="tns:StockQuoteSoapBinding" 
> name="StockQuoteSoapPort">
> +            <wsdlsoap:address 
> location="http://localhost:8081/services/StockQuoteWebService"/>
> +        </wsdl:port>
> +    </wsdl:service>
> +
> +</wsdl:definitions>
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/StockQuote.wsdl
> ------------------------------------------------------------------------------
>    svn:eol-style = native
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/resources/wsdl/StockQuote.wsdl
> ------------------------------------------------------------------------------
>    svn:keywords = Rev Date
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/
> ------------------------------------------------------------------------------
> --- svn:ignore (added)
> +++ svn:ignore Tue May 22 14:47:57 2007
> @@ -0,0 +1 @@
> +dojo
>
> Added: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/AccountJSON.html
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/AccountJSON.html?view=auto&rev=540764
> ==============================================================================
> ---  
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/AccountJSON.html 
> (added)
> +++ 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/AccountJSON.html 
> Tue May 22 14:47:57 2007
> @@ -0,0 +1,102 @@
> +<html>
> +<!--
> + * 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.
> + -->
> +  <head>
> +    <title>Tuscany JSON-RPC BigBank Client</TITLE>
> +
> +    <script type="text/javascript">
> +        var djConfig = {isDebug: true,debugContainerId: "dojoDebug" };
> +        //djConfig.debugAtAllCosts = true;
> +    </script>
> +
> +    <script type="text/javascript" src="services/SCA/scripts"></script>
> +
> +    <script language="JavaScript">
> +       SCA = new JSONRpcClient("services/AccountJSONService");
> +
> +       function getAccountReport() {
> +          var name = document.getElementById("name").value;
> +          var result = SCA.AccountJSONService.getAccountReport(name);
> +          document.getElementById('balance').innerHTML=result;
> +       }
> +    </script>
> +
> +    <script type="text/javascript" src="dojo/dojo.js">
> +    </script>
> +
> +    <script type="text/javascript">
> +    dojo.require("dojo.widget.*");
> +    dojo.require("dojo.widget.Button");
> +    dojo.require("dojo.rpc.JsonService");
> +    </script>
> +
> +    <link rel="stylesheet" type="text/css" href="style.css" />
> +  </head>
> +
> +  <body>
> +
> +    <table>
> +      <tr>
> +        <th colspan="2">Tuscany JSON-RPC BigBank Client</th>
> +      </tr>
> +      <tr>
> +        <td colspan="2">
> +           <p>This example uses the <a 
> href="http://dojotoolkit.org/">Dojo Toolkit</a>
> +           to create a JavaScript object <code>accountService</code> for 
> the service at
> +           <b>services/AccountJSONService</b>
> +           using <a 
> href="http://manual.dojotoolkit.org/WikiHome/DojoDotBook/Book9">Dojo's RPC 
> classes</a>
> +           and providing them with <a 
> href="services/AccountJSONService?smd">services/AccountJSONService?smd</a>
> +           for <a href="http://dojo.jot.com/SMD">Simple Method 
> Description (SMD)</a> input.</p>
> +           <p>It then creates a Dojo button that will envoke the 
> <code>getAccountReport</code> method of the <code>accountService</code> 
> object.</p>
> +      </tr>
> +      <tr>
> +        <td>Request</td>
> +        <td>Response</td>
> +      </tr>
> +      <tr>
> +        <td>
> +            <br><div id="myaccount" dojoType="Button" 
> onClick='accountService.getAccountReport("Dojo").addCallback(contentCallBack);'>accountService.getAccountReport("Dojo").addCallback(contentCallBack);</div><br>
> +        </td>
> +        <td>
> +            <div id="ReturnedContent">None Yet.</div>
> +        </td>
> +      </tr>
> +      <tr>
> +        <td colspan="2">
> +           <div id="dojoDebug">Dojo Debug:</div>
> +        </td>
> +      </tr>
> +    </table>
> +
> +
> +
> +
> +    <script type="text/javascript">
> +
> +    function contentCallBack(result) {
> +    var handlerNode = document.getElementById("ReturnedContent");
> +    handlerNode.innerHTML = "<p>" + result + "</p>" ;
> +    }
> +
> +    var accountService = new 
> dojo.rpc.JsonService("services/AccountJSONService?smd");
> +
> +    </script>
> +
> +  </body>
> +</html>
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/AccountJSON.html
> ------------------------------------------------------------------------------
>    svn:eol-style = native
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/AccountJSON.html
> ------------------------------------------------------------------------------
>    svn:keywords = Rev Date
>
> Added: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/WEB-INF/web.xml
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/WEB-INF/web.xml?view=auto&rev=540764
> ==============================================================================
> ---  
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/WEB-INF/web.xml 
> (added)
> +++ 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/WEB-INF/web.xml 
> Tue May 22 14:47:57 2007
> @@ -0,0 +1,46 @@
> +<?xml version="1.0" encoding="ISO-8859-1"?>
> +<!--
> + * 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.
> +-->
> +
> +<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> +Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
> +<web-app>
> +
> +
> +  <display-name>Tuscany BigBank Account Sample</display-name>
> +
> +    <welcome-file-list id="WelcomeFileList">
> +        <welcome-file>AccountJSON.html</welcome-file>
> +    </welcome-file-list>
> +
> +  <listener>
> + 
> <listener-class>org.apache.tuscany.sca.webapp.TuscanyContextListener</listener-class>
> +  </listener>
> +
> +
> +<servlet>
> +       <servlet-name>TuscanyServlet</servlet-name>
> + 
> <servlet-class>org.apache.tuscany.sca.webapp.TuscanyServlet</servlet-class>
> +    </servlet>
> +
> +    <servlet-mapping>
> +       <servlet-name>TuscanyServlet</servlet-name>
> +       <url-pattern>/services/*</url-pattern>
> +    </servlet-mapping>
> +</web-app>
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/WEB-INF/web.xml
> ------------------------------------------------------------------------------
>    svn:eol-style = native
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/WEB-INF/web.xml
> ------------------------------------------------------------------------------
>    svn:keywords = Rev Date
>
> Added: 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/style.css
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/style.css?view=auto&rev=540764
> ==============================================================================
> ---  
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/style.css 
> (added)
> +++ 
> incubator/tuscany/java/sca/demos/bigbank-account/src/main/webapp/style.css 
> Tue May 22 14:47:57 2007
> @@ -0,0 +1,4 @@
> +* { font-family: arial; }
> +
> +table, th, td { border: 2px solid blue; border-collapse: collapse; }
> +th { color: white; background-color: blue; }
>
> Propchange: incubator/tuscany/java/sca/demos/bigbank-calculator/
> ------------------------------------------------------------------------------
> --- svn:ignore (added)
> +++ svn:ignore Tue May 22 14:47:57 2007
> @@ -0,0 +1,14 @@
> +target
> +*.iws
> +*.ipr
> +*.iml
> +.project
> +.classpath
> +maven.log
> +velocity.log*
> +junit*.properties
> +surefire*.properties
> +.settings
> +.deployables
> +.wtpmodules
> +
>
> Added: incubator/tuscany/java/sca/demos/bigbank-calculator/pom.xml
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-calculator/pom.xml?view=auto&rev=540764
> ==============================================================================
> --- incubator/tuscany/java/sca/demos/bigbank-calculator/pom.xml (added)
> +++ incubator/tuscany/java/sca/demos/bigbank-calculator/pom.xml Tue May 22 
> 14:47:57 2007
> @@ -0,0 +1,78 @@
> +<?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-sca</artifactId>
> +        <version>1.0-incubating-SNAPSHOT</version>
> +        <relativePath>../../pom.xml</relativePath>
> +    </parent>
> +    <artifactId>demo-bigbank-calculator</artifactId>
> +    <name>Apache Tuscany BigBank Calculator 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.0-incubating-SNAPSHOT</version>
> +        </dependency>
> +
> +        <dependency>
> +            <groupId>org.apache.tuscany.sca</groupId>
> +            <artifactId>tuscany-implementation-java-runtime</artifactId>
> +            <version>1.0-incubating-SNAPSHOT</version>
> +            <scope>runtime</scope>
> +        </dependency>
> +
> +        <dependency>
> +            <groupId>org.apache.tuscany.sca</groupId>
> +            <artifactId>tuscany-implementation-script</artifactId>
> +            <version>1.0-incubating-SNAPSHOT</version>
> +            <scope>runtime</scope>
> +        </dependency>
> +
> +        <dependency>
> +            <groupId>org.apache.tuscany.sca</groupId>
> +            <artifactId>tuscany-binding-rmi</artifactId>
> +            <version>1.0-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>${artifactId}</finalName>
> +    </build>
> +</project>
>
> Propchange: incubator/tuscany/java/sca/demos/bigbank-calculator/pom.xml
> ------------------------------------------------------------------------------
>    svn:eol-style = native
>
> Propchange: incubator/tuscany/java/sca/demos/bigbank-calculator/pom.xml
> ------------------------------------------------------------------------------
>    svn:keywords = Rev Date
>
> Added: 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/AddService.java
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/AddService.java?view=auto&rev=540764
> ==============================================================================
> ---  
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/AddService.java 
> (added)
> +++ 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/AddService.java 
> Tue May 22 14:47:57 2007
> @@ -0,0 +1,25 @@
> +/*
> + * 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 calculator;
> +
> +public interface AddService {
> +
> +    double add(double n1, double n2);
> +
> +}
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/AddService.java
> ------------------------------------------------------------------------------
>    svn:eol-style = native
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/AddService.java
> ------------------------------------------------------------------------------
>    svn:keywords = Rev Date
>
> Added: 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/CalculatorService.java
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/CalculatorService.java?view=auto&rev=540764
> ==============================================================================
> ---  
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/CalculatorService.java 
> (added)
> +++ 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/CalculatorService.java 
> Tue May 22 14:47:57 2007
> @@ -0,0 +1,34 @@
> +/*
> + * 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 calculator;
> +
> +/**
> + * The Calculator service interface.
> + */
> +public interface CalculatorService {
> +
> +    double add(double n1, double n2);
> +
> +    double subtract(double n1, double n2);
> +
> +    double multiply(double n1, double n2);
> +
> +    double divide(double n1, double n2);
> +
> +}
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/CalculatorService.java
> ------------------------------------------------------------------------------
>    svn:eol-style = native
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/CalculatorService.java
> ------------------------------------------------------------------------------
>    svn:keywords = Rev Date
>
> Added: 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/CalculatorServiceImpl.java
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/CalculatorServiceImpl.java?view=auto&rev=540764
> ==============================================================================
> ---  
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/CalculatorServiceImpl.java 
> (added)
> +++ 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/CalculatorServiceImpl.java 
> Tue May 22 14:47:57 2007
> @@ -0,0 +1,69 @@
> +/*
> + * 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 calculator;
> +
> +import org.osoa.sca.annotations.Reference;
> +
> +/**
> + * An implementation of the Calculator service.
> + */
> +public class CalculatorServiceImpl implements CalculatorService {
> +
> +    private AddService addService;
> +    private SubtractService subtractService;
> +    private MultiplyService multiplyService;
> +    private DivideService divideService;
> +
> +    @Reference
> +    public void setAddService(AddService addService) {
> +        this.addService = addService;
> +    }
> +
> +    @Reference
> +    public void setSubtractService(SubtractService subtractService) {
> +        this.subtractService = subtractService;
> +    }
> +
> +    @Reference
> +    public void setDivideService(DivideService divideService) {
> +        this.divideService = divideService;
> +    }
> +
> +    @Reference
> +    public void setMultiplyService(MultiplyService multiplyService) {
> +        this.multiplyService = multiplyService;
> +    }
> +
> +    public double add(double n1, double n2) {
> +        return addService.add(n1, n2);
> +    }
> +
> +    public double subtract(double n1, double n2) {
> +        return subtractService.subtract(n1, n2);
> +    }
> +
> +    public double multiply(double n1, double n2) {
> +        return multiplyService.multiply(n1, n2);
> +    }
> +
> +    public double divide(double n1, double n2) {
> +        return divideService.divide(n1, n2);
> +    }
> +
> +}
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/CalculatorServiceImpl.java
> ------------------------------------------------------------------------------
>    svn:eol-style = native
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/CalculatorServiceImpl.java
> ------------------------------------------------------------------------------
>    svn:keywords = Rev Date
>
> Added: 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/DivideService.java
> URL: 
> http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/DivideService.java?view=auto&rev=540764
> ==============================================================================
> ---  
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/DivideService.java 
> (added)
> +++ 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/DivideService.java 
> Tue May 22 14:47:57 2007
> @@ -0,0 +1,25 @@
> +/*
> + * 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 calculator;
> +
> +public interface DivideService {
> +
> +    double divide(double n1, double n2);
> +
> +}
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/DivideService.java
> ------------------------------------------------------------------------------
>    svn:eol-style = native
>
> Propchange: 
> incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/DivideService.java
> ------------------------------------------------------------------------------
>    svn:keywords = Rev Date
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-commits-help@ws.apache.org
> 


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