...
First, run servicemix with a JNDI context configured so that PXE can be deployed.
Code Block |
---|
cd examples/bpel
servicemix servicemix.xml
|
You should now have PXE deployed with a JBI service engine together with a deployment unit for a specific BPEL process.
To trigger the business process you can send it messages. This happens by default if you type
...
PXE has a JBI component and deployment unit which, thanks to JBI, can just auto-deploy in any JBI compliant container. So the easiest way to use PXE right now with ServiceMix is to just drop the PXE deployment unit into the install directory in the binary ServiceMix distribution and the component will be auto-deployed in ServiceMix.
Warning | ||
---|---|---|
| ||
Note that ServiceMix works on any Java SE 1.4 or later environment; however to use PXE you need to use a Java SE 5 or later platform. |
To try out the example of using BPEL with ServiceMix you should Download a binary distro and try the BPEL Example from the Examples
From a command shell, go to the BPEL example directory:
Code Block |
---|
cd [servicemix_install_dir]\examples\bpel
|
where servicemix_install_dir
is the directory in which ServiceMix was installed.
Then typeFrom a command shell, go to the BPEL example directory:
Code Block |
---|
cd [servicemix_install_dir]\examples\file-binding |
where servicemix_install_dir
is the directory in which ServiceMix was installed.
Then type:
Code Block |
---|
[servicemix_install_dir]\bin\servicemix servicemix.xml bin\servicemix servicemix.xml OR ..\..\bin\servicemix servicemix.xml |
...
Code Block |
---|
dir [servicemix_install_dir]\examples\file-binding\outbox
|
If you would like to see more files moved from inbox
to outbox
, copy another file into the inbox
directory. The BPEL program continually polls (every 1000 ms) for new files, so any new file placed in inbox
, will be transmitted to outbox
You should now have PXE deployed with a JBI service engine together with a deployment unit for a specific BPEL process.
Stopping the BPEL Example
To terminate the BPEL example type "CTRL-C" in the command shell in which it is running and answer "y" to the "Terminate batch job (y/n)?" question.
...