diff options
Diffstat (limited to '')
-rw-r--r-- | sca-java-1.x/trunk/samples/helloworld-bpel/README | 22 |
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 |