Take control with WS-BPEL

Page: 1 2 3 4 5 6 7 December 11th, 2009 by Henri Bezemer

Build the project using NetBeans. To deploy all artifacts to OpenESB, we need to create another project in NetBeans. This project must be a SOA Composite Application. Once this project is created, it will contain a Service Assembly file. Open this file and the CASA editor will come up. Now drop the other project onto the CASA editor. This is all that needed. If you build the project, the CASA editor will automagically find and show the various ESB components (the WS-BPEL service engine and the File and HTTP binding components) and the connections between them. Deploy the CASA project to OpenESB to test it.

To test the process use the Eclipse Web Service Explorer to invoke the createCustomer operation on the front-office web service. Verify that the values that you entered are stored in the database. Then invoke the servlet using your browser with the same email address that you provided for this customer (remember that correlation is based on this email address). Now the process continues and finishes after making a call to the back office, that is, it adds a record to the specified file.

Note that if you invoke the servlet with an incorrect email address, the call blocks. This is by design, because it is possible that a callback is made before the process is ready to receive it (before the process executes the <receive> “statement”). A WS-BPEL callback client should be programmed to stop waiting after a reasonable amount of time.

That concludes this post. Quite a long one! I enjoyed writing it and I hope it is useful to you.

Previous page

One Comment

December 15, 2009 at 11:12 am BPEL_evaluator


Thanks for the example. I now heve a better understanding of correlation Keep up th good work!