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/12 13:40:28 UTC
svn commit: r555591 - in /incubator/tuscany/branches/sca-java-0.91/samples:
binding-echo-extension/ binding-echo/ calculator-rmi-reference/
calculator-rmi-service/ calculator-webapp/ chat-webapp/ databinding-echo/
helloworld-dojo/ helloworld-jsonrpc/ h...
Author: svkrish
Date: Thu Jul 12 04:40:24 2007
New Revision: 555591
URL: http://svn.apache.org/viewvc?view=rev&rev=555591
Log:
fixes for TUSCANY-1420
Modified:
incubator/tuscany/branches/sca-java-0.91/samples/binding-echo-extension/README
incubator/tuscany/branches/sca-java-0.91/samples/binding-echo/README
incubator/tuscany/branches/sca-java-0.91/samples/calculator-rmi-reference/README
incubator/tuscany/branches/sca-java-0.91/samples/calculator-rmi-service/README
incubator/tuscany/branches/sca-java-0.91/samples/calculator-webapp/README
incubator/tuscany/branches/sca-java-0.91/samples/chat-webapp/README
incubator/tuscany/branches/sca-java-0.91/samples/databinding-echo/README
incubator/tuscany/branches/sca-java-0.91/samples/helloworld-dojo/README
incubator/tuscany/branches/sca-java-0.91/samples/helloworld-jsonrpc/README
incubator/tuscany/branches/sca-java-0.91/samples/helloworld-ws-reference/README
incubator/tuscany/branches/sca-java-0.91/samples/helloworld-ws-service/README
incubator/tuscany/branches/sca-java-0.91/samples/implementation-composite/README
incubator/tuscany/branches/sca-java-0.91/samples/implementation-crud/README
Modified: incubator/tuscany/branches/sca-java-0.91/samples/binding-echo-extension/README
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-0.91/samples/binding-echo-extension/README?view=diff&rev=555591&r1=555590&r2=555591
==============================================================================
--- incubator/tuscany/branches/sca-java-0.91/samples/binding-echo-extension/README (original)
+++ incubator/tuscany/branches/sca-java-0.91/samples/binding-echo-extension/README Thu Jul 12 04:40:24 2007
@@ -63,15 +63,16 @@
-------------------------------------------------------
T E S T S
-------------------------------------------------------
-Running echo.EchoReferenceTestCase
-Returned message: foo
-Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.111 sec
Running echo.EchoServiceTestCase
Returned message: foo
-Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.121 sec
+Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.011 sec
+Running echo.EchoReferenceTestCase
+Returned message: foo
+Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.06 sec
Results :
-Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
+Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
+
This shows that the Junit test cases have run successfully.
Modified: incubator/tuscany/branches/sca-java-0.91/samples/binding-echo/README
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-0.91/samples/binding-echo/README?view=diff&rev=555591&r1=555590&r2=555591
==============================================================================
--- incubator/tuscany/branches/sca-java-0.91/samples/binding-echo/README (original)
+++ incubator/tuscany/branches/sca-java-0.91/samples/binding-echo/README Thu Jul 12 04:40:24 2007
@@ -38,22 +38,22 @@
main/
java/
echo/
- Echo.java - interface definition for the sample
- reference and service
- EchoComponentImpl.java - sample component implementation with
- echo binding reference
- EchoBindingClient.java - sample client
+ Echo.java - interface definition for the sample
+ reference and service
+ EchoComponentImpl.java - sample component implementation with
+ echo binding reference
+ EchoBindingClient.java - sample client
resources/
- EchoBinding.composite - the SCA assembly for this sample
+ EchoBinding.composite - the SCA assembly for this sample
test/
java/
echo
- EchoTestCase.java - sample JUnit test case for the sample
- client
- binding-echo.png - pictorial representation of the sample
- .composite file
- build.xml - the Ant build file
- pom.xml - the Maven build file
+ EchoBindingTestCase.java - sample JUnit test case for the sample
+ client
+ binding-echo.png - pictorial representation of the sample
+ .composite file
+ build.xml - the Ant build file
+ pom.xml - the Maven build file
Building And Running The Sample Using Ant
@@ -87,13 +87,13 @@
-------------------------------------------------------
T E S T S
-------------------------------------------------------
-Running echoAppl.EchoApplTestCase
+Running echo.EchoBindingTestCase
Returned message: foo
Returned message: bar
-Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.111 sec
+Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.811 sec
Results :
-Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
+Tests run: 2, Failures: 0, Errors: 0, Skipped: 0
This shows that the Junit test cases have run successfully.
Modified: incubator/tuscany/branches/sca-java-0.91/samples/calculator-rmi-reference/README
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-0.91/samples/calculator-rmi-reference/README?view=diff&rev=555591&r1=555590&r2=555591
==============================================================================
--- incubator/tuscany/branches/sca-java-0.91/samples/calculator-rmi-reference/README (original)
+++ incubator/tuscany/branches/sca-java-0.91/samples/calculator-rmi-reference/README Thu Jul 12 04:40:24 2007
@@ -89,7 +89,7 @@
This will run up the server and display the following.
run:
- [java] Calculator RMI Service bound to RMI Registry at port 8099...
+ [java] Starting of the SCA Calculator Application exposed as RMI Services...
[java] ...Press Enter to Exit...
The client is very similar to the calculator sample. It starts the SCA runtime
Modified: incubator/tuscany/branches/sca-java-0.91/samples/calculator-rmi-service/README
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-0.91/samples/calculator-rmi-service/README?view=diff&rev=555591&r1=555590&r2=555591
==============================================================================
--- incubator/tuscany/branches/sca-java-0.91/samples/calculator-rmi-service/README (original)
+++ incubator/tuscany/branches/sca-java-0.91/samples/calculator-rmi-service/README Thu Jul 12 04:40:24 2007
@@ -101,7 +101,7 @@
This will run up the server and display the following.
run:
- [java] Calculator RMI Service bound to RMI Registry at port 8099...
+ [java] Starting of the SCA Calculator Application exposed as RMI Services...
[java] ...Press Enter to Exit...
The client is very similar to the calculator sample
Modified: incubator/tuscany/branches/sca-java-0.91/samples/calculator-webapp/README
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-0.91/samples/calculator-webapp/README?view=diff&rev=555591&r1=555590&r2=555591
==============================================================================
--- incubator/tuscany/branches/sca-java-0.91/samples/calculator-webapp/README (original)
+++ incubator/tuscany/branches/sca-java-0.91/samples/calculator-webapp/README Thu Jul 12 04:40:24 2007
@@ -98,6 +98,19 @@
cd calculator-webapp
mvn
+
+You should see the following output from the test phase.
+
+-------------------------------------------------------
+ T E S T S
+-------------------------------------------------------
+Running calculator.CalculatorTestCase
+Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.852 sec
+
+Results :
+
+Tests run: 1, Failures: 0, Errors: 0, Skipped: 0
+
Again this should result in a war file (sample-calculator-webapp.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/branches/sca-java-0.91/samples/chat-webapp/README
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-0.91/samples/chat-webapp/README?view=diff&rev=555591&r1=555590&r2=555591
==============================================================================
--- incubator/tuscany/branches/sca-java-0.91/samples/chat-webapp/README (original)
+++ incubator/tuscany/branches/sca-java-0.91/samples/chat-webapp/README Thu Jul 12 04:40:24 2007
@@ -10,7 +10,7 @@
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-chat-webapp.war)
-to you web application server.
+to your web application server.
Once the web app is deployed use your browser to visit the following URL;
@@ -22,7 +22,7 @@
---------------
The sample provides an SCA component which has an SCA service using the SCA Ajax
binding and an SCA reference also using the Ajax binding. The component implementation
-simply forwads every invocation of the service as an invocation on the reference. The
+simply forwards every invocation of the service as an invocation on the reference. The
component reference is scoped by the composite so every active client of the composite
will receive every message sent to the component service, thus implementing the chat
application with very little code.
@@ -35,8 +35,9 @@
ChatService.java - service interface
ChatServiceImpl.java - service implementation
resources/
- chat.composite - the SCA assembly for this sample
+ chat.composite - the SCA assembly for this sample
webapp
+ chat.html - the html UserInterface for this application
META-INF/
sca-contribution.xml - specifies the composite to be deployed
WEB-INF/
Modified: incubator/tuscany/branches/sca-java-0.91/samples/databinding-echo/README
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-0.91/samples/databinding-echo/README?view=diff&rev=555591&r1=555590&r2=555591
==============================================================================
--- incubator/tuscany/branches/sca-java-0.91/samples/databinding-echo/README (original)
+++ incubator/tuscany/branches/sca-java-0.91/samples/databinding-echo/README Thu Jul 12 04:40:24 2007
@@ -51,16 +51,19 @@
main/
java/
dbecho/
- ComponentAImpl.java - component implementation
- ComponentBImpl.java - component implementation
- Echo.java - service interface with data binding
- EchoDataBindingClient.java - sample client code
- Interface1.java - service interface with data binding
- Interface2.java - service interface with data bindings
+ ComponentAImpl.java - component implementation
+ ComponentBImpl.java - component implementation
+ Echo.java - service interface with data binding
+ EchoDataBindingClient.java - sample client code
+ Interface1.java - service interface with data binding
+ Interface2.java - service interface with data bindings
resources/
- EchoDataBinding.composite - composite definition
+ META-INF/
+ services/
+ org.apache.tuscany.sca.core.ModuleActivator - specifies the module activation class to call
+ EchoDataBinding.composite - composite definition
wsdl/
- echo.wsdl - WSDL deinitions
+ echo.wsdl - WSDL deinitions
test/
java/
dbecho/
@@ -116,7 +119,7 @@
-------------------------------------------------------
T E S T S
-------------------------------------------------------
-Running echo.EchoDataBindingTestCase
+Running dbecho.EchoDataBindingTestCase
[Property] prefix: ABC
[Property] prefix1: ABC
[Property] bar: BAR
Modified: incubator/tuscany/branches/sca-java-0.91/samples/helloworld-dojo/README
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-0.91/samples/helloworld-dojo/README?view=diff&rev=555591&r1=555590&r2=555591
==============================================================================
--- incubator/tuscany/branches/sca-java-0.91/samples/helloworld-dojo/README (original)
+++ incubator/tuscany/branches/sca-java-0.91/samples/helloworld-dojo/README Thu Jul 12 04:40:24 2007
@@ -23,12 +23,18 @@
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.
+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.
-helloworl-dojo/
+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/
@@ -38,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/
Modified: incubator/tuscany/branches/sca-java-0.91/samples/helloworld-jsonrpc/README
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-0.91/samples/helloworld-jsonrpc/README?view=diff&rev=555591&r1=555590&r2=555591
==============================================================================
--- incubator/tuscany/branches/sca-java-0.91/samples/helloworld-jsonrpc/README (original)
+++ incubator/tuscany/branches/sca-java-0.91/samples/helloworld-jsonrpc/README Thu Jul 12 04:40:24 2007
@@ -20,12 +20,12 @@
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.
+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 SCA-provided JSON client can be
+used to invoke the SCA service.
-helloworl-jsonrpc/
+helloworld-jsonrpc/
src/
main/
java/
Modified: incubator/tuscany/branches/sca-java-0.91/samples/helloworld-ws-reference/README
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-0.91/samples/helloworld-ws-reference/README?view=diff&rev=555591&r1=555590&r2=555591
==============================================================================
--- incubator/tuscany/branches/sca-java-0.91/samples/helloworld-ws-reference/README (original)
+++ incubator/tuscany/branches/sca-java-0.91/samples/helloworld-ws-reference/README Thu Jul 12 04:40:24 2007
@@ -77,7 +77,7 @@
and you will see you need the following commands
cd helloworld-ws-service
-ant
+ant run
Once done you can now compile and run this sample using the following commands;
@@ -138,13 +138,13 @@
WARNING: Could not get url for /javax/servlet/resources/j2ee_web_services_client
_1_1.xsd
10-May-2007 13:40:35 org.apache.coyote.http11.Http11Protocol init
-INFO: Initializing Coyote HTTP/1.1 on http-8080
+INFO: Initializing Coyote HTTP/1.1 on http-8085
10-May-2007 13:40:35 org.apache.coyote.http11.Http11Protocol start
-INFO: Starting Coyote HTTP/1.1 on http-8080
+INFO: Starting Coyote HTTP/1.1 on http-8085
Injected helloWorldService
Called getGreetings
10-May-2007 13:40:36 org.apache.coyote.http11.Http11Protocol destroy
-INFO: Stopping Coyote HTTP/1.1 on http-8080
+INFO: Stopping Coyote HTTP/1.1 on http-8085
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.349 sec
Results :
Modified: incubator/tuscany/branches/sca-java-0.91/samples/helloworld-ws-service/README
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-0.91/samples/helloworld-ws-service/README?view=diff&rev=555591&r1=555590&r2=555591
==============================================================================
--- incubator/tuscany/branches/sca-java-0.91/samples/helloworld-ws-service/README (original)
+++ incubator/tuscany/branches/sca-java-0.91/samples/helloworld-ws-service/README Thu Jul 12 04:40:24 2007
@@ -118,11 +118,11 @@
WARNING: Could not get url for /javax/servlet/resources/j2ee_web_services_1_1.xs
d
10-May-2007 13:48:43 org.apache.coyote.http11.Http11Protocol init
-INFO: Initializing Coyote HTTP/1.1 on http-8080
+INFO: Initializing Coyote HTTP/1.1 on http-8085
10-May-2007 13:48:43 org.apache.coyote.http11.Http11Protocol start
-INFO: Starting Coyote HTTP/1.1 on http-8080
+INFO: Starting Coyote HTTP/1.1 on http-8085
10-May-2007 13:48:43 org.apache.coyote.http11.Http11Protocol destroy
-INFO: Stopping Coyote HTTP/1.1 on http-8080
+INFO: Stopping Coyote HTTP/1.1 on http-8085
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 4.857 sec
Results :
Modified: incubator/tuscany/branches/sca-java-0.91/samples/implementation-composite/README
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-0.91/samples/implementation-composite/README?view=diff&rev=555591&r1=555590&r2=555591
==============================================================================
--- incubator/tuscany/branches/sca-java-0.91/samples/implementation-composite/README (original)
+++ incubator/tuscany/branches/sca-java-0.91/samples/implementation-composite/README Thu Jul 12 04:40:24 2007
@@ -71,14 +71,17 @@
You should see the following output from the run target.
run:
- [java] Main thread Thread[main,5,main]
- [java] Source: Client.main -> Source.clientMethod
- [java] Source: Client.main => Source.clientMethod2
- [java] Sleeping ...
- [java] Target: Client.main -> Source.clientMethod
- [java] Work thread Thread[pool-1-thread-1,5,main]
- [java] Result: Client.main -> Source.clientMethod -> Target.someMethod
- [java] Target: Client.main => Source.clientMethod2
+ [java] Main thread Thread[main,5,main]
+ [java] Source: Client.main -> Source.clientMethod
+ [java] Source: Client.main => Source.clientMethod2
+ [java] Sleeping ...
+ [java] Target: Client.main -> Source.clientMethod
+ [java] Work thread Thread[pool-1-thread-1,5,main]
+ [java] Result: Client.main -> Source.clientMethod -> Target.someMethod
+ [java] Target: Client.main => Source.clientMethod2
+ [java] Work thread Thread[pool-1-thread-2,5,main]
+ [java] Result: Client.main => Source.clientMethod2 -> Target.someMethod
+
Building And Running The Sample Using Maven
-------------------------------------------
@@ -98,11 +101,13 @@
Source: Client.main -> Source.clientMethod
Source: Client.main => Source.clientMethod2
Sleeping ...
+Target: Client.main => Source.clientMethod2
+Work thread Thread[pool-1-thread-2,5,main]
+Result: Client.main => Source.clientMethod2 -> Target.someMethod
Target: Client.main -> Source.clientMethod
Work thread Thread[pool-1-thread-1,5,main]
Result: Client.main -> Source.clientMethod -> Target.someMethod
-Target: Client.main => Source.clientMethod2
-Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.374 sec
+Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.973 sec
Results :
Modified: incubator/tuscany/branches/sca-java-0.91/samples/implementation-crud/README
URL: http://svn.apache.org/viewvc/incubator/tuscany/branches/sca-java-0.91/samples/implementation-crud/README?view=diff&rev=555591&r1=555590&r2=555591
==============================================================================
--- incubator/tuscany/branches/sca-java-0.91/samples/implementation-crud/README (original)
+++ incubator/tuscany/branches/sca-java-0.91/samples/implementation-crud/README Thu Jul 12 04:40:24 2007
@@ -95,19 +95,16 @@
-------------------------------------------------------
T E S T S
-------------------------------------------------------
-Running crudClient.CRUDTestCase
+Running crud.client.CRUDTestCase
Starting CRUDServiceComponent
create(ABC) in tmp
retrieve(0)
-Result from create: ABC
update(0)
retrieve(0)
-Result from update: EFG
delete(0)
retrieve(0)
-Result from delete: null
Stopping CRUDServiceComponent
-Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.212 sec
+Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.641 sec
Results :
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org