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 [2/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...

Added: incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/MultiplyService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/MultiplyService.java?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/MultiplyService.java (added)
+++ incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/MultiplyService.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 MultiplyService {
+
+    double multiply(double n1, double n2);
+
+}

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

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

Added: incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/SubtractService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/SubtractService.java?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/SubtractService.java (added)
+++ incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/SubtractService.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 SubtractService {
+
+    double subtract(double n1, double n2);
+
+}

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

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

Added: incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/demo/CalculatorServer.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/demo/CalculatorServer.java?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/demo/CalculatorServer.java (added)
+++ incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/java/calculator/demo/CalculatorServer.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 calculator.demo;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+
+/**
+ * @version $Rev$ $Date$
+ */
+public class CalculatorServer {
+    
+    public static void main(String[] args) throws Exception {
+        
+        System.out.println("Starting the Sample SCA Calculator...");
+        
+        SCADomain domain = SCADomain.newInstance("http://localhost:8080", "/", "Calculator.composite");
+        
+        System.out.println("Press Enter to Exit...");
+        System.in.read();
+        
+        domain.close();
+        
+        System.out.println("Bye");
+        System.exit(0);
+    }
+
+}

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

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

Added: incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/Calculator.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/Calculator.composite?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/Calculator.composite (added)
+++ incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/Calculator.composite Tue May 22 14:47:57 2007
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+	targetNamespace="http://calc"
+	xmlns:c="http://calc"
+	name="Calculator">
+
+    <service name="CalculatorService" promote="CalculatorServiceComponent">
+        <interface.java interface="calculator.CalculatorService"/>
+        <binding.rmi host="localhost" port="8099" serviceName="CalculatorRMIService"/>
+    </service>
+
+    <component name="CalculatorServiceComponent">
+		<implementation.java class="calculator.CalculatorServiceImpl"/>
+        <reference name="addService" target="AddServiceComponent" />
+        <reference name="subtractService" target="SubtractServiceComponent" />
+        <reference name="multiplyService" target="MultiplyServiceComponent" />
+        <reference name="divideService" target="DivideServiceComponent" />
+    </component>
+
+    <component name="AddServiceComponent">
+        <implementation.script script="calculator/AddServiceImpl.js"/>
+    </component>
+
+    <component name="SubtractServiceComponent">
+        <implementation.script script="calculator/SubtractServiceImpl.rb"/>
+    </component>
+
+    <component name="MultiplyServiceComponent">
+        <implementation.script script="calculator/MultiplyServiceImpl.py"/>
+    </component>
+
+    <component name="DivideServiceComponent">
+        <implementation.script script="calculator/DivideServiceImpl.groovy"/>
+    </component>
+
+</composite>

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

Added: incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/AddServiceImpl.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/AddServiceImpl.componentType?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/AddServiceImpl.componentType (added)
+++ incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/AddServiceImpl.componentType Tue May 22 14:47:57 2007
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="ASCII"?>
+<!--
+ * 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.
+-->
+<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0" 
+	xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+  <service name="HelloWorldService">
+        <interface.java interface="calculator.AddService" />
+  </service>
+
+</componentType>              
+       
\ No newline at end of file

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

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

Added: incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/AddServiceImpl.js
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/AddServiceImpl.js?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/AddServiceImpl.js (added)
+++ incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/AddServiceImpl.js Tue May 22 14:47:57 2007
@@ -0,0 +1,22 @@
+/*
+ * 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.    
+ */
+
+function add(n1, n2) {
+   return n1 + n2;
+}
\ No newline at end of file

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

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

Added: incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/DivideServiceImpl.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/DivideServiceImpl.componentType?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/DivideServiceImpl.componentType (added)
+++ incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/DivideServiceImpl.componentType Tue May 22 14:47:57 2007
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="ASCII"?>
+<!--
+ * 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.
+-->
+<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0" 
+	xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+  <service name="HelloWorldService">
+        <interface.java interface="calculator.DivideService" />
+  </service>
+
+</componentType>              
+       
\ No newline at end of file

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

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

Added: incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/DivideServiceImpl.groovy
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/DivideServiceImpl.groovy?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/DivideServiceImpl.groovy (added)
+++ incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/DivideServiceImpl.groovy Tue May 22 14:47:57 2007
@@ -0,0 +1,22 @@
+/*
+ * 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.    
+ */
+ 
+def divide(n1, n2) {
+   return n1 / n2
+}
\ No newline at end of file

Added: incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/MultiplyServiceImpl.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/MultiplyServiceImpl.componentType?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/MultiplyServiceImpl.componentType (added)
+++ incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/MultiplyServiceImpl.componentType Tue May 22 14:47:57 2007
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="ASCII"?>
+<!--
+ * 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.
+-->
+<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0" 
+	xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+  <service name="HelloWorldService">
+        <interface.java interface="calculator.MultiplyService" />
+  </service>
+
+</componentType>              
+       
\ No newline at end of file

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

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

Added: incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/MultiplyServiceImpl.py
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/MultiplyServiceImpl.py?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/MultiplyServiceImpl.py (added)
+++ incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/MultiplyServiceImpl.py Tue May 22 14:47:57 2007
@@ -0,0 +1,21 @@
+# 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.
+#
+ 
+def multiply(n1, n2):
+   print "Python Calculator component: multiply(", n1, ",", n2, ")"
+   return n1 * n2
\ No newline at end of file

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

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

Added: incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/SubtractServiceImpl.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/SubtractServiceImpl.componentType?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/SubtractServiceImpl.componentType (added)
+++ incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/SubtractServiceImpl.componentType Tue May 22 14:47:57 2007
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="ASCII"?>
+<!--
+ * 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.
+-->
+<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0" 
+	xmlns:wsdli="http://www.w3.org/2006/01/wsdl-instance"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+  <service name="HelloWorldService">
+        <interface.java interface="calculator.SubtractService" />
+  </service>
+
+</componentType>              
+       
\ No newline at end of file

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

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

Added: incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/SubtractServiceImpl.rb
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/SubtractServiceImpl.rb?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/SubtractServiceImpl.rb (added)
+++ incubator/tuscany/java/sca/demos/bigbank-calculator/src/main/resources/calculator/SubtractServiceImpl.rb Tue May 22 14:47:57 2007
@@ -0,0 +1,22 @@
+# 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.
+#
+ 
+def subtract(n1, n2)
+    print "Ruby Calculator subtract(", n1, ",", n2, ")\n"
+    return n1 - n2
+end
\ No newline at end of file

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

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

Propchange: incubator/tuscany/java/sca/demos/bigbank-stockquote/
------------------------------------------------------------------------------
--- 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-stockquote/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-stockquote/pom.xml?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-stockquote/pom.xml (added)
+++ incubator/tuscany/java/sca/demos/bigbank-stockquote/pom.xml 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.    
+-->
+<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-stockquote</artifactId>
+    <name>Apache Tuscany BigBank StockQuote 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-binding-ws-axis2</artifactId>
+            <version>1.0-incubating-SNAPSHOT</version>
+            <scope>runtime</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.tuscany.sca</groupId>
+            <artifactId>tuscany-http-tomcat</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-stockquote/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

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

Added: incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/java/stockquote/StockQuoteImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/java/stockquote/StockQuoteImpl.java?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/java/stockquote/StockQuoteImpl.java (added)
+++ incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/java/stockquote/StockQuoteImpl.java Tue May 22 14:47:57 2007
@@ -0,0 +1,38 @@
+/*
+ * 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.Service;
+
+/**
+ * This class implements the HelloWorld service.
+ */
+@Service(StockQuoteService.class)
+public class StockQuoteImpl implements StockQuoteService {
+
+    public double getQuote(String symbol) {
+        double price = 104.0 + Math.random();
+        price = ((int)(price * 100)) / 100.0;
+
+        System.out.println("Getting stock quote for: " + symbol + ", value: "+ price);
+
+        return price;
+    }
+
+}

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

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

Added: incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/java/stockquote/StockQuoteService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/java/stockquote/StockQuoteService.java?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/java/stockquote/StockQuoteService.java (added)
+++ incubator/tuscany/java/sca/demos/bigbank-stockquote/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-stockquote/src/main/java/stockquote/StockQuoteService.java
------------------------------------------------------------------------------
    svn:eol-style = native

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

Added: incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/java/stockquote/demo/StockQuoteServer.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/java/stockquote/demo/StockQuoteServer.java?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/java/stockquote/demo/StockQuoteServer.java (added)
+++ incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/java/stockquote/demo/StockQuoteServer.java Tue May 22 14:47:57 2007
@@ -0,0 +1,42 @@
+/*
+ * 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.demo;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+
+/**
+ * This server program shows how to bootstrap SCA from a simple J2SE program
+ * and start it which activates the StockQuote Web service endpoint.
+ */
+public class StockQuoteServer {
+
+    public static void main(String[] args) throws Exception {
+
+        System.out.println("Starting the Sample SCA StockQuote Service...");
+        
+        SCADomain domain = SCADomain.newInstance("http://localhost:8080", "/", "StockQuote.composite");
+
+        System.out.println("Press Enter to Exit...");
+        System.in.read();
+
+        domain.close();
+        System.out.println("Bye");
+    }
+
+}

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

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

Added: incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/StockQuote.composite
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/StockQuote.composite?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/StockQuote.composite (added)
+++ incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/StockQuote.composite Tue May 22 14:47:57 2007
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+	targetNamespace="http://stockquote"
+	xmlns:hw="http://stockquote"
+    name="StockQuote">
+
+    <service name="StockQuoteWebService" promote="StockQuoteServiceComponent">
+        <interface.java interface="stockquote.StockQuoteService" />
+        <binding.ws wsdlElement="http://stockquote#wsdl.port(StockQuoteService/StockQuoteSoapPort)"/>
+    </service>
+
+    <component name="StockQuoteServiceComponent">
+        <implementation.java class="stockquote.StockQuoteImpl" />
+    </component>
+
+</composite>

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

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

Added: incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/wsdl/StockQuote.wsdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/wsdl/StockQuote.wsdl?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/bigbank-stockquote/src/main/resources/wsdl/StockQuote.wsdl (added)
+++ incubator/tuscany/java/sca/demos/bigbank-stockquote/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-stockquote/src/main/resources/wsdl/StockQuote.wsdl
------------------------------------------------------------------------------
    svn:eol-style = native

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

Added: incubator/tuscany/java/sca/demos/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/demos/pom.xml?view=auto&rev=540764
==============================================================================
--- incubator/tuscany/java/sca/demos/pom.xml (added)
+++ incubator/tuscany/java/sca/demos/pom.xml Tue May 22 14:47:57 2007
@@ -0,0 +1,47 @@
+<?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>tuscany-demos</artifactId>
+    <packaging>pom</packaging>
+    <name>Apache Tuscany SCA Demos</name>
+
+    <profiles>
+        <profile>
+            <id>default</id>
+            <activation>
+                <activeByDefault>true</activeByDefault>
+            </activation>
+            <modules>
+                <module>bigbank-account</module>
+                <module>bigbank-calculator</module>
+                <module>bigbank-stockquote</module>
+            </modules>
+        </profile>
+
+    </profiles>
+    
+</project>

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

Propchange: incubator/tuscany/java/sca/demos/pom.xml
------------------------------------------------------------------------------
    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