You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by sv...@apache.org on 2007/07/24 11:53:46 UTC

svn commit: r558991 - in /incubator/tuscany/java/sca/samples/helloworld-dojo: README build.xml

Author: svkrish
Date: Tue Jul 24 02:53:46 2007
New Revision: 558991

URL: http://svn.apache.org/viewvc?view=rev&rev=558991
Log:
merging changes from 0.91 release branch

Modified:
    incubator/tuscany/java/sca/samples/helloworld-dojo/README
    incubator/tuscany/java/sca/samples/helloworld-dojo/build.xml

Modified: incubator/tuscany/java/sca/samples/helloworld-dojo/README
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/helloworld-dojo/README?view=diff&rev=558991&r1=558990&r2=558991
==============================================================================
--- incubator/tuscany/java/sca/samples/helloworld-dojo/README (original)
+++ incubator/tuscany/java/sca/samples/helloworld-dojo/README Tue Jul 24 02:53:46 2007
@@ -1,7 +1,7 @@
-Hello World JSONRPC Sample
-==========================
-This sample demostrates the JSONRPC binding using a simple web app that
-talks JSONRPC to an SCA service.  
+Hello World Dojo RPC Sample
+===========================
+This sample demostrates the SCA JSONRPC binding using a simple web app that
+uses the RPC support of the Dojo Toolkit to an SCA service.  
 
 The README in the samples directory (the directory above this) provides 
 general instructions about building and running samples. Take a look there 
@@ -9,23 +9,32 @@
 
 As this sample provides a web app there is a manual step where the WAR file
 that contains the sample is copied to your web app container. If you just want 
-to give this sample a go deploy the WAR file (target/sample-helloworldjsonrpc.war)
+to give this sample a go deploy the WAR file (target/sample-helloworld-dojo.war)
 to you web application server. 
 
 Once the web app is deployed use your browser to visit the following URL;
 
-http://localhost:8080/sample-helloworldjsonrpc
+http://localhost:8080/sample-helloworld-dojo
 
 The port and hostname will of course vary depending on your local installation. 
 
+See also the similar helloworld-jsonrpc sample which also uses the SCA JSONRPC binding
+but uses SCA scaDomain.js script on the client instead of the Dojo Toolkit. 
+
 Sample Overview
 ---------------
-The sample provides a single service which with an operation that reflects 
-a greeting back to the called. The service is exposed using the JSONRPC
-binding. The web app provided shows how the service can be called either via 
-via the SCA provided JSON client or by using the DOJO toolkit. 
-
-helloworl-jsonrpc/
+The sample provides a single service with an operation that reflects
+a greeting back to the caller. The service is exposed using the JSONRPC
+binding. The web app provided shows how the Dojo Toolkit JSON-RPC support can be 
+used to invoke the SCA service. 
+
+The web app provided shows how the service can be called by using the DOJO toolkit. 
+
+helloworld-dojo/
+  build-dojo.xml                      - This file is an Ant script used by the 
+                                        sample build process to download the Dojo Toolkit 
+                                        and get it included in the WAR file 
+                                        for use by the sample.
   src/
     main/
       java/
@@ -35,7 +44,8 @@
       resources/
         jsonrpc.composite             - the SCA assembly for this sample
       webapp
-        dojo/                         - the Dojo toolkit
+        dojo/                         - the Dojo toolkit (this directory is created only 
+                                        when you build the samples from the source distribution)
         META-INF/
           sca-contribution.xml        - specifies the composite to be deployed
         WEB-INF/
@@ -56,10 +66,10 @@
 With the binary distribution the sample can be built using Ant as 
 follows
 
-cd helloworld-jsonrpc
+cd helloworld-dojo
 ant package
 
-This should result in a war file (sample-helloworldjsonrpc.war) in the target 
+This should result in a war file (sample-helloworld-dojo.war) in the target 
 directory. Copy this war file to your web app deployment directory in your
 web app container. 
 
@@ -69,7 +79,7 @@
 
 Once the web app is deployed use your browser to visit the following URL;
 
-http://localhost:8080/sample-helloworldjsonrpc
+http://localhost:8080/sample-helloworld-dojo
 
 The port and hostname will of course vary depending on your local installation. 
 
@@ -81,10 +91,10 @@
 With either the binary or source distributions the sample can be built and run 
 using Maven as follows. 
 
-cd helloworld-jsonrpc 
+cd helloworld-dojo 
 mvn
 
-Again this should result in a war file (sample-calculator-web.war) in the target 
+Again this should result in a war file (sample-helloworld-dojo.war) in the target 
 directory. Follow the steps described in the previous section for running the web 
 app and for the expected results.
 

