[jboss-svn-commits] JBL Code SVN: r18384 - in labs/jbossforums/branches/forums110P26/cache-plugin: output and 16 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Feb 7 13:36:27 EST 2008


Author: sviluppatorefico
Date: 2008-02-07 13:36:27 -0500 (Thu, 07 Feb 2008)
New Revision: 18384

Added:
   labs/jbossforums/branches/forums110P26/cache-plugin/build.bat
   labs/jbossforums/branches/forums110P26/cache-plugin/build.sh
   labs/jbossforums/branches/forums110P26/cache-plugin/build.xml
   labs/jbossforums/branches/forums110P26/cache-plugin/output/
   labs/jbossforums/branches/forums110P26/cache-plugin/output/classes/
   labs/jbossforums/branches/forums110P26/cache-plugin/output/classes/org/
   labs/jbossforums/branches/forums110P26/cache-plugin/output/classes/org/jboss/
   labs/jbossforums/branches/forums110P26/cache-plugin/output/classes/org/jboss/portlet/
   labs/jbossforums/branches/forums110P26/cache-plugin/output/classes/org/jboss/portlet/forums/
   labs/jbossforums/branches/forums110P26/cache-plugin/output/classes/org/jboss/portlet/forums/util/
   labs/jbossforums/branches/forums110P26/cache-plugin/output/classes/org/jboss/portlet/forums/util/cache/
   labs/jbossforums/branches/forums110P26/cache-plugin/output/classes/org/jboss/portlet/forums/util/cache/AbstractJBossService.class
   labs/jbossforums/branches/forums110P26/cache-plugin/output/classes/org/jboss/portlet/forums/util/cache/JBossTreeCacheProvider.class
   labs/jbossforums/branches/forums110P26/cache-plugin/output/classes/org/jboss/portlet/forums/util/cache/JBossTreeCacheProviderMBean.class
   labs/jbossforums/branches/forums110P26/cache-plugin/output/classes/org/jboss/portlet/forums/util/cache/JMXTreeCacheProvider.class
   labs/jbossforums/branches/forums110P26/cache-plugin/output/classes/org/jboss/portlet/forums/util/cache/TreeCacheProvider.class
   labs/jbossforums/branches/forums110P26/cache-plugin/output/gen/
   labs/jbossforums/branches/forums110P26/cache-plugin/output/gen/classes/
   labs/jbossforums/branches/forums110P26/cache-plugin/output/lib/
   labs/jbossforums/branches/forums110P26/cache-plugin/output/lib/forums-cache-plugin.jar
   labs/jbossforums/branches/forums110P26/cache-plugin/output/lib/portal-forums-cache-plugin.sar
   labs/jbossforums/branches/forums110P26/cache-plugin/output/resources/
   labs/jbossforums/branches/forums110P26/cache-plugin/output/resources/forums-cache-plugin.sar/
   labs/jbossforums/branches/forums110P26/cache-plugin/output/resources/forums-cache-plugin.sar/META-INF/
   labs/jbossforums/branches/forums110P26/cache-plugin/output/resources/forums-cache-plugin.sar/META-INF/jboss-service.xml
   labs/jbossforums/branches/forums110P26/cache-plugin/src/resources/
   labs/jbossforums/branches/forums110P26/cache-plugin/src/resources/forums-cache-plugin.sar/
   labs/jbossforums/branches/forums110P26/cache-plugin/src/resources/forums-cache-plugin.sar/META-INF/
   labs/jbossforums/branches/forums110P26/cache-plugin/src/resources/forums-cache-plugin.sar/META-INF/jboss-service.xml
Log:
plugin for clusterized forums. It contains jboss cache implementation and a JMX service

