<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
<section id="JCR.JBossTransactionsService">
  <title>JBossTransactionsService</title>

  <para>JBossTransactionsService implements eXo <link
  linkend="Kernel.TransactionService">TransactionService</link> and provides
  access to <ulink url="http://www.jboss.org/jbosstm/">JBoss Transaction
  Service (JBossTS)</ulink> JTA implementation via eXo container
  dependency.</para>

  <para>TransactionService is used in JCR cache
  <emphasis>org.exoplatform.services.jcr.impl.dataflow.persistent.infinispan.ISPNCacheWorkspaceStorageCache</emphasis>
  implementaion. See <link linkend="JCR.ClusterConfig">Cluster
  configuration</link> for example.</para>

  <section id="JCR.JBossTransactionsService.Configuration">
    <title>Configuration</title>

    <para>Example configuration:</para>

    <programlisting language="xml">&lt;component&gt;
  &lt;key&gt;org.exoplatform.services.transaction.TransactionService&lt;/key&gt;
  &lt;type&gt;org.exoplatform.services.transaction.infinispan.JBossTransactionsService&lt;/type&gt;
  &lt;init-params&gt;
    &lt;value-param&gt;
      &lt;name&gt;timeout&lt;/name&gt;
      &lt;value&gt;3000&lt;/value&gt;
    &lt;/value-param&gt;
  &lt;/init-params&gt;   
&lt;/component&gt;</programlisting>

    <para>timeout - XA transaction timeout in seconds</para>
  </section>
</section>
