[exo-jcr-commits] exo-jcr SVN: r5579 - in jcr/trunk: exo.jcr.component.core.impl.infinispan.v5 and 4 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Tue Feb 7 11:57:41 EST 2012


Author: nfilotto
Date: 2012-02-07 11:57:40 -0500 (Tue, 07 Feb 2012)
New Revision: 5579

Removed:
   jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/assemblies/zip-bundle-assembly.xml
Modified:
   jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/bin/startCacheServer.cmd
   jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/bin/startCacheServer.sh
   jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/pom.xml
   jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/assemblies/binary-assembly.xml
   jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/resources/conf/cache-server-configuration.xml
   jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/resources/conf/distributed-cache-configuration.xml
   jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/modules/kernel/cache.xml
   jcr/trunk/pom.xml
Log:
EXOJCR-1682: Upgrade to ISPN 5.1.1.FINAL, doc, build and scripts reviewed (jcr)

Modified: jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/bin/startCacheServer.cmd
===================================================================
--- jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/bin/startCacheServer.cmd	2012-02-07 16:55:49 UTC (rev 5578)
+++ jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/bin/startCacheServer.cmd	2012-02-07 16:57:40 UTC (rev 5579)
@@ -1 +1,9 @@
-java -Djava.net.preferIPv4Stack=true -Xms128m -Xmx512m -jar exo.jcr.component.core.impl.infinispan.v5-binary.jar %*
+ @echo off
+ setLocal EnableDelayedExpansion
+ set CACHE_SERVER_CP=".
+ for /R ./lib %%a in (*.jar) do (
+   set CACHE_SERVER_CP=!CACHE_SERVER_CP!;%%a
+ )
+ set CACHE_SERVER_CP=!CACHE_SERVER_CP!"
+
+java -Djava.net.preferIPv4Stack=true -Xms128m -Xmx512m -cp %CACHE_SERVER_CP% org.exoplatform.services.jcr.infinispan.CacheServer %*

Modified: jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/bin/startCacheServer.sh
===================================================================
--- jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/bin/startCacheServer.sh	2012-02-07 16:55:49 UTC (rev 5578)
+++ jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/bin/startCacheServer.sh	2012-02-07 16:57:40 UTC (rev 5579)
@@ -1,3 +1,3 @@
 #!/bin/sh