Added: labs/jbossforums/branches/forums110P26/cache-plugin/build.bat
===================================================================
--- labs/jbossforums/branches/forums110P26/cache-plugin/build.bat	                        (rev 0)
+++ labs/jbossforums/branches/forums110P26/cache-plugin/build.bat	2008-02-07 18:36:27 UTC (rev 18384)
@@ -0,0 +1,54 @@
+ at echo off
+rem
+rem  Invokes a script of the same name in the 'tools' module.
+rem  
+rem  The 'tools' module is expected to be a peer directory of the directory
+rem  in which this script lives.
+rem
+rem  @author Jason Dillon <jason at planet57.com>
+rem
+
+rem $Id: build.bat,v 1.1.1.1 2005/01/14 23:12:37 vietj Exp $
+
+setlocal
+
+set PROGNAME=%~nx0
+set DIRNAME=%~dp0
+
+rem Legacy shell support
+if x%PROGNAME%==x set PROGNAME=build.bat
+if x%DIRNAME%==x set DIRNAME=.\
+
+set MODULE_ROOT=%DIRNAME%
+if x%TOOLS_ROOT%==x set TOOLS_ROOT=%DIRNAME%..\tools
+set TARGET=%TOOLS_ROOT%\bin\build.bat
+set ARGS=%*
+
+rem Start'er up yo
+goto main
+
+:debug
+if not x%DEBUG%==x echo %PROGNAME%: %*
+goto :EOF
+
+:main
+call :debug PROGNAME=%PROGNAME%
+call :debug DIRNAME=%DIRNAME%
+call :debug TOOLS_ROOT=%TOOLS_ROOT%
+call :debug TARGET=%TARGET%
+
+if exist %TARGET% call :call-script & goto :EOF
+rem else fail, we can not go on
+
+echo %PROGNAME%: *ERROR* The target executable does not exist:
+echo %PROGNAME%:
+echo %PROGNAME%:    %TARGET%
+echo %PROGNAME%:
+echo %PROGNAME%: Please make sure you have checked out the 'tools' module
+echo %PROGNAME%: and make sure it is up to date.
+goto :EOF
+
+:call-script
+call :debug Executing %TARGET% %ARGS%
+call %TARGET% %ARGS%
+goto :EOF


Property changes on: labs/jbossforums/branches/forums110P26/cache-plugin/build.bat
___________________________________________________________________
Name: svn:executable
   + *

Added: labs/jbossforums/branches/forums110P26/cache-plugin/build.sh
===================================================================
--- labs/jbossforums/branches/forums110P26/cache-plugin/build.sh	                        (rev 0)
+++ labs/jbossforums/branches/forums110P26/cache-plugin/build.sh	2008-02-07 18:36:27 UTC (rev 18384)
@@ -0,0 +1,49 @@
+#!/bin/sh
+##
+##  Invokes a script of the same name in the 'tools' module.
+##  
+##  The 'tools' module is expected to be a peer directory of the directory
+##  in which this script lives.
+##
+##  @author Jason Dillon <jason at planet57.com>
+##
+
+# $Id: build.sh,v 1.1.1.1 2005/01/14 23:12:37 vietj Exp $
+
+PROGNAME=`basename $0`
+DIRNAME=`dirname $0`
+
+# Buss it yo
+main() {
+    if [ "x$TOOLS_ROOT" = "x" ]; then
+	TOOLS_ROOT=`cd $DIRNAME/../tools && pwd`
+    fi
+
+    MODULE_ROOT=`cd $DIRNAME; pwd`
+    export TOOLS_ROOT MODULE_ROOT DEBUG TRACE
+
+    # Where is the target script?
+    target="$TOOLS_ROOT/bin/$PROGNAME"
+    if [ ! -f "$target" ]; then
+	echo "${PROGNAME}: *ERROR* The target executable does not exist:"
+        echo "${PROGNAME}:"
+        echo "${PROGNAME}:    $target"
+        echo "${PROGNAME}:"
+	echo "${PROGNAME}: Please make sure you have checked out the 'tools' module"
+	echo "${PROGNAME}: and make sure it is up to date."
+        exit 2
+    fi
+
+    # Get busy yo!
+    if [ "x$DEBUG" != "x" ]; then
+	echo "${PROGNAME}: Executing: /bin/sh $target $@"
+    fi
+    if [ "x$TRACE" = "x" ]; then
+	exec /bin/sh $target "$@"
+    else
+	exec /bin/sh -x $target "$@"
+    fi
+}
+
+# Lets get ready to rumble!
+main "$@"


Property changes on: labs/jbossforums/branches/forums110P26/cache-plugin/build.sh
___________________________________________________________________
Name: svn:executable
   + *

