summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/trunk/samples
diff options
context:
space:
mode:
authornash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-10-25 11:05:50 +0000
committernash <nash@13f79535-47bb-0310-9956-ffa450edef68>2010-10-25 11:05:50 +0000
commitc100c13abf89e5260a902792e173f15bfa554a77 (patch)
tree8c2fa24d665d38e032d342c12dbe782a87c23fc6 /sca-java-1.x/trunk/samples
parent7a4ec6973fc2df25f0227a791276eec1cd2bba3e (diff)
Merge r999910 Update instructions for running this sample without needing to compile it first, and document the issue described in TUSCANY-1994
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1027053 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-1.x/trunk/samples')
-rw-r--r--sca-java-1.x/trunk/samples/helloworld-bpel/README22
1 files changed, 8 insertions, 14 deletions
diff --git a/sca-java-1.x/trunk/samples/helloworld-bpel/README b/sca-java-1.x/trunk/samples/helloworld-bpel/README
index bf5f500ef3..36d5dedb16 100644
--- a/sca-java-1.x/trunk/samples/helloworld-bpel/README
+++ b/sca-java-1.x/trunk/samples/helloworld-bpel/README
@@ -9,32 +9,26 @@ first.
If you just want to run it to see what happens open a command prompt, navigate
to this sample directory, and do
-ant compile run
+ant run
OR if you don't have ant, on Windows do
-mkdir target\classes
-mkdir target\wsdl2java-source
-java -cp ..\..\lib\tuscany-sca-manifest.jar org.apache.tuscany.sdo.generate.XSD2JavaGenerator -targetDirectory target/wsdl2java-source -prefix HelloWorld -noContainment -noUnsettable src/main/resources/helloworld.wsdl
-java -cp ..\..\lib\tuscany-sca-manifest.jar org.apache.tuscany.tools.wsdl2java.generate.WSDL2JavaGenerator -targetDirectory target/wsdl2java-source src/main/resources/helloworld.wsdl
unzip ..\..\lib\ode-dao-jpa-ojpa-derby-1.1.zip -d target\database
-javac -d target\classes -cp target\classes;..\..\lib\tuscany-sca-manifest.jar -sourcepath src\main\java;target\wsdl2java-source -target 1.5 -g -source 1.5 src\main\java\helloworld\BPELClient.java
-copy src\main\resources\* target\classes
+unzip target\sample-helloworld-bpel.jar -d target\classes
java -cp ..\..\lib\tuscany-sca-manifest.jar;target\classes;target\database helloworld.BPELClient
and on *nix do
-mkdir target/classes
-mkdir target/wsdl2java-source
-java -cp ../../lib/tuscany-sca-manifest.jar org.apache.tuscany.sdo.generate.XSD2JavaGenerator -targetDirectory target/wsdl2java-source -prefix HelloWorld -noContainment -noUnsettable src/main/resources/helloworld.wsdl
-java -cp ../../lib/tuscany-sca-manifest.jar org.apache.tuscany.tools.wsdl2java.generate.WSDL2JavaGenerator -targetDirectory target/wsdl2java-source src/main/resources/helloworld.wsdl
unzip ../../lib/ode-dao-jpa-ojpa-derby-1.1.zip -d target/database
-javac -d target/classes -cp target/classes;../../lib/tuscany-sca-manifest.jar -sourcepath src/main/java;target/wsdl2java-source -target 1.5 -g -source 1.5 src/main/java/helloworld/BPELClient.java
-cp src/main/resources/* target/classes
+unzip target/sample-helloworld-bpel.jar -d target/classes
java -cp ../../lib/tuscany-sca-manifest.jar:target/classes:target/database helloworld.BPELClient
The sample will start an embedded BPEL engine, deploy a process and invoke it.
+Unlike other samples that are run from a jar file, this sample is run from the
+target/classes directory because Tuscany doesn't currently support running
+a BPEL process file contained within a jar (see TUSCANY-1994).
+
Sample Overview
---------------
The sample provides a single component that is wired to a service with a
@@ -101,7 +95,7 @@ Total time: 36 seconds
Building And Running The Sample Using Maven
-------------------------------------------
With either the binary or source distributions the sample can be built and run
-using Maven as follows. When using Maven, a simple test is present that exercise
+using Maven as follows. When using Maven, a simple test is present that exercises
the same logic as the client to invoke the BPEl process.
cd helloworld-bpel