You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by lr...@apache.org on 2009/09/01 00:52:22 UTC
svn commit: r809776 - in
/tuscany/sandbox/lresende/sca/samples/helloworld-bpel: ./
src/main/java/launch/ src/main/resources/ src/main/resources/uiservices/
Author: lresende
Date: Mon Aug 31 22:52:21 2009
New Revision: 809776
URL: http://svn.apache.org/viewvc?rev=809776&view=rev
Log:
[Work in progress] Helloworld BPEL integrating with json-rpc
Added:
tuscany/sandbox/lresende/sca/samples/helloworld-bpel/ (props changed)
- copied from r781824, tuscany/branches/sca-java-1.x/samples/helloworld-bpel/
tuscany/sandbox/lresende/sca/samples/helloworld-bpel/src/main/java/launch/
tuscany/sandbox/lresende/sca/samples/helloworld-bpel/src/main/java/launch/LaunchHelloworld.java (with props)
tuscany/sandbox/lresende/sca/samples/helloworld-bpel/src/main/resources/uiservices/
tuscany/sandbox/lresende/sca/samples/helloworld-bpel/src/main/resources/uiservices/helloworld.html (with props)
Modified:
tuscany/sandbox/lresende/sca/samples/helloworld-bpel/pom.xml
tuscany/sandbox/lresende/sca/samples/helloworld-bpel/src/main/resources/helloworld.composite
Propchange: tuscany/sandbox/lresende/sca/samples/helloworld-bpel/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Aug 31 22:52:21 2009
@@ -0,0 +1,18 @@
+target
+work
+dojo
+*.iws
+*.ipr
+*.iml
+.project
+.classpath
+maven.log
+velocity.log*
+junit*.properties
+surefire*.properties
+.settings
+.deployables
+.wtpmodules
+derby.log
+.externalToolBuilders
+maven-eclipse.xml
Propchange: tuscany/sandbox/lresende/sca/samples/helloworld-bpel/
------------------------------------------------------------------------------
svn:mergeinfo = /tuscany/branches/sca-java-1.3/samples/helloworld-bpel:671193
Modified: tuscany/sandbox/lresende/sca/samples/helloworld-bpel/pom.xml
URL: http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/helloworld-bpel/pom.xml?rev=809776&r1=781824&r2=809776&view=diff
==============================================================================
--- tuscany/sandbox/lresende/sca/samples/helloworld-bpel/pom.xml (original)
+++ tuscany/sandbox/lresende/sca/samples/helloworld-bpel/pom.xml Mon Aug 31 22:52:21 2009
@@ -48,9 +48,44 @@
<version>1.6-SNAPSHOT</version>
<scope>runtime</scope>
</dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-implementation-widget-runtime-tuscany</artifactId>
+ <version>1.6-SNAPSHOT</version>
+ <scope>runtime</scope>
+ </dependency>
<dependency>
<groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-binding-jsonrpc-runtime</artifactId>
+ <version>1.6-SNAPSHOT</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-binding-jsonrpc-js</artifactId>
+ <version>1.6-SNAPSHOT</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-binding-http-runtime</artifactId>
+ <version>1.6-SNAPSHOT</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-host-tomcat</artifactId>
+ <version>1.6-SNAPSHOT</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
<artifactId>tuscany-implementation-bpel-ode</artifactId>
<version>1.6-SNAPSHOT</version>
<scope>runtime</scope>
Added: tuscany/sandbox/lresende/sca/samples/helloworld-bpel/src/main/java/launch/LaunchHelloworld.java
URL: http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/helloworld-bpel/src/main/java/launch/LaunchHelloworld.java?rev=809776&view=auto
==============================================================================
--- tuscany/sandbox/lresende/sca/samples/helloworld-bpel/src/main/java/launch/LaunchHelloworld.java (added)
+++ tuscany/sandbox/lresende/sca/samples/helloworld-bpel/src/main/java/launch/LaunchHelloworld.java Mon Aug 31 22:52:21 2009
@@ -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 launch;
+
+import org.apache.tuscany.sca.host.embedded.SCADomain;
+
+public class LaunchHelloworld {
+ public static void main(String[] args) throws Exception {
+ System.out.println("Starting ...");
+ SCADomain scaDomain = SCADomain.newInstance("helloworld.composite");
+ System.out.println("helloworld.composite ready for big business !!!");
+ System.in.read();
+ System.out.println("Stopping ...");
+ scaDomain.close();
+ System.out.println();
+ }
+}
Propchange: tuscany/sandbox/lresende/sca/samples/helloworld-bpel/src/main/java/launch/LaunchHelloworld.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tuscany/sandbox/lresende/sca/samples/helloworld-bpel/src/main/java/launch/LaunchHelloworld.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Modified: tuscany/sandbox/lresende/sca/samples/helloworld-bpel/src/main/resources/helloworld.composite
URL: http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/helloworld-bpel/src/main/resources/helloworld.composite?rev=809776&r1=781824&r2=809776&view=diff
==============================================================================
--- tuscany/sandbox/lresende/sca/samples/helloworld-bpel/src/main/resources/helloworld.composite (original)
+++ tuscany/sandbox/lresende/sca/samples/helloworld-bpel/src/main/resources/helloworld.composite Mon Aug 31 22:52:21 2009
@@ -18,12 +18,27 @@
* under the License.
-->
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"
+ xmlns:t="http://tuscany.apache.org/xmlns/sca/1.0"
targetNamespace="http://bpel"
xmlns:hns="http://tuscany.apache.org/implementation/bpel/example/helloworld"
name="bpel">
+ <component name="helloworld">
+ <t:implementation.widget location="uiservices/helloworld.html"/>
+ <service name="Widget">
+ <t:binding.http uri="/helloworld"/>
+ </service>
+ <reference name="hello" target="BPELHelloWorldComponent">
+ <t:binding.jsonrpc/>
+ </reference>
+ </component>
+
<component name="BPELHelloWorldComponent">
<implementation.bpel process="hns:HelloWorld"/>
+ <service name="HelloPortType">
+ <interface.wsdl interface="http://tuscany.apache.org/implementation/bpel/example/helloworld.wsdl#wsdl.interface(HelloPortType)" />
+ <t:binding.jsonrpc/>
+ </service>
</component>
</composite>
Added: tuscany/sandbox/lresende/sca/samples/helloworld-bpel/src/main/resources/uiservices/helloworld.html
URL: http://svn.apache.org/viewvc/tuscany/sandbox/lresende/sca/samples/helloworld-bpel/src/main/resources/uiservices/helloworld.html?rev=809776&view=auto
==============================================================================
--- tuscany/sandbox/lresende/sca/samples/helloworld-bpel/src/main/resources/uiservices/helloworld.html (added)
+++ tuscany/sandbox/lresende/sca/samples/helloworld-bpel/src/main/resources/uiservices/helloworld.html Mon Aug 31 22:52:21 2009
@@ -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.
+-->
+<html>
+<head>
+<title>Store</title>
+
+<script type="text/javascript" src="helloworld.js"></script>
+
+<script language="JavaScript">
+
+ //@Reference
+ var hello = new tuscany.sca.Reference("hello");
+
+ function getGreeting() {
+ var name = document.getElementById("name").value;
+ hello.hello(getGreetings(name, handleResponse));
+ }
+
+ function handleResponse(result) {
+ document.getElementById('greeting').innerHTML=result;
+ }
+
+</script>
+
+</head>
+
+<body>
+<h1>HelloWorld</h1>
+
+ <p>
+ Name please:
+ <input type="text" id="name" size="30" value="World" />
+ <input type="button" value="Submit" onclick="getGreeting()" />
+ </p>
+
+ <p>
+ <div id='greeting'>None Yet.</div>
+ </p>
+
+</body>
+</html>
Propchange: tuscany/sandbox/lresende/sca/samples/helloworld-bpel/src/main/resources/uiservices/helloworld.html
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tuscany/sandbox/lresende/sca/samples/helloworld-bpel/src/main/resources/uiservices/helloworld.html
------------------------------------------------------------------------------
svn:keywords = Rev Date