Added: labs/jbossforums/branches/forums110P26/cache-plugin/build.xml
===================================================================
--- labs/jbossforums/branches/forums110P26/cache-plugin/build.xml	                        (rev 0)
+++ labs/jbossforums/branches/forums110P26/cache-plugin/build.xml	2008-02-07 18:36:27 UTC (rev 18384)
@@ -0,0 +1,227 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE project [
+   <!ENTITY buildmagic SYSTEM "../tools/etc/buildfragments/buildmagic.ent">
+   <!ENTITY tools      SYSTEM "../tools/etc/buildfragments/tools.ent">
+   <!ENTITY libraries  SYSTEM "../tools/etc/buildfragments/libraries.ent">
+   <!ENTITY modules    SYSTEM "../tools/etc/buildfragments/modules.ent">
+   <!ENTITY defaults   SYSTEM "../tools/etc/buildfragments/defaults.ent">
+   <!ENTITY targets    SYSTEM "../tools/etc/buildfragments/targets.ent">
+   ]>
+
+<!-- $Id: build.xml,v 1.13 2005/11/05 15:02:50 bdaw Exp $ -->
+
+<!--+======================================================================+-->
+<!--| JBoss Portal (The OpenSource Portal) Build File                      |-->
+<!--|                                                                      |-->
+<!--| Distributable under LGPL license.                                    |-->
+<!--| See terms of license at http://www.gnu.org.                          |-->
+<!--|                                                                      |-->
+<!--| This file has been designed to work with the 'tools' module and      |-->
+<!--| Buildmagic extentions.                                               |-->
+<!--+======================================================================+-->
+
+<project default="main" name="Forums Cache Plugin based on JBoss Cache">
+
+	<!--+====================================================================+-->
+   <!--| Setup                                                              |-->
+   <!--|                                                                    |-->
+   <!--| Include the common build elements.                                 |-->
+   <!--|                                                                    |-->
+   <!--| This defines several different targets, properties and paths.      |-->
+   <!--| It also sets up the basic extention tasks amoung other things.     |-->
+   <!--+====================================================================+-->
+
+   &buildmagic;
+   &libraries;
+   &modules;
+   &defaults;
+   &tools;
+   &targets;
+
+   
+         
+   <!-- ================================================================== -->
+   <!-- Initialization                                                     -->
+   <!-- ================================================================== -->
+
+   <!--
+     | Initialize the build system.  Must depend on '_buildmagic:init'.
+     | Other targets should depend on 'init' or things will mysteriously fail.
+   -->
+
+   <target name="init" unless="init.disable" depends="_buildmagic:init">
+      <available file="${forums.lib}" type="dir"/>
+   </target>
+
+   <!--+====================================================================+-->
+   <!--| Configuration                                                      |-->
+   <!--|                                                                    |-->
+   <!--| This target is invoked by the Buildmagic initialization logic      |-->
+   <!--| and should contain module specific configuration elements.         |-->
+   <!--+====================================================================+-->
+
+   <target name="configure" unless="configure.disable">
+
+	  <!-- Configure some properties -->
+      <property name="jndi-root" value="portal"/>
+
+      <!-- Configure thirdparty libraries -->
+      <call target="configure-libraries"/>
+		<path id="library.classpath">	        
+			<path refid="jboss.cache.classpath"/>				        
+			<path refid="jgroups.classpath"/>
+			<path refid="jboss.system.classpath"/>					
+			<path refid="jboss.hibernate.classpath"/>						
+			<path refid="jakarta.log4j.classpath"/>									
+			<path refid="jboss.j2ee.classpath"/>		
+		</path>
+
+      <!-- Configure modules -->
+      <call target="configure-modules"/>
+	
+	    <!-- removing all src level dependency on portal....helps with building
+	    the forum application that upgrades easier across portal releases -->
+		<path id="dependentmodule.classpath">
+			<path refid="forums.classpath"/>
+			<!--path refid="jboss.portal-format.classpath"/>
+			<path refid="jboss.portal-common.classpath"/>
+			<path refid="jboss.portal-portlet.classpath"/>
+			<path refid="jboss.portal-server.classpath"/>
+			<path refid="jboss.portlet-api.classpath"/>
+			<path refid="jboss.hibernate.classpath"/-->
+		</path>
+
+      <!--+=======================================+-->
+      <!--| Override any default properties here. |-->
+      <!--+=======================================+-->
+
+      <!-- Configure defaults & build tools -->
+      <call target="configure-defaults"/>
+		<call target="configure-tools"/>
+
+      <!--+=======================================+-->
+      <!--| Define module specific elements here. |-->
+      <!--+=======================================+-->
+      <property name="javadoc.private" value="true"/>
+		<property name="javadoc.protected" value="false"/>
+
+	</target>
+
+
+   <!--+====================================================================+-->
+   <!--| Compile                                                            |-->
+   <!--|                                                                    |-->
+   <!--| This target should depend on other compile-* targets for each      |-->
+   <!--| different type of compile that needs to be performed, short of     |-->
+   <!--| documentation compiles.                                            |-->
+   <!--+====================================================================+-->
+
+   <target name="compile" description="Compile all source files." depends="generate-classes,
+               _default:compile-classes,
+               _default:compile-etc,
+               _default:compile-resources">		
+	</target>
+
+   <!-- Generate all class files -->
+   <target name="generate-classes" depends="init">
+	</target>
+
+   <!-- Remove or change the delimiter in hibernate-export if your database has a different deliniter -->
+   <target name="ddl" depends="output">		
+	</target>
+
+   <!--+====================================================================+-->
+   <!--| Generate Output                                                    |-->
+   <!--|                                                                    |-->
+   <!--| Generates the target output for this module. Target output is      |-->
+   <!--| the output which is ment to be released or used by external        |-->
+   <!--| modules.                                                           |-->
+   <!--+====================================================================+-->
+
+   <target name="output" description="Generate all target output." depends="compile">
+
+	  <mkdir dir="${build.lib}"/>
+
+      <!-- forums-cache-plugin.jar -->
+      <jar jarfile="${build.lib}/forums-cache-plugin.jar">
+			<fileset dir="${build.classes}"/>
+	  </jar>
+
+      <!-- forums-cache-plugin.sar -->
+      <jar jarfile="${build.lib}/portal-forums-cache-plugin.sar">
+		<!-- forums-cache-plugin.jar -->
+		<fileset dir="${build.lib}" includes="*.jar"/>
+		<!-- sar configuration files -->
+		<fileset dir="${build.resources}/forums-cache-plugin.sar"/>
+      </jar>    
+              
+         <!-- Luca Stancapiano - 30 gen 2008 - I added theese six 
+              rows to achieve complete create for jboss-forums-ha.ear -->
+         <copy todir="${forums.root}/resources/portal-forums-ha-ear">
+		<fileset dir="${build.lib}" includes="portal-forums-cache-plugin.sar"/>
+         </copy>
+         <jar jarfile="${forums.lib}/jboss-forums-ha.ear">
+		<fileset dir="${forums.root}/resources/portal-forums-ha-ear" includes="**/*"/>
+         </jar>
+      
+         <!-- end patch 7 apr 2007 -->
+      
+	</target>
+
+	<target name="explode" depends="init">
+		<explode file="${build.lib}/portal-forums-cache-plugin.sar" todir="${build.lib}" name="portal-forums-cache-plugin-exploded.sar"/>
+	</target>
+
+   <!-- ================================================================== -->
+   <!-- Cleaning                                                           -->
+   <!-- ================================================================== -->
+
+   <!-- Clean up all build output -->
+   <target name="clean" depends="_default:clean">
+		<!-- Add module specific elements here. -->
+	</target>
+
+   <!--+====================================================================+-->
+   <!--| Documents                                                          |-->
+   <!--|                                                                    |-->
+   <!--| Generate all documentation for this module.                        |-->
+   <!--+====================================================================+-->
+
+   <target name="docs" depends="_default:docs">
+		<!-- Add module specific elements here. -->
+	</target>
+
+   <!-- ================================================================== -->
+   <!-- Misc.                                                              -->
+   <!-- ================================================================== -->
+
+   <target name="main" depends="most"/>
+	<target name="all" depends="_default:all"/>
+	<target name="most" depends="_default:most"/>
+	<target name="help" depends="_default:help"/>
+
+   <!-- ================================================================== -->
+   <!-- Deployment                                                         -->
+   <!-- ================================================================== -->
+
+   <!--
+     | Deploy the application
+   -->
+   <target name="deploy" description="Deploy." depends="output">
+		<!--<require file="${jboss.home}/server/${portal.deploy.dir}/deploy"/>
+		<copy file="${build.lib}/portal-forums-cache-plugin.sar" todir="${jboss.home}/server/${portal.deploy.dir}/deploy"/>-->
+		<require file="../forums/output/lib"/>
+		<copy file="${build.lib}/portal-forums-cache-plugin.sar" todir="../forums/output/lib/"/>
+	</target>
+
+   <!--
+     | Undeploy the application
+   -->
+   <target name="undeploy" description="Undeploy." depends="init">
+		<require file="${jboss.home}/server/${portal.deploy.dir}/deploy"/>
+		<delete file="${jboss.home}/server/${portal.deploy.dir}/deploy/portal-forums-cache-plugin.sar"/>		
+	</target>
+
+	<target name="test" depends="init">
+	</target>
+</project>