Modified: incubator/tuscany/java/sca/samples/helloworld-dojo/build.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/samples/helloworld-dojo/build.xml?view=diff&rev=558991&r1=558990&r2=558991
==============================================================================
--- incubator/tuscany/java/sca/samples/helloworld-dojo/build.xml (original)
+++ incubator/tuscany/java/sca/samples/helloworld-dojo/build.xml Tue Jul 24 02:53:46 2007
@@ -16,9 +16,9 @@
  * specific language governing permissions and limitations
  * under the License.    
 -->
-<project name="helloworld-jsonrpc" default="package">
+<project name="helloworld-dojo" default="package">
     <property name="settings.localRepository" value="./target/repo" />
-    <property name="artifactId" value="sample-helloworld-jsonrpc" />
+    <property name="artifactId" value="sample-helloworld-dojo" />
 	
     <target name="init">
         <mkdir dir="target/classes"/>
@@ -49,37 +49,38 @@
           <property name="artifactId" value="${artifactId}"/>
         </ant>   
 
-        <war destfile="target/sample-helloworldjsonrpc.war" 
+        <war destfile="target/sample-helloworld-dojo.war" 
              webxml="src/main/webapp/WEB-INF/web.xml">
             <fileset dir="src/main/webapp"/>
             <zipfileset dir="../../modules" prefix="WEB-INF/lib">
-                <include name="sca-api-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-assembly-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-assembly-xml-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-binding-jsonrpc-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-contribution-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-contribution-impl-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-core-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-core-databinding-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-core-spi-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-databinding-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-host-embedded-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-host-http-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-host-webapp-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-implementation-java-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-implementation-java-runtime-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-implementation-java-xml-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-interface-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-interface-java-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-interface-java-runtime-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-interface-java-xml-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-interface-wsdl-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-interface-wsdl-runtime-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-interface-wsdl-xml-0.90-incubating-SNAPSHOT.jar"/>
-                <include name="tuscany-policy-0.90-incubating-SNAPSHOT.jar"/>
+                <include name="sca-api-0.91-incubating-SNAPSHOT.jar"/>
+                <include name="tuscany-assembly-0.91-incubating-SNAPSHOT.jar"/>
+                <include name="tuscany-assembly-xml-0.91-incubating-SNAPSHOT.jar"/>
+                <include name="tuscany-binding-jsonrpc-0.91-incubating-SNAPSHOT.jar"/>
+                <include name="tuscany-contribution-0.91-incubating-SNAPSHOT.jar"/>
+                <include name="tuscany-contribution-impl-0.91-incubating-SNAPSHOT.jar"/>
+                <include name="tuscany-core-0.91-incubating-SNAPSHOT.jar"/>
+                <include name="tuscany-core-databinding-0.91-incubating-SNAPSHOT.jar"/>
+                <include name="tuscany-core-spi-0.91-incubating-SNAPSHOT.jar"/>
+                <include name="tuscany-databinding-0.91-incubating-SNAPSHOT.jar"/>
+                <include name="tuscany-extension-helper-0.91-incubating-SNAPSHOT.jar"/>
+                <include name="tuscany-host-embedded-0.91-incubating-SNAPSHOT.jar"/>
+                <include name="tuscany-host-http-0.91-incubating-SNAPSHOT.jar"/>
+                <include name="tuscany-host-webapp-0.91-incubating-SNAPSHOT.jar"/>
+                <include name="tuscany-implementation-java-0.91-incubating-SNAPSHOT.jar"/>
+                <include name="tuscany-implementation-java-runtime-0.91-incubating-SNAPSHOT.jar"/>
+                <include name="tuscany-implementation-java-xml-0.91-incubating-SNAPSHOT.jar"/>
+                <include name="tuscany-interface-0.91-incubating-SNAPSHOT.jar"/>
+                <include name="tuscany-interface-java-0.91-incubating-SNAPSHOT.jar"/>
+                <include name="tuscany-interface-java-runtime-0.91-incubating-SNAPSHOT.jar"/>
+                <include name="tuscany-interface-java-xml-0.91-incubating-SNAPSHOT.jar"/>
+                <include name="tuscany-interface-wsdl-0.91-incubating-SNAPSHOT.jar"/>
+                <include name="tuscany-interface-wsdl-runtime-0.91-incubating-SNAPSHOT.jar"/>
+                <include name="tuscany-interface-wsdl-xml-0.91-incubating-SNAPSHOT.jar"/>
+                <include name="tuscany-policy-0.91-incubating-SNAPSHOT.jar"/>
             </zipfileset>
             <lib dir="../../lib">
-                <include name="commonj-api-0.90-incubating-SNAPSHOT.jar"/>
+                <include name="commonj-api-0.91-incubating-SNAPSHOT.jar"/>
                 <include name="json-rpc-1.0.jar"/>
                 <include name="stax-api-1.0.1.jar"/>
                 <include name="wsdl4j-1.6.2.jar"/>



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