Changing a BPEL process to be transient
In this recipe, we'll disable some of the persistence that occurs by default on processes executed in the BPEL engine.
Getting ready
You'll also need a composite loaded into JDeveloper for this recipe. We have provided one with this chapter's source code available from the book's website.
How to do it...
Follow these steps to make a BPEL process transient:
Load the composite into JDeveloper and open the
composite.xml
file.Locate the
<component>
section and add a property element, as follows:<property name="bpel.config.inMemoryOptimization">true</property>
The file should look similar to the following output:
How it works...
BPEL processes are, by default, persisted to the underlying SOA database at a number of stages during the flow execution; this process is known as dehydration. We call these processes durable, as they are resilient against outages in the server runtime. However, certain types of processes can be configured in such a way...