Property changes on: labs/jbossforums/branches/forums110P26/cache-plugin/build.xml
___________________________________________________________________
Name: svn:executable
   + *

Added: labs/jbossforums/branches/forums110P26/cache-plugin/output/classes/org/jboss/portlet/forums/util/cache/AbstractJBossService.class
===================================================================
(Binary files differ)


Property changes on: labs/jbossforums/branches/forums110P26/cache-plugin/output/classes/org/jboss/portlet/forums/util/cache/AbstractJBossService.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbossforums/branches/forums110P26/cache-plugin/output/classes/org/jboss/portlet/forums/util/cache/JBossTreeCacheProvider.class
===================================================================
(Binary files differ)


Property changes on: labs/jbossforums/branches/forums110P26/cache-plugin/output/classes/org/jboss/portlet/forums/util/cache/JBossTreeCacheProvider.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbossforums/branches/forums110P26/cache-plugin/output/classes/org/jboss/portlet/forums/util/cache/JBossTreeCacheProviderMBean.class
===================================================================
(Binary files differ)


Property changes on: labs/jbossforums/branches/forums110P26/cache-plugin/output/classes/org/jboss/portlet/forums/util/cache/JBossTreeCacheProviderMBean.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbossforums/branches/forums110P26/cache-plugin/output/classes/org/jboss/portlet/forums/util/cache/JMXTreeCacheProvider.class
===================================================================
(Binary files differ)