-
-java -Djava.net.preferIPv4Stack=true -Xms128m -Xmx512m -jar exo.jcr.component.core.impl.infinispan.v5-binary.jar $*
+for i in lib/*.jar;do CACHE_SERVER_CP=$CACHE_SERVER_CP:$i;done
+java -Djava.net.preferIPv4Stack=true -Xms128m -Xmx512m -cp .$CACHE_SERVER_CP org.exoplatform.services.jcr.infinispan.CacheServer $*

Modified: jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/pom.xml
===================================================================
--- jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/pom.xml	2012-02-07 16:55:49 UTC (rev 5578)
+++ jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/pom.xml	2012-02-07 16:57:40 UTC (rev 5579)
@@ -354,26 +354,8 @@
                      <descriptors>
                         <descriptor>${basedir}/src/main/assemblies/binary-assembly.xml</descriptor>
                      </descriptors>
-                     <archive>
-                        <manifest>
-                           <mainClass>org.exoplatform.services.jcr.infinispan.CacheServer</mainClass>
-                        </manifest>
-                     </archive>
                   </configuration>
                </execution>
-               <execution>
-                  <id>bundle</id>
-                  <phase>package</phase>
-                  <goals>
-                     <goal>single</goal>
-                  </goals>
-                  <configuration>
-                     <appendAssemblyId>false</appendAssemblyId>
-                     <descriptors>
-                        <descriptor>${basedir}/src/main/assemblies/zip-bundle-assembly.xml</descriptor>
-                     </descriptors>
-                  </configuration>
-               </execution>
             </executions>
          </plugin>
       </plugins>

Modified: jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/assemblies/binary-assembly.xml
===================================================================
--- jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/assemblies/binary-assembly.xml	2012-02-07 16:55:49 UTC (rev 5578)
+++ jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/assemblies/binary-assembly.xml	2012-02-07 16:57:40 UTC (rev 5579)
@@ -18,19 +18,17 @@
     02110-1301 USA, or see the FSF site: http://www.fsf.org.
 
 -->
-<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0" 
-  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
-  <id>binary</id>
-  <formats>
-    <format>jar</format>
-  </formats>
-  <includeBaseDirectory>false</includeBaseDirectory>  
+<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
+   <id>binary</id>
+   <formats>
+      <format>zip</format>
+   </formats>
+   <includeBaseDirectory>false</includeBaseDirectory>
    <dependencySets>
       <dependencySet>
          <outputFileNameMapping>${artifact.artifactId}-${artifact.baseVersion}.${artifact.extension}</outputFileNameMapping>
-         <outputDirectory>/</outputDirectory>
-         <unpack>true</unpack>
+         <outputDirectory>lib</outputDirectory>
          <excludes>
             <exclude>org.jboss.cache:jbosscache-core</exclude>
             <exclude>junit:junit</exclude>
@@ -38,33 +36,41 @@
             <exclude>javax.faces:jsf-api</exclude>
             <exclude>javax.portlet:portlet-api</exclude>
             <exclude>jmock:jmock</exclude>
-            <exclude>org.ow2.jotm:*</exclude>
             <exclude>xdoclet:*</exclude>
             <exclude>org.exoplatform.tool:exo.tool.framework.junit</exclude>
-            <exclude>org.ow2.carol:*</exclude>
-            <exclude>org.ow2.carol.irmi:irmi</exclude>
-            <exclude>org.ow2.spec.ee:ow2-jta-1.1-spec</exclude>
             <exclude>org.jacorb:*</exclude>
             <exclude>quartz:quartz</exclude>
             <exclude>javax.mail:mail</exclude>
             <exclude>com.experlog:xapool</exclude>
             <exclude>antlr:antlr</exclude>
-            <exclude>avalon-framework:avalon-framework</exclude>
-            <exclude>logkit:logkit</exclude>
-            <exclude>org.objectweb.howl:howl</exclude>
             <exclude>org.jboss.javaee:jboss-transaction-api</exclude>
             <exclude>org.jboss:jboss-common-core</exclude>
             <exclude>org.hibernate:*</exclude>
          </excludes>
-      </dependencySet> 
+      </dependencySet>
       <dependencySet>
          <outputFileNameMapping>${artifact.artifactId}-${artifact.baseVersion}.${artifact.extension}</outputFileNameMapping>
-         <outputDirectory>/</outputDirectory>
+         <outputDirectory>lib</outputDirectory>
          <scope>test</scope>
-         <unpack>true</unpack>
          <includes>
-            <include>org.slf4j:slf4j-log4j12</include>       
+            <include>org.slf4j:slf4j-log4j12</include>
          </includes>
-      </dependencySet> 
-    </dependencySets>
+      </dependencySet>
+   </dependencySets>
+   <files>
+      <file>
+         <source>${basedir}/src/main/doc/readme.txt</source>
+         <destName>readme.txt</destName>
+      </file>
+   </files>
+   <fileSets>
+      <fileSet>
+         <directory>${basedir}/bin</directory>
+         <outputDirectory>/</outputDirectory>
+         <includes>
+            <include>*.cmd</include>
+            <include>*.sh</include>
+         </includes>
+      </fileSet>
+   </fileSets>
 </assembly>
\ No newline at end of file

Deleted: jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/assemblies/zip-bundle-assembly.xml
===================================================================
--- jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/assemblies/zip-bundle-assembly.xml	2012-02-07 16:55:49 UTC (rev 5578)
+++ jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/assemblies/zip-bundle-assembly.xml	2012-02-07 16:57:40 UTC (rev 5579)
@@ -1,49 +0,0 @@
-<!--
-
-    Copyright (C) 2009 eXo Platform SAS.
-
-    This is free software; you can redistribute it and/or modify it
-    under the terms of the GNU Lesser General Public License as
-    published by the Free Software Foundation; either version 2.1 of
-    the License, or (at your option) any later version.
-
-    This software is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-    Lesser General Public License for more details.
-
-    You should have received a copy of the GNU Lesser General Public
-    License along with this software; if not, write to the Free
-    Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-    02110-1301 USA, or see the FSF site: http://www.fsf.org.
-
--->
-<assembly xmlns="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0" 
-  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xsi:schemaLocation="http://maven.apache.org/plugins/maven-assembly-plugin/assembly/1.1.0 http://maven.apache.org/xsd/assembly-1.1.0.xsd">
-  <id>bundle</id>
-  <formats>
-    <format>zip</format>
-  </formats>
-  <includeBaseDirectory>false</includeBaseDirectory>
-  <files>
-    <file>
-      <source>target/${project.artifactId}-binary.jar</source>
-      <destName>${project.artifactId}-binary.jar</destName>
-    </file>
-    <file>
-      <source>${basedir}/src/main/doc/readme.txt</source>
-      <destName>readme.txt</destName>
-    </file>
-  </files>
-  <fileSets>
-    <fileSet>
-      <directory>${basedir}/bin</directory>
-      <outputDirectory>/</outputDirectory>
-      <includes>
-        <include>*.cmd</include>
-        <include>*.sh</include>
-      </includes>
-    </fileSet>
-  </fileSets>   
-</assembly>

Modified: jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/resources/conf/cache-server-configuration.xml
===================================================================
--- jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/resources/conf/cache-server-configuration.xml	2012-02-07 16:55:49 UTC (rev 5578)
+++ jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/resources/conf/cache-server-configuration.xml	2012-02-07 16:57:40 UTC (rev 5579)
@@ -33,12 +33,16 @@
 				<description>The parameters of the configuration</description>
 				<property name="configurationFile" value="udp-mux-v3.xml"></property>
 				<property name="invalidationThreshold" value="0"></property>
+				<property name="numOwners" value="3"></property>
+				<property name="numVirtualNodes" value="1"></property>
 			</properties-param>
 			<properties-param profiles="tcp">
 				<name>parameters</name>
 				<description>The parameters of the configuration</description>
 				<property name="configurationFile" value="tcp-mux-v3.xml"></property>
 				<property name="invalidationThreshold" value="-1"></property>
+				<property name="numOwners" value="3"></property>
+				<property name="numVirtualNodes" value="1"></property>
 			</properties-param>
 		</init-params>
 	</component>

Modified: jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/resources/conf/distributed-cache-configuration.xml
===================================================================
--- jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/resources/conf/distributed-cache-configuration.xml	2012-02-07 16:55:49 UTC (rev 5578)
+++ jcr/trunk/exo.jcr.component.core.impl.infinispan.v5/src/main/resources/conf/distributed-cache-configuration.xml	2012-02-07 16:57:40 UTC (rev 5579)
@@ -36,7 +36,7 @@
       <jmxStatistics enabled="true"/>
       <clustering mode="distribution">
       	 <l1 enabled="true" invalidationThreshold="${invalidationThreshold}"/>
-         <hash numOwners="3" rehashRpcTimeout="120000">
+         <hash numOwners="${numOwners}" numVirtualNodes="${numVirtualNodes}" rehashRpcTimeout="120000">
          	<groups enabled="true"/>
          </hash>
          <sync replTimeout="180000"/>
@@ -48,7 +48,7 @@
       <jmxStatistics enabled="true"/>
       <clustering mode="distribution">
          <l1 enabled="true" invalidationThreshold="${invalidationThreshold}"/>
-         <hash numOwners="3" rehashRpcTimeout="120000"/>
+         <hash numOwners="${numOwners}" numVirtualNodes="${numVirtualNodes}" rehashRpcTimeout="120000"/>
          <sync replTimeout="180000"/>
       </clustering>
    </namedCache>

Modified: jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/modules/kernel/cache.xml
===================================================================
--- jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/modules/kernel/cache.xml	2012-02-07 16:55:49 UTC (rev 5578)
+++ jcr/trunk/exo.jcr.docs/exo.jcr.docs.developer/en/src/main/docbook/en-US/modules/kernel/cache.xml	2012-02-07 16:57:40 UTC (rev 5579)
@@ -1797,13 +1797,16 @@
   &lt;init-params&gt;
     &lt;value-param&gt;
       &lt;name&gt;infinispan-configuration&lt;/name&gt;
-      &lt;value&gt;jar:/conf/portal/distributed-cache-configuration.xml&lt;/value&gt;
+      &lt;value&gt;jar:/conf/distributed-cache-configuration.xml&lt;/value&gt;
     &lt;/value-param&gt;
     &lt;properties-param&gt;
       &lt;name&gt;parameters&lt;/name&gt;
       &lt;description&gt;The parameters of the configuration&lt;/description&gt;
-      &lt;property name="infinispan-num-owners" value="1"&gt;&lt;/property&gt;
-    &lt;/properties-param&gt;
+      &lt;property name="configurationFile" value="${gatein.jcr.jgroups.config}"&gt;&lt;/property&gt;
+      &lt;property name="invalidationThreshold" value="0"&gt;&lt;/property&gt;
+      &lt;property name="numOwners" value="3"&gt;&lt;/property&gt;
+      &lt;property name="numVirtualNodes" value="2"&gt;&lt;/property&gt;
+    &lt;/properties-param&gt;     
   &lt;/init-params&gt;
 &lt;/component&gt;</programlisting>
 
@@ -1850,29 +1853,42 @@
         use in case we would like to store the data of some eXo Cache
         instances into a distributed cache.</para>
 
-        <para>See below an example of infinispan configuration with only
-        <emphasis>eXoCache</emphasis> defined:</para>
+        <para>See below an example of infinispan configuration with both
+        <emphasis>eXoCache</emphasis> and <emphasis>JCRCache</emphasis>
+        defined:</para>
 
         <programlisting>&lt;infinispan xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:infinispan:config:5.1 http://www.infinispan.org/schemas/infinispan-config-5.1.xsd"
   xmlns="urn:infinispan:config:5.1"&gt;
    &lt;global&gt;
       &lt;globalJmxStatistics jmxDomain="exo" enabled="true" allowDuplicateDomains="true"/&gt;
-      &lt;transport transportClass="org.infinispan.remoting.transport.jgroups.JGroupsTransport" clusterName="Infinispan-cluster" distributedSyncTimeout="20000"&gt;
-         &lt;properties&gt;
-            &lt;property name="configurationFile" value="udp.xml"/&gt;
-         &lt;/properties&gt;
+      &lt;transport transportClass="org.infinispan.remoting.transport.jgroups.JGroupsTransport" clusterName="JCR-cluster" distributedSyncTimeout="20000"&gt;
+        &lt;properties&gt;
+          &lt;property name="configurationFile" value="${configurationFile}"/&gt;
+        &lt;/properties&gt;
       &lt;/transport&gt;
       &lt;shutdown hookBehavior="DEFAULT"/&gt;
    &lt;/global&gt;
+   &lt;namedCache name="JCRCache"&gt;
+      &lt;locking isolationLevel="READ_COMMITTED" lockAcquisitionTimeout="120000" writeSkewCheck="false" concurrencyLevel="500" useLockStriping="true" /&gt;
+      &lt;transaction transactionManagerLookupClass="org.infinispan.transaction.lookup.GenericTransactionManagerLookup" syncRollbackPhase="true" syncCommitPhase="true" eagerLockSingleNode="true" transactionMode="TRANSACTIONAL"/&gt;
+      &lt;jmxStatistics enabled="true"/&gt;
+      &lt;clustering mode="distribution"&gt;
+        &lt;l1 enabled="true" invalidationThreshold="${invalidationThreshold}"/&gt;
+         &lt;hash numOwners="${numOwners}" numVirtualNodes="${numVirtualNodes}" rehashRpcTimeout="120000"&gt;
+           &lt;groups enabled="true"/&gt;
+         &lt;/hash&gt;
+         &lt;sync replTimeout="180000"/&gt;
+      &lt;/clustering&gt;
+   &lt;/namedCache&gt;
    &lt;namedCache name="eXoCache"&gt;
-      &lt;locking isolationLevel="READ_COMMITTED" lockAcquisitionTimeout="20000" writeSkewCheck="false" concurrencyLevel="500" useLockStriping="true" /&gt;
+      &lt;locking isolationLevel="READ_COMMITTED" lockAcquisitionTimeout="120000" writeSkewCheck="false" concurrencyLevel="500" useLockStriping="true" /&gt;
       &lt;transaction transactionManagerLookupClass="org.infinispan.transaction.lookup.GenericTransactionManagerLookup" syncRollbackPhase="true" syncCommitPhase="true" eagerLockSingleNode="true" transactionMode="TRANSACTIONAL"/&gt;
       &lt;jmxStatistics enabled="true"/&gt;
       &lt;clustering mode="distribution"&gt;
-         &lt;hash numOwners="${infinispan-num-owners}" rehashRpcTimeout="120000" /&gt;
-         &lt;sync/&gt;
+         &lt;l1 enabled="true" invalidationThreshold="${invalidationThreshold}"/&gt;
+         &lt;hash numOwners="${numOwners}" numVirtualNodes="${numVirtualNodes}" rehashRpcTimeout="120000"/&gt;
+         &lt;sync replTimeout="180000"/&gt;
       &lt;/clustering&gt;
-      &lt;invocationBatching enabled="true"/&gt; 
    &lt;/namedCache&gt;
 &lt;/infinispan&gt;</programlisting>
       </section>
@@ -1883,7 +1899,7 @@
         <para>In case you intend to use the distribued mode, you can launch
         external JVM in standalone mode to provide more memory to your current
         cache. To do so, you will need to get the file of type
-        <emphasis>exo.jcr.component.core.impl.infinispan.v5-X.Y.Z-binary.zip</emphasis>
+        <emphasis>exo.jcr.component.core.impl.infinispan.v5-binary.zip</emphasis>
         in which you will find scripts to launch your cache servers. These
         scripts allow optional arguments that are described below:</para>
 
@@ -1951,6 +1967,15 @@
             </tbody>
           </tgroup>
         </table>
+
+        <note>
+          <para>If you intend to use the CacheServer in order to manage some
+          of your eXo Cache instances, don't forget to add the jar files that
+          define both the keys and the values in the lib directory of the
+          CacheServer distribution and restarts your CacheServer instances
+          otherwise the unmarshalling will fail with
+          <emphasis>java.lang.ClassNotFoundException</emphasis>.</para>
+        </note>
       </section>
 
       <section>

Modified: jcr/trunk/pom.xml
===================================================================
--- jcr/trunk/pom.xml	2012-02-07 16:55:49 UTC (rev 5578)
+++ jcr/trunk/pom.xml	2012-02-07 16:57:40 UTC (rev 5579)
@@ -397,12 +397,12 @@
       <dependency>
         <groupId>org.infinispan</groupId>
         <artifactId>infinispan-core</artifactId>
-        <version>5.1.1.CR1</version>
+        <version>5.1.1.FINAL</version>
       </dependency>
       <dependency>
         <groupId>org.infinispan</groupId>
         <artifactId>infinispan-cachestore-jdbc</artifactId>
-        <version>5.1.1.CR1</version>
+        <version>5.1.1.FINAL</version>
       </dependency>
       <dependency>
         <groupId>commons-io</groupId>



More information about the exo-jcr-commits mailing list