O'Reilly logo

Java SOA Cookbook by Eben Hewitt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Deploying a BPEL Process to OpenESB’s BPEL Service Engine

Problem

You have a complete BPEL process built-in to a JAR, and you want to deploy it to OpenESB v2’s BPEL Service Engine to execute it.

Solution

Create a CASA (Composite Application Service Assembly) project using NetBeans. This will combine the BPEL process bundle with the JBI deployment files required by OpenESB, and deploy it to the runtime engine.

Discussion

While the definition of a BPEL process itself is standardized through the specification, the manner in which you deploy that process is left undefined. That means that it’s up to each vendor to figure out its own way of installing a process into its engine so that it can be executed. This is not great news for developers, but tools do make it easier.

Here you will deploy the process that you defined in Creating a BPEL Process That Invokes a Partner through NetBeans 6.X. So let’s start from there. You should have the partner web service that you created in that recipe deployed already.

It doesn’t take long to deploy the process, part of which is shown in Figure 9-13. Here is an overview of the basic steps:

  1. Build the BPEL module into its JAR.

  2. Create a Composite Application Service Assemby (CASA), which you’ll wrap the BPEL process JAR in so that it can be deployed in the JBI container.

  3. Add the BPEL JAR to the CASA project.

  4. Build and deploy the CASA.

Adding the BPEL JAR to the CASA

Figure 9-13. Adding the BPEL ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required