Property changes on: labs/jbossforums/branches/forums110P26/cache-plugin/output/classes/org/jboss/portlet/forums/util/cache/JMXTreeCacheProvider.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbossforums/branches/forums110P26/cache-plugin/output/classes/org/jboss/portlet/forums/util/cache/TreeCacheProvider.class
===================================================================
(Binary files differ)


Property changes on: labs/jbossforums/branches/forums110P26/cache-plugin/output/classes/org/jboss/portlet/forums/util/cache/TreeCacheProvider.class
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbossforums/branches/forums110P26/cache-plugin/output/lib/forums-cache-plugin.jar
===================================================================
(Binary files differ)


Property changes on: labs/jbossforums/branches/forums110P26/cache-plugin/output/lib/forums-cache-plugin.jar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbossforums/branches/forums110P26/cache-plugin/output/lib/portal-forums-cache-plugin.sar
===================================================================
(Binary files differ)


Property changes on: labs/jbossforums/branches/forums110P26/cache-plugin/output/lib/portal-forums-cache-plugin.sar
___________________________________________________________________
Name: svn:mime-type
   + application/octet-stream

Added: labs/jbossforums/branches/forums110P26/cache-plugin/output/resources/forums-cache-plugin.sar/META-INF/jboss-service.xml
===================================================================
--- labs/jbossforums/branches/forums110P26/cache-plugin/output/resources/forums-cache-plugin.sar/META-INF/jboss-service.xml	                        (rev 0)
+++ labs/jbossforums/branches/forums110P26/cache-plugin/output/resources/forums-cache-plugin.sar/META-INF/jboss-service.xml	2008-02-07 18:36:27 UTC (rev 18384)
@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+<!-- generic TreeCache to let a portable clustering to forums -->
+<mbean code="org.jboss.cache.TreeCache"
+   	name="forums:service=TreeCache,type=hibernate">
+   	<depends>jboss:service=Naming</depends>
+   	<depends>jboss:service=TransactionManager</depends>
+
+   	<attribute name="TransactionManagerLookupClass">
+   		org.jboss.cache.JBossTransactionManagerLookup
+   	</attribute>
+
+   	<attribute name="NodeLockingScheme">OPTIMISTIC</attribute>
+   	<attribute name="IsolationLevel">REPEATABLE_READ</attribute>
+
+   	<attribute name="CacheMode">REPL_SYNC</attribute>
+
+   	<attribute name="ClusterName">
+   		ForumsPartition
+   	</attribute>
+
+   	<attribute name="InitialStateRetrievalTimeout">17500</attribute>
+
+   	<attribute name="SyncReplTimeout">17500</attribute>
+
+   	<attribute name="LockAcquisitionTimeout">15000</attribute>
+
+
+   	<attribute name="EvictionPolicyClass">
+   		org.jboss.cache.eviction.LRUPolicy
+   	</attribute>
+   	<attribute name="EvictionPolicyConfig">
+   		<config>
+   			<attribute name="wakeUpIntervalSeconds">5</attribute>
+
+   			<region name="/_default_">
+   				<attribute name="maxNodes">5000</attribute>
+   				<attribute name="timeToLiveSeconds">1000</attribute>
+   			</region>
+   		</config>
+   	</attribute>
+
+   	<attribute name="ClusterConfig">
+   		<config>
+   			<UDP
+   				mcast_addr="${jboss.partition.udpGroup:239.11.12.13}"
+   				mcast_port="${portal.hibernate.cache.udpPort:23457}" tos="8"
+   				ucast_recv_buf_size="20000000" ucast_send_buf_size="640000"
+   				mcast_recv_buf_size="25000000" mcast_send_buf_size="640000"
+   				loopback="false" discard_incompatible_packets="true"
+   				enable_bundling="false" max_bundle_size="64000"
+   				max_bundle_timeout="30" use_incoming_packet_handler="true"
+   				use_outgoing_packet_handler="false"
+   				ip_ttl="${jgroups.udp.ip_ttl:2}" down_thread="false"
+   				up_thread="false" />
+   			<PING timeout="2000" down_thread="false"
+   				up_thread="false" num_initial_members="3" />
+   			<MERGE2 max_interval="100000" down_thread="false"
+   				up_thread="false" min_interval="20000" />
+   			<FD_SOCK down_thread="false" up_thread="false" />
+   			<FD timeout="10000" max_tries="5" down_thread="false"
+   				up_thread="false" shun="true" />
+   			<VERIFY_SUSPECT timeout="1500" down_thread="false"
+   				up_thread="false" />
+   			<pbcast.NAKACK max_xmit_size="60000"
+   				use_mcast_xmit="false" gc_lag="0"
+   				retransmit_timeout="300,600,1200,2400,4800" down_thread="false"
+   				up_thread="false" discard_delivered_msgs="true" />
+   			<UNICAST timeout="300,600,1200,2400,3600"
+   				down_thread="false" up_thread="false" />
+   			<pbcast.STABLE stability_delay="1000"
+   				desired_avg_gossip="50000" down_thread="false" up_thread="false"
+   				max_bytes="400000" />
+   			<pbcast.GMS print_local_addr="true" join_timeout="3000"
+   				down_thread="false" up_thread="false" join_retry_timeout="2000"
+   				shun="true" view_bundling="true" />
+   			<FRAG2 frag_size="60000" down_thread="false"
+   				up_thread="false" />
+   			<pbcast.STATE_TRANSFER down_thread="false"
+   				up_thread="false" use_flush="false" />
+   		</config>
+   	</attribute>
+</mbean>
+
+<!-- service to configure cluster of forums through JMX -->
+<mbean code="org.jboss.portlet.forums.util.cache.JBossTreeCacheProvider"
+   	name="forums:service=TreeCacheProvider,type=hibernate">
+   	<depends optional-attribute-name="CacheName">
+   		forums:service=TreeCache,type=hibernate
+   	</depends>
+</mbean>
+
+</server>

