bpapez      2005/12/06 13:13:57 CET

  Modified files:
    core/src/webapp/html/startup howto_cluster.html 
  Log:
  update instructions for configuring transaction support
  
  Revision  Changes    Path
  1.18      +96 -43    jahia/core/src/webapp/html/startup/howto_cluster.html
http://jahia.mine.nu:8080/cgi-bin/cvsweb.cgi/jahia/core/src/webapp/html/startup/howto_cluster.html.diff?r1=1.17&r2=1.18&f=h
  
  
  
  Index: howto_cluster.html
  ===================================================================
  RCS file: 
/home/cvs/repository/jahia/core/src/webapp/html/startup/howto_cluster.html,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- howto_cluster.html        5 Dec 2005 16:21:31 -0000       1.17
  +++ howto_cluster.html        6 Dec 2005 12:13:57 -0000       1.18
  @@ -206,7 +206,7 @@
                                                                        
<i>jahia\WEB-INF\etc\spring\applicationcontext-basejahiaconfig.xml</i> file 
:<br/><br/>
                                                                        
                                                                        <i>     
                                                                
  -                                                                     
&lt;prop 
key="org.jahia.services.search.searchIndexRootDir"&gt;J:\SHARED_DIRECTORY\search_indexes&lt;/prop&gt;<br>
  +                                                                     
&lt;prop 
key="org.jahia.services.search.searchIndexRootDir"&gt;J:\SHARED_DIRECTORY\search_indexes&lt;/prop&gt;<br/>
                                                                        
&lt;prop key="org.jahia.services.search.localIndexing"&gt;0&lt;/prop&gt;<br/>
                                                                        &lt;!-- 
1: index, 0: do not index ,just read ( I.E when sharing a same index directory 
in a clustered environment )--&gt;<br/>
                                                                        </i>
  @@ -320,13 +320,29 @@
       <p>Requirements :    </p>
                        <ul>
                          <li>JOTM 2.0.10 available at : <a 
href="http://jotm.objectweb.org/";>http://jotm.objectweb.org/</a></li>
  +                       <li>XA-pool 1.5.0 available at : <a 
href="http://xapool.experlog.com/";>http://xapool.experlog.com/</a></li>         
              
                          <li>Tomcat 5.5 available at : <a 
href="http://jakarta.apache.org/tomcat";>http://jakarta.apache.org/tomcat</a></li>
                          <li> Jahia 5.0 available at : <a 
href="http://www.jahia.net";>http://www.jahia.net</a></li>
                        </ul>
       <p>On Tomcat 5.5 :</p>
                        <ol>
  -                       <li>Install Jahia or make sure you already have a 
configured Jahia installation </li>
  -                       <li>Remove jta*.jar and geronimo-spec-jta*.jar from 
tomcat/webapps/jahia/WEB-INF/lib<br />
  +                       <li>Install Jahia or make sure you already have a 
configured Jahia installation. </br></br>
  +                       <span class="red">If you are using MySQL</span>, you 
have to change the following settings in 
tomcat/webapps/jahia/WEB-INF/var/db/mysql.script <span 
class="red">before</span> Jahia installation : <br /><br />
  +                       Uncomment the following lines:
  +<pre class="code">jahia.database.schemascriptdir = sql/schema/mysql-tx
  +jahia.database.transactions = true
  +jahia.database.hibernate.dialect = org.hibernate.dialect.MySQLInnoDBDialect
  +jahia.transaction_isolation_level = ISOLATION_DEFAULT
  +jahia.nested_transaction_allowed = false</pre><br />             
  +Comment the following lines:
  +<pre class="code">jahia.database.schemascriptdir = sql/schema/mysql
  +jahia.database.transactions = false
  +jahia.database.hibernate.dialect = org.hibernate.dialect.MySQLDialect
  +jahia.transaction_isolation_level = ISOLATION_READ_UNCOMMITTED
  +jahia.nested_transaction_allowed = true</pre>
  +<span class="red">If you are using MySQL 5.x</span>, you should have at 
