13c13
<     java objects and as records in the jBPM database.  Executional (=runtime)
---
>     java objects and as records in the jBPM database.  Execution (or runtime)
20c20
<     <mediaobject><imageobject><imagedata align="center" fileref="images/model.transformations.jpg"/></imageobject></mediaobject>
---
>     <mediaobject><imageobject><imagedata  fileref="images/model.transformations.png"/></imageobject></mediaobject>
34,35c34,35
<     <para>The persistence API is an integrated with the <link linkend="configuration">
<       configuration framework</link> by exposing some convenience persistence methods 
---
>     <para>The persistence API is an integrated with the 
>       configuration framework<footnote><para><xref linkend="configuration"/>.</para></footnote> by exposing some convenience persistence methods 
40c40
<     <programlisting>JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
---
>     <programlisting language="java">JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
54c54
<     <programlisting>&lt;jbpm-configuration&gt;
---
>     <programlisting language="xml">&lt;jbpm-configuration&gt;
58d57
<     ...
60d58
<   ...
67,69c65,67
<         <listitem>Deploying a process</listitem>
<         <listitem>Starting a new execution of a process</listitem>
<         <listitem>Continuing an execution</listitem>
---
>         <listitem><para>Deploying a process</para></listitem>
>         <listitem><para>Starting a new execution of a process</para></listitem>
>         <listitem><para>Continuing an execution</para></listitem>
78c76
<     <programlisting>JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
---
>     <programlisting language="java">JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
92c90
<     <programlisting>JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
---
>     <programlisting language="java">JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
103c101
<       objects and afterwards save the updates made to the processInstance into the database 
---
>       objects and afterward save the updates made to the processInstance into the database 
107c105
<     <programlisting>JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
---
>     <programlisting language="java">JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
127c125
<     <programlisting>JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
---
>     <programlisting language="java">JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
153c151
<       <mediaobject><imageobject><imagedata align="center" fileref="images/persistence.api.gif"/></imageobject></mediaobject>
---
>       <mediaobject><imageobject><imagedata  fileref="images/persistence.api.png"/></imageobject></mediaobject>
172c170
<       <listitem>Configure a DataSource in your application server
---
>       <listitem><para>Configure a DataSource in your application server</para>
174c172
<       <listitem>Configure hibernate to use that data source for its connections
---
>       <listitem><para>Configure hibernate to use that data source for its connections</para>
176c174
<       <listitem>Use container managed transactions
---
>       <listitem><para>Use container managed transactions</para>
178c176
<       <listitem>Disable transactions in jBPM
---
>       <listitem><para>Disable transactions in jBPM</para>
191,192c189,191
<     <para>The the most important configuration property to specify in the hibernate.cfg.xml 
<       that is used by jbpm is:
---
>     <para>The the most important configuration property to specify in the <filename>hibernate.cfg.xml</filename> 
>       that is used by jbpm is <property>hibernate.connection.datasource</property>.  Set this to you
>       datasource JNDI name, e.g. java:/DefaultDS
195,196d193
<     <programlisting>hibernate.connection.datasource=  --datasource JNDI name-- like e.g. java:/DefaultDS</programlisting>
< 
221c218
<     <programlisting>JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
---
>     <programlisting language="java">JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
256c253
<     <programlisting>JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
---
>     <programlisting language="java">JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
302c299
<       <programlisting>  &lt;jbpm-context&gt;
---
>       <programlisting language="xml">  &lt;jbpm-context&gt;
320c317
<       <listitem><emphasis role="bold">isTransactionEnabled</emphasis>: by default, jBPM will 
---
>       <listitem><para><emphasis role="bold">isTransactionEnabled</emphasis>: by default, jBPM will 
326c323
<         property to false as in the example above.  This property only controls the behaviour of 
---
>         property to false as in the example above.  This property only controls the behavior of 
330c327
<         <xref linkend="hibernatetransactions" />.
---
>         <xref linkend="hibernatetransactions" />.</para>
332c329
<       <listitem><emphasis role="bold">sessionFactoryJndiName</emphasis>: by default, this
---
>       <listitem><para><emphasis role="bold">sessionFactoryJndiName</emphasis>: by default, this
335c332
<         will be fetched from jndi using the provided JNDI name.
---
>         will be fetched from jndi using the provided JNDI name.</para>
337c334
<       <listitem><emphasis role="bold">dataSourceJndiName</emphasis>: by default, this is
---
>       <listitem><para><emphasis role="bold">dataSourceJndiName</emphasis>: by default, this is
340,341c337,338
<         to hibernate while opening a new session.  For user provided JDBC connections, 
<         see <xref linkend="userprovidedstuff" />.
---
>         to hibernate while opening a new session.  <!--For user provided JDBC connections, 
>         see <xref linkend="userprovidedstuff" />.--></para>
355,356c352
<       <programlisting>&lt;jbpm-configuration&gt;
<   ...
---
>       <programlisting language="xml">&lt;jbpm-configuration&gt;
362d357
<   ...
388c383
<       <para>The hibernate.cfg.xml that ships with jBPM includes the following line:
---
>       <para>The <filename>hibernate.cfg.xml</filename> that ships with jBPM includes the following line:
390,391c385,386
<       <programlisting>&lt;property name="hibernate.cache.provider_class"&gt;org.hibernate.cache.HashtableCacheProvider&lt;/property&gt;</programlisting>
<       <para>This is done to get people up and running as fast as possible without having to worrie about classpaths.
---
>       <programlisting language="xml">&lt;property name="hibernate.cache.provider_class"&gt;org.hibernate.cache.HashtableCacheProvider&lt;/property&gt;</programlisting>
>       <para>This is done to get people up and running as fast as possible without having to worry about classpaths.
396c391
<       your environmment.  Previous incompatibilities between a jboss version and a perticular ehcache version were 
---
>       your environmment.  Previous incompatibilities between a JBoss version and a particular ehcache version were 
427c422
<     <programlisting>  &lt;jbpm-context&gt;
---
>     <programlisting language="xml">  &lt;jbpm-context&gt;
439d433
<     ...
444c438
<       to an XA datasource in case you're using more then 1 resource.  For more information 
---
>       to an XA datasource in case you are using more than one resource.  For more information 
450c444
<     <programlisting>&lt;hibernate-configuration&gt;
---
>     <programlisting language="xml">&lt;hibernate-configuration&gt;
464d457
<     ...
483,484c476
<       <programlisting>&lt;hibernate-configuration&gt;
<   ...
---
>       <programlisting language="xml">&lt;hibernate-configuration&gt;
487d478
<   ...
525c516
<         <listitem>put the jdbc-driver library archive in the classpath
---
>         <listitem><para>put the jdbc-driver library archive in the classpath</para>
527c518
<         <listitem>update the hibernate configuration used by jBPM
---
>         <listitem><para>update the hibernate configuration used by jBPM</para>
529c520
<         <listitem>create the schema in the new database
---
>         <listitem><para>create the schema in the new database</para>
536c527
<       <para>The jbpm.db subproject, contains a number of drivers, instructions and 
---
>       <para>The jbpm.db sub-project, contains a number of drivers, instructions and 
590c581
<     <para>Secondly, this enable you to drop your hibernatable persistent object in to the 
---
>     <para>Secondly, this enable you to drop your Hibernate persistent object in to the 
608c599
<       <listitem>copy the jBPM hibernate mapping file(s) you want to copy from the 
---
>       <listitem><para>copy the jBPM hibernate mapping file(s) you want to copy from the 
610c601
<         jbpm jar.
---
>         jbpm jar.</para>
613c604
<         put the copy anywhere you want on the classpath
---
>         <para>put the copy anywhere you want on the classpath</para>
616,617c607,608
<         update the references to the customized mapping files in the hibernate.cfg.xml 
<         configuration file
---
>         <para>update the references to the customized mapping files in the hibernate.cfg.xml 
>         configuration file</para>
624c615
<     <para>jBPM uses hibernate's second level cache for keeping the process definitions 
---
>     <para>jBPM uses Hibernate's second level cache for keeping the process definitions 
628c619
<     <programlisting>&lt;cache usage="nonstrict-read-write"/&gt;</programlisting>
---
>     <programlisting language="xml">&lt;cache usage="nonstrict-read-write"/&gt;</programlisting>