Added: labs/jbossforums/branches/forums110P26/cache-plugin/src/resources/forums-cache-plugin.sar/META-INF/jboss-service.xml
===================================================================
--- labs/jbossforums/branches/forums110P26/cache-plugin/src/resources/forums-cache-plugin.sar/META-INF/jboss-service.xml	                        (rev 0)
+++ labs/jbossforums/branches/forums110P26/cache-plugin/src/resources/forums-cache-plugin.sar/META-INF/jboss-service.xml	2008-02-07 18:36:27 UTC (rev 18384)
@@ -0,0 +1,93 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<server>
+<!-- generic TreeCache to let a portable clustering to forums -->
+<mbean code="org.jboss.cache.TreeCache"
+   	name="forums:service=TreeCache,type=hibernate">
+   	<depends>jboss:service=Naming</depends>
+   	<depends>jboss:service=TransactionManager</depends>
+
+   	<attribute name="TransactionManagerLookupClass">
+   		org.jboss.cache.JBossTransactionManagerLookup
+   	</attribute>
+
+   	<attribute name="NodeLockingScheme">OPTIMISTIC</attribute>
+   	<attribute name="IsolationLevel">REPEATABLE_READ</attribute>
+
+   	<attribute name="CacheMode">REPL_SYNC</attribute>
+
+   	<attribute name="ClusterName">
+   		ForumsPartition
+   	</attribute>
+
+   	<attribute name="InitialStateRetrievalTimeout">17500</attribute>
+
+   	<attribute name="SyncReplTimeout">17500</attribute>
+
+   	<attribute name="LockAcquisitionTimeout">15000</attribute>
+
+
+   	<attribute name="EvictionPolicyClass">
+   		org.jboss.cache.eviction.LRUPolicy
+   	</attribute>
+   	<attribute name="EvictionPolicyConfig">
+   		<config>
+   			<attribute name="wakeUpIntervalSeconds">5</attribute>
+
+   			<region name="/_default_">
+   				<attribute name="maxNodes">5000</attribute>
+   				<attribute name="timeToLiveSeconds">1000</attribute>
+   			</region>
+   		</config>
+   	</attribute>
+
+   	<attribute name="ClusterConfig">
+   		<config>
+   			<UDP
+   				mcast_addr="${jboss.partition.udpGroup:239.11.12.13}"
+   				mcast_port="${portal.hibernate.cache.udpPort:23457}" tos="8"
+   				ucast_recv_buf_size="20000000" ucast_send_buf_size="640000"
+   				mcast_recv_buf_size="25000000" mcast_send_buf_size="640000"
+   				loopback="false" discard_incompatible_packets="true"
+   				enable_bundling="false" max_bundle_size="64000"
+   				max_bundle_timeout="30" use_incoming_packet_handler="true"
+   				use_outgoing_packet_handler="false"
+   				ip_ttl="${jgroups.udp.ip_ttl:2}" down_thread="false"
+   				up_thread="false" />
+   			<PING timeout="2000" down_thread="false"
+   				up_thread="false" num_initial_members="3" />
+   			<MERGE2 max_interval="100000" down_thread="false"
+   				up_thread="false" min_interval="20000" />
+   			<FD_SOCK down_thread="false" up_thread="false" />
+   			<FD timeout="10000" max_tries="5" down_thread="false"
+   				up_thread="false" shun="true" />
+   			<VERIFY_SUSPECT timeout="1500" down_thread="false"
+   				up_thread="false" />
+   			<pbcast.NAKACK max_xmit_size="60000"
+   				use_mcast_xmit="false" gc_lag="0"
+   				retransmit_timeout="300,600,1200,2400,4800" down_thread="false"
+   				up_thread="false" discard_delivered_msgs="true" />
+   			<UNICAST timeout="300,600,1200,2400,3600"
+   				down_thread="false" up_thread="false" />
+   			<pbcast.STABLE stability_delay="1000"
+   				desired_avg_gossip="50000" down_thread="false" up_thread="false"
+   				max_bytes="400000" />
+   			<pbcast.GMS print_local_addr="true" join_timeout="3000"
+   				down_thread="false" up_thread="false" join_retry_timeout="2000"
+   				shun="true" view_bundling="true" />
+   			<FRAG2 frag_size="60000" down_thread="false"
+   				up_thread="false" />
+   			<pbcast.STATE_TRANSFER down_thread="false"
+   				up_thread="false" use_flush="false" />
+   		</config>
+   	</attribute>
+</mbean>
+
+<!-- service to configure cluster of forums through JMX -->
+<mbean code="org.jboss.portlet.forums.util.cache.JBossTreeCacheProvider"
+   	name="forums:service=TreeCacheProvider,type=hibernate">
+   	<depends optional-attribute-name="CacheName">
+   		forums:service=TreeCache,type=hibernate
+   	</depends>
+</mbean>
+
+</server>


Property changes on: labs/jbossforums/branches/forums110P26/cache-plugin/src/resources/forums-cache-plugin.sar/META-INF/jboss-service.xml
___________________________________________________________________
Name: svn:executable
   + *




More information about the jboss-svn-commits mailing list