least <strong>5.0.16</strong> installed, because a bug (<a 
href="http://bugs.mysql.com/bug.php?id=13900";>http://bugs.mysql.com/bug.php?id=13900</a>)
 corrupts our jahia_fields_data table.
  +                       </li>
  +                       <li>After installation remove jta*.jar and 
geronimo-spec-jta*.jar from tomcat/webapps/jahia/WEB-INF/lib<br />
                          </li>
                          <li> From JOTM lib directory, copy the following JARs 
into tomcat/common/lib<br />
                                           <ul>
  @@ -339,15 +355,37 @@
                            <li>jts1_0.jar</li>
                            <li>objectweb-datasource.jar</li>
                            <li>ow_carol.jar</li>
  -                         <li>xapool.jar</li>
  -                                        </ul></li>
  +                                        </ul><br />
  +                                        Get the xapool.jar version 1.5.0 and 
copy it into tomcat/common/lib.<br />
  +                                        <br />                               
           
  +                                        You also have to copy the log4j*.jar 
from tomcat/webapps/jahia/WEB-INF/lib to tomcat/common/lib
  +                                        </li>
  +                       <li> In tomcat/common/classes, add the following file 
:<br />
  +                         <br />
  +                         carol.properties, with the following content 
(without the BEGIN and END lines) : <br />
  +                         <br />
  +                         <pre class="code">-- BEGIN --
  +carol.protocols=jrmp
  +carol.start.jndi=false
  +carol.start.ns=false
  +carol.start.rmi=false
  +carol.jndi.java.naming.factory.url.pkgs=org.apache.naming
  +-- END --</pre>
  +                       </li>                                    
  +                                        <li> In tomcat/conf/server.xml add 
the following lines in the GlobalNamingResources section :
  +                                          <br />
  +                                          <pre class="code">&lt;Resource 
name=&quot;UserTransaction&quot;
  +                auth=&quot;Container&quot;
  +                type=&quot;javax.transaction.UserTransaction&quot;
  +                factory=&quot;org.objectweb.jotm.UserTransactionFactory&quot;
  +                jotm.timeout=&quot;120&quot;/&gt;</pre>
  +                                        </li>
                          <li> In tomcat/conf/Catalina/localhost/jahia.xml, 
uncomment the following lines :<br />
                            <br />
  -                         <pre class="code">&lt;Resource 
name=&quot;UserTransaction&quot; auth=&quot;Container&quot; 
  -          type=&quot;javax.transaction.UserTransaction&quot;
  -          factory=&quot;org.objectweb.jotm.UserTransactionFactory&quot;
  -          jotm.timeout=&quot;60&quot;/&gt;</pre>
  -                         Also change the red line in this part (keep the 
other lines unchanged) :<br />
  +                                          <pre class="code">&lt;ResourceLink 
name=&quot;UserTransaction&quot;
  +                global=&quot;UserTransaction&quot;
  +                type=&quot;javax.transaction.UserTransaction&quot;/&gt;</pre>
  +                         Also change the red line in the 
<strong>jdbc/jetspeed</strong> resource configuration (keep the other lines and 
resource configurations unchanged) :<br />
                            <br /> 
                            <pre class="code">&lt;Resource 
name=&quot;jdbc/jetspeed&quot; auth=&quot;Container&quot;
             <span 
class="red">factory=&quot;org.apache.commons.dbcp.BasicDataSourceFactory&quot;</span>
  @@ -369,14 +407,30 @@
                          <li>In 
tomcat/webapps/jahia/WEB-INF/classes/treecache.xml, uncomment the following 
line : <br />
                              <br />
                            <pre class="code">&lt;attribute 
name=&quot;TransactionManagerLookupClass&quot;&gt;
  -  org.jahia.services.cache.jboss.TomcatTransactionManagerLookup
  +  org.jboss.cache.GenericTransactionManagerLookup
   &lt;/attribute&gt;
   </pre>
                          </li>
  -                       <li> In 
tomcat/webapps/jahia/WEB-INF/etc/spring/applicationcontext-hibernate.xml, 
uncomment the following line :<br />
  +                       <li> In 
tomcat/webapps/jahia/WEB-INF/etc/spring/applicationcontext-services.xml, 
uncomment the following lines :<br />
  +                         <br /> 
  +                         <pre class="code">&lt;bean 
id=&quot;org.jahia.services.cache.CacheProvider&quot;
  +      
class=&quot;org.jahia.services.cache.treecache.TreeCacheProvider&quot;/&gt;</pre>
  +                         and comment the following lines : <br />
  +                         <br />
  +                         <pre class="code">&lt;bean 
id=&quot;org.jahia.services.cache.CacheProvider&quot;
  +      
class=&quot;org.jahia.services.cache.clusterservice.ClusterServiceCacheProvider&quot;&gt;
  +  &lt;property name=&quot;clusterService&quot;&gt;
  +      &lt;ref bean=&quot;ClusterService&quot; /&gt;
  +  &lt;/property&gt;
  +&lt;/bean&gt;</pre>
  +                       </li>                                              
  +                       <li> In 
tomcat/webapps/jahia/WEB-INF/etc/spring/applicationcontext-hibernate.xml, 
uncomment the following lines :<br />
                            <br /> 
                            <pre class="code">&lt;prop 
key=&quot;hibernate.transaction.factory_class&quot;&gt;
     org.hibernate.transaction.JTATransactionFactory
  +&lt;/prop&gt;
  +&lt;prop key=&quot;hibernate.transaction.manager_lookup_class&quot;&gt;
  +  org.hibernate.transaction.JOTMTransactionManagerLookup
   &lt;/prop&gt;</pre>
                          </li>
                          <li> In 
tomcat/webapps/jahia/WEB-INF/etc/spring/applicationcontext-hibernate.xml, 
uncomment the following lines :<br />
  @@ -384,8 +438,11 @@
                            <pre class="code">&lt;bean 
id=&quot;transactionManager&quot; 
         
class=&quot;org.springframework.transaction.jta.JtaTransactionManager&quot;&gt;
     &lt;property name=&quot;userTransactionName&quot;&gt;
  -    java:comp/env/UserTransaction
  +    java:comp/UserTransaction
     &lt;/property&gt;
  +  &lt;property name=&quot;nestedTransactionAllowed&quot;&gt;
  +     &lt;value&gt;false&lt;/value&gt;
  +  &lt;/property&gt;          
   &lt;/bean&gt;</pre>
                            and comment the following lines : <br />
                            <br />
  @@ -399,38 +456,34 @@
     &lt;/property&gt;
   &lt;/bean&gt;</pre>
                          </li>
  -                       <li><span class="red">If you are using MySQL</span>, 
in tomcat/webapps/jahia/WEB-INF/etc/spring/applicationcontext-manager.xml, 
modify the lines in the &quot;txProxyTemplate&quot; to look like this : <br />
  -                         <br />
  -<pre class="code">&lt;property name=&quot;transactionAttributes&quot;&gt;
  -  &lt;props&gt;
  -    &lt;prop 
key=&quot;*&quot;&gt;PROPAGATION_SUPPORTS,+ObjectRetrievalFailureException&lt;/prop&gt;
  -    &lt;prop 
key=&quot;save*&quot;&gt;PROPAGATION_REQUIRED,+ObjectRetrievalFailureException&lt;/prop&gt;
  -    &lt;prop 
key=&quot;create*&quot;&gt;PROPAGATION_REQUIRED,+ObjectRetrievalFailureException&lt;/prop&gt;
  -    &lt;prop 
key=&quot;backup*&quot;&gt;PROPAGATION_REQUIRED,+ObjectRetrievalFailureException&lt;/prop&gt;
  -    &lt;prop 
key=&quot;delete*&quot;&gt;PROPAGATION_REQUIRED,+ObjectRetrievalFailureException&lt;/prop&gt;
  -    &lt;prop 
key=&quot;remove*&quot;&gt;PROPAGATION_REQUIRED,+ObjectRetrievalFailureException&lt;/prop&gt;
  -    &lt;prop 
key=&quot;update*&quot;&gt;PROPAGATION_REQUIRED,+ObjectRetrievalFailureException&lt;/prop&gt;
  -    &lt;prop 
key=&quot;acquire*&quot;&gt;PROPAGATION_REQUIRED,+ObjectRetrievalFailureException&lt;/prop&gt;
  -    &lt;prop 
key=&quot;release*&quot;&gt;PROPAGATION_REQUIRED,+ObjectRetrievalFailureException&lt;/prop&gt;
  -    &lt;prop 
key=&quot;purge*&quot;&gt;PROPAGATION_REQUIRED,+ObjectRetrievalFailureException&lt;/prop&gt;
  -    &lt;prop 
key=&quot;activate*&quot;&gt;PROPAGATION_REQUIRED,+ObjectRetrievalFailureException&lt;/prop&gt;
  -  &lt;/props&gt;
  -&lt;/property&gt;
  -</pre>
  -                       This means that you should remove the 
&quot;,ISOLATION_READ_UNCOMITTED&quot; part on all the lines. <br />
  -                       </li>
  -                       <li> In tomcat/common/classes, add the following file 
:<br />
  +                       <li> In 
tomcat/webapps/jahia/WEB-INF/etc/jetspeed/conf/assembly/transaction.xml, 
uncomment the following lines :<br />
  +                         <br /> 
  +                         <pre class="code">&lt;bean 
id=&quot;transactionManager&quot; 
  +      
class=&quot;org.springframework.transaction.jta.JtaTransactionManager&quot;&gt;
  +  &lt;property name=&quot;userTransactionName&quot;&gt;
  +    java:comp/UserTransaction
  +  &lt;/property&gt;
  +&lt;/bean&gt;</pre>
  +                         and comment the following lines : <br />
                            <br />
  -                         carol.properties, with the following content 
(without the BEGIN and END lines) : <br />
  +                         <pre class="code">&lt;bean 
id=&quot;transactionManager&quot; 
  +      
class=&quot;org.springframework.orm.ojb.PersistenceBrokerTransactionManager&quot;/&gt;</pre>
  +                       </li>                       
  +                       <li>Copy all files from 
tomcat/webapps/jahia/WEB-INF/etc/jetspeed/conf/ojb to 
tomcat/webapps/jahia/WEB-INF/classes<br />
  +                       </li>                                              
  +                       <li> In 
tomcat/webapps/jahia/WEB-INF/etc/config/quartz.properties, comment the 
following line :<br />
  +                         <br /> 
  +                         <pre class="code">org.quartz.jobStore.class = 
org.quartz.impl.jdbcjobstore.JobStoreTX
  +</pre>                         
  +                         and uncomment the following lines : <br />
                            <br />
  -                         <pre class="code">-- BEGIN --
  -carol.protocols=jrmp
  -carol.start.jndi=false
  -carol.start.ns=false
  -carol.start.rmi=false
  -carol.jndi.java.naming.factory.url.pkgs=org.apache.naming
  --- END --</pre>
  -                       </li>
  +                         <pre 
class="code">org.quartz.scheduler.wrapJobExecutionInUserTransaction = true<br/>
  +org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreCMT
  +org.quartz.jobStore.nonManagedTXDataSource = jahiaNonTxDS
  +org.quartz.jobStore.dontSetAutoCommitFalse = true <br/>
  +org.quartz.dataSource.jahiaDS.jndiURL = java:comp/env/jdbc/jetspeed
  +</pre>
  +                       </li>                                              
                        </ol>
     </div>
       <div class="footer">
  

Reply via email to