diff options
author | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2010-09-22 12:38:27 +0000 |
---|---|---|
committer | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2010-09-22 12:38:27 +0000 |
commit | e3cd33994acadfaa39bb9646532dadf307c97875 (patch) | |
tree | fdeefb0794bcee07c07a734c4326367fa5be2e0c /sca-java-1.x/branches | |
parent | ed6e8d2b87922f9ef88100b2035aa31193474b08 (diff) |
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@999910 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | sca-java-1.x/branches/sca-java-1.6.1/samples/helloworld-bpel/README | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/sca-java-1.x/branches/sca-java-1.6.1/samples/helloworld-bpel/README b/sca-java-1.x/branches/sca-java-1.6.1/samples/helloworld-bpel/README index bf5f500ef3..36d5dedb16 100644 --- a/sca-java-1.x/branches/sca-java-1.6.1/samples/helloworld-bpel/README +++ b/sca-java-1.x/branches/sca-java-1.6.1/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 |