วันพฤหัสบดีที่ 23 เมษายน พ.ศ. 2552

[ ServiceMix ] BPEL Tutorial

1. Download servicemix-example-3.zip from here or



2. Put ant-contrib.jar, bcel.jar, and jibx-*.jar in
ESB/libraries/.


3. Download apache-ode-jbi-1.2.zip from here, unpack in ESB/, and copy
apache-ode-jbi-1.2/ode-jbi-1.2.zip to
apache-servicemix-3.3/hotdeploy/.



4. Make a new Eclipse project osesb-example3

Add external JARs:
From /ESP/apache-servicemix-3.3/lib, add
- log4j-1.2.13.jar
- org.apache.servicemix.specs.jbi-api-1.0-1.1.0.jar
- servicemix-core-3.3.jar
- servicemix-utils-1.0.0.jar
- geronimo-jms
- activemq-core

From libraries/, add 3 files,
- bcel.jar and jibx-*.jar

From /eclipse/plugins/org.junit4, add junit.jar.

5. Copy src/ and resources/ from the tutorial archive to the project
workspace.

6. Use Eclipse to create a new source folder called src-test/ then copy
src-test/ from the tutorial archive to the project workspace.

7. delete 'default="start"' in example3-build.xml

8. see ...
ScubaDivingProcess.wsdl
ScubaDivingProcess.bpel

9. Run the Ant target deploy-scubadiving. Ensure there are no errors
on the ServiceMix console or Eclipse console.

10. Run the JUnit test ScubaDivingTest. On the first attempt this will
fail because of classpath problems. Edit the run configuration and

11. add the the geronimo-j2ee-management and commons-logging
JARs from ServiceMix.

JUnit
run > run as .. > run configurations..


12. run that testCase

ไม่มีความคิดเห็น:

LinkWithin

Related Posts Plugin for WordPress, Blogger...