anchor.diff:  ----
   
   
  -If you are executing in a simple Java environment, you can use the `DataSourceFactory` class from the kie-test-util module of drools. See the following code fragment. For this example, we are using the H2 in-memory database in combination with Narayana and Tomcat DBCP. Alternatively, use JBPMHelper to automate this process. See below for tests only.
  +If you are executing in a simple Java environment, you can use Narayana and Tomcat DBCP by using the `DataSourceFactory` class from the kie-test-util module of drools. See the following code fragment. This example uses the H2 in-memory database in combination with Narayana and Tomcat DBCP.
   
   [source,java]
   ----
  
positive.code: 
  By default, the {PROCESS_ENGINE} does not save runtime data persistently.
  This means you can use the {PROCESS_ENGINE} completely without persistence (so not even requiring an in memory database) if necessary, for example for performance reasons, or when you would like to manage persistence yourself.
  It is, however, possible to configure the {PROCESS_ENGINE} to do use persistence by configuring it to do so.
  This usually requires adding the necessary dependencies, configuring a datasource and creating the {PROCESS_ENGINE} with persistence configured.
  
  == Adding dependencies
  
  
negative.code: 
  You need to add a persistence configuration to your classpath to  configure JPA to use Hibernate and the H2 database (or your own preference), called [path]_persistence.xml_
   in the META-INF directory, as shown below.
  For more details on how to change this for your own configuration, refer to the JPA and Hibernate documentation.
  
  [source,xml]
  ----
  