[Jboss-cvs] JBossAS SVN: r56341 - branches/Branch_4_0/messaging/src/etc/server/examples/deploy/standalone

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Aug 28 10:34:42 EDT 2006


Author: luc.texier at jboss.com
Date: 2006-08-28 10:34:39 -0400 (Mon, 28 Aug 2006)
New Revision: 56341

Added:
   branches/Branch_4_0/messaging/src/etc/server/examples/deploy/standalone/cluster-service.xml
Modified:
   branches/Branch_4_0/messaging/src/etc/server/examples/deploy/standalone/build.xml
   branches/Branch_4_0/messaging/src/etc/server/examples/deploy/standalone/jboss-service.xml
Log:
JBAS-3575 added new target for standalone HA-JMS

Modified: branches/Branch_4_0/messaging/src/etc/server/examples/deploy/standalone/build.xml
===================================================================
--- branches/Branch_4_0/messaging/src/etc/server/examples/deploy/standalone/build.xml	2006-08-28 13:35:53 UTC (rev 56340)
+++ branches/Branch_4_0/messaging/src/etc/server/examples/deploy/standalone/build.xml	2006-08-28 14:34:39 UTC (rev 56341)
@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="UTF-8"?>
+<?xml version="1.0" encoding="UTF-8"?>
 <!-- This is an Ant build script that creates a minimal jbossmq
 configuration based on the default configuration
 -->
@@ -9,8 +9,13 @@
    -->
    <property name="jboss.dist" value="../../../.."/>
 
-   <target name="config">
- 
+
+   <target name="common">
+
+     <!-- get rid of any existing folder -->
+     <delete dir="${jboss.dist}/server/jbossmq"/>
+
+
      <!-- We are mainly based on the minimal configuration -->
       <copy todir="${jboss.dist}/server/jbossmq">
          <fileset dir="${jboss.dist}/server/minimal">
@@ -27,9 +32,6 @@
             <include name="conf/xmdesc/*"/>
             <!-- the main jboss jar -->
             <include name="lib/jboss.jar"/>
-            <!-- remoting -->
-            <include name="lib/jboss-remoting.jar"/>
-            <include name="lib/jboss-serialization.jar"/>
             <!-- jaas -->
             <include name="lib/jbosssx.jar"/>
             <!-- transactions -->
@@ -43,6 +45,26 @@
             <include name="deploy/jbossjca-service.xml"/>
             <include name="deploy/jboss-local-jdbc.rar"/>
             <include name="conf/standardjbosscmp-jdbc.xml"/>
+         </fileset>
+     </copy>
+     
+     
+      <copy todir="${jboss.dist}/server/jbossmq/conf/" overwrite="true">
+         <fileset dir="${jboss.dist}/docs/examples/jms/standalone">
+            <include name="jboss-service.xml"/>
+         </fileset>
+      </copy>
+      
+           
+   </target>
+   
+   
+   <target name="config" depends="common">
+ 
+     <!-- We need the following from the default configuration -->
+      <copy todir="${jboss.dist}/server/jbossmq">
+         <fileset dir="${jboss.dist}/server/default">
+
             <!-- hypersonic -->
             <include name="lib/hsqldb*"/>
             <include name="deploy/hsqldb-ds.xml"/>
@@ -56,12 +78,47 @@
          </fileset>
       </copy>
 
-      <!-- This is our main configuration -->
-      <copy todir="${jboss.dist}/server/jbossmq/conf/">
+   </target>
+   
+   <target name="config-all" depends="common">
+        
+ 
+     <!-- We need the following from the all configuration -->
+      <copy todir="${jboss.dist}/server/jbossmq">
+         <fileset dir="${jboss.dist}/server/all">
+            
+            <!-- hypersonic -->
+            <include name="lib/hsqldb*"/>
+            <include name="deploy/hsqldb-ds.xml"/>
+            <include name="deploy-hasingleton/jms/hsqldb-jdbc2-service.xml"/>
+            <include name="deploy-hasingleton/jms/hsqldb-jdbc-state-service.xml"/>
+            <!-- jbossmq -->
+            <include name="lib/jbossmq.jar"/>
+            <include name="deploy-hasingleton/jms/jbossmq-service.xml"/>
+            <include name="deploy-hasingleton/jms/jbossmq-destinations-service.xml"/>
+            <include name="deploy-hasingleton/jms/uil2-service.xml"/>
+            <!-- clustering -->
+            <include name="lib/jgroups.jar"/>
+            <include name="lib/jbossha.jar"/>
+            <include name="lib/commons-logging.jar"/>
+            <include name="deploy/cluster-service.xml"/>
+            <include name="deploy/deploy-hasingleton-service.xml"/>
+            
+
+         </fileset>
+      </copy>
+
+
+      
+      <copy todir="${jboss.dist}/server/jbossmq/deploy/" overwrite="true">
          <fileset dir="${jboss.dist}/docs/examples/jms/standalone">
-            <include name="jboss-service.xml"/>
+            <include name="cluster-service.xml"/>
          </fileset>
       </copy>
+      
 
    </target>
+   
+   
+   
 </project>

Added: branches/Branch_4_0/messaging/src/etc/server/examples/deploy/standalone/cluster-service.xml
===================================================================
--- branches/Branch_4_0/messaging/src/etc/server/examples/deploy/standalone/cluster-service.xml	2006-08-28 13:35:53 UTC (rev 56340)
+++ branches/Branch_4_0/messaging/src/etc/server/examples/deploy/standalone/cluster-service.xml	2006-08-28 14:34:39 UTC (rev 56341)
@@ -0,0 +1,133 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- ===================================================================== -->
+<!--                                                                       -->
+<!--  Sample Clustering Service Configuration                              -->
+<!--                                                                       -->
+<!-- ===================================================================== -->
+
+<server>
+
+   <!-- ==================================================================== -->
+   <!-- Cluster Partition: defines cluster                                   -->
+   <!-- ==================================================================== -->
+
+   <mbean code="org.jboss.ha.framework.server.ClusterPartition"
+      name="jboss:service=${jboss.partition.name:DefaultPartition}">
+         
+      <!-- Name of the partition being built -->
+      <attribute name="PartitionName">${jboss.partition.name:DefaultPartition}</attribute>
+
+      <!-- The address used to determine the node name -->
+      <attribute name="NodeAddress">${jboss.bind.address}</attribute>
+
+      <!-- Determine if deadlock detection is enabled -->
+      <attribute name="DeadlockDetection">False</attribute>
+     
+      <!-- Max time (in ms) to wait for state transfer to complete. Increase for large states -->
+      <attribute name="StateTransferTimeout">30000</attribute>
+
+      <!-- The JGroups protocol configuration -->
+      <attribute name="PartitionConfig">
+         <!--
+         The default UDP stack:
+         - If you have a multihomed machine, set the UDP protocol's bind_addr attribute to the
+         appropriate NIC IP address, e.g bind_addr="192.168.0.2".
+         - On Windows machines, because of the media sense feature being broken with multicast
+         (even after disabling media sense) set the UDP protocol's loopback attribute to true
+         -->
+         <Config>
+            <UDP mcast_addr="${jboss.partition.udpGroup:228.1.2.3}" mcast_port="45566"
+               ip_ttl="8" ip_mcast="true"
+               mcast_send_buf_size="800000" mcast_recv_buf_size="150000"
+               ucast_send_buf_size="800000" ucast_recv_buf_size="150000"
+               loopback="false"/>
+            <PING timeout="2000" num_initial_members="3"
+               up_thread="true" down_thread="true"/>
+            <MERGE2 min_interval="10000" max_interval="20000"/>
+            <FD shun="true" up_thread="true" down_thread="true"
+               timeout="2500" max_tries="5"/>
+            <VERIFY_SUSPECT timeout="3000" num_msgs="3"
+               up_thread="true" down_thread="true"/>
+            <pbcast.NAKACK gc_lag="50" retransmit_timeout="300,600,1200,2400,4800"
+               max_xmit_size="8192"
+               up_thread="true" down_thread="true"/>
+            <UNICAST timeout="300,600,1200,2400,4800" window_size="100" min_threshold="10"
+               down_thread="true"/>
+            <pbcast.STABLE desired_avg_gossip="20000"
+               up_thread="true" down_thread="true"/>
+            <FRAG frag_size="8192"
+               down_thread="true" up_thread="true"/>
+            <pbcast.GMS join_timeout="5000" join_retry_timeout="2000"
+               shun="true" print_local_addr="true"/>
+            <pbcast.STATE_TRANSFER up_thread="true" down_thread="true"/>
+         </Config>
+
+         <!-- Alternate TCP stack: customize it for your environment, change bind_addr and initial_hosts -->
+         <!--
+         <Config>
+            <TCP bind_addr="thishost" start_port="7800" loopback="true"/>
+            <TCPPING initial_hosts="thishost[7800],otherhost[7800]" port_range="3" timeout="3500"
+               num_initial_members="3" up_thread="true" down_thread="true"/>
+            <MERGE2 min_interval="5000" max_interval="10000"/>
+            <FD shun="true" timeout="2500" max_tries="5" up_thread="true" down_thread="true" />
+            <VERIFY_SUSPECT timeout="1500" down_thread="false" up_thread="false" />
+            <pbcast.NAKACK down_thread="true" up_thread="true" gc_lag="100"
+               retransmit_timeout="3000"/>
+            <pbcast.STABLE desired_avg_gossip="20000" down_thread="false" up_thread="false" />
+            <pbcast.GMS join_timeout="5000" join_retry_timeout="2000" shun="false"
+               print_local_addr="true" down_thread="true" up_thread="true"/>
+            <pbcast.STATE_TRANSFER up_thread="true" down_thread="true"/>
+         </Config>
+         -->
+      </attribute>
+      <depends>jboss:service=Naming</depends>
+   </mbean>
+
+
+
+   <!-- ==================================================================== -->
+   <!-- HA JNDI                                                              -->
+   <!-- ==================================================================== -->
+
+   <mbean code="org.jboss.ha.jndi.HANamingService"
+      name="jboss:service=HAJNDI">
+      <depends>jboss:service=${jboss.partition.name:DefaultPartition}</depends>
+      <!-- Name of the partition to which the service is linked -->
+      <attribute name="PartitionName">${jboss.partition.name:DefaultPartition}</attribute>
+      <!-- Bind address of bootstrap and HA-JNDI RMI endpoints -->
+      <attribute name="BindAddress">${jboss.bind.address}</attribute>
+      <!-- Port on which the HA-JNDI stub is made available -->
+      <attribute name="Port">1100</attribute>
+      <!-- RmiPort to be used by the HA-JNDI service once bound. 0 => auto. -->
+      <attribute name="RmiPort">1101</attribute>
+      <!-- Accept backlog of the bootstrap socket -->
+      <attribute name="Backlog">50</attribute>
+      <!-- The thread pool service used to control the bootstrap and
+      auto discovery lookups -->
+      <depends optional-attribute-name="LookupPool"
+         proxy-type="attribute">jboss.system:service=ThreadPool</depends>
+
+      <!-- A flag to disable the auto discovery via multicast -->
+      <attribute name="DiscoveryDisabled">false</attribute>
+      <!-- Set the auto-discovery bootstrap multicast bind address. If not 
+      specified and a BindAddress is specified, the BindAddress will be used. -->
+      <attribute name="AutoDiscoveryBindAddress">${jboss.bind.address}</attribute>
+      <!-- Multicast Address and group port used for auto-discovery -->
+      <attribute name="AutoDiscoveryAddress">${jboss.partition.udpGroup:230.0.0.4}</attribute>
+      <attribute name="AutoDiscoveryGroup">1102</attribute>
+      <!-- The TTL (time-to-live) for autodiscovery IP multicast packets -->
+      <attribute name="AutoDiscoveryTTL">16</attribute>
+
+      <!-- Client socket factory to be used for client-server
+           RMI invocations during JNDI queries
+      <attribute name="ClientSocketFactory">custom</attribute>
+      -->
+      <!-- Server socket factory to be used for client-server
+           RMI invocations during JNDI queries
+      <attribute name="ServerSocketFactory">custom</attribute>
+      -->
+   </mbean>
+
+
+</server>

Modified: branches/Branch_4_0/messaging/src/etc/server/examples/deploy/standalone/jboss-service.xml
===================================================================
--- branches/Branch_4_0/messaging/src/etc/server/examples/deploy/standalone/jboss-service.xml	2006-08-28 13:35:53 UTC (rev 56340)
+++ branches/Branch_4_0/messaging/src/etc/server/examples/deploy/standalone/jboss-service.xml	2006-08-28 14:34:39 UTC (rev 56341)
@@ -3,40 +3,104 @@
 <!-- $Id$ -->
 
 <!-- ===================================================================== -->
-<!--                                                                       -->
-<!--  A minimal JBoss Server Configuration                                 -->
-<!--                                                                       -->
+<!--  JBoss Server Configuration                                           -->
 <!-- ===================================================================== -->
 
 <server>
 
-  <!-- Load all jars from the JBOSS_DIST/server/<config>/lib directory. This
-    can be restricted to specific jars by specifying them in the archives
-    attribute.
-   -->
-  <classpath codebase="${jboss.server.lib.url:lib}" archives="*"/>
+   <!-- Load all jars from the JBOSS_DIST/server/<config>/lib directory. This
+     can be restricted to specific jars by specifying them in the archives
+     attribute.
+    -->
+   <classpath codebase="${jboss.server.lib.url:lib}" archives="*"/>
 
-  <!-- ==================================================================== -->
-  <!-- Log4j Initialization                                                 -->
-  <!-- ==================================================================== -->
-  <mbean code="org.jboss.logging.Log4jService"
-    name="jboss.system:type=Log4jService,service=Logging">
-    <attribute name="ConfigurationURL">resource:log4j.xml</attribute>
-  </mbean>
 
-  <!-- ==================================================================== -->
-  <!-- JNDI                                                                 -->
-  <!-- ==================================================================== -->
 
-  <mbean code="org.jboss.naming.NamingService"
-	 name="jboss:service=Naming">
-    <!-- The listening port for the bootstrap JNP service. Set this to -1
-      to run the NamingService without the JNP invoker listening port.
-    -->
-    <attribute name="Port">1099</attribute>
-  </mbean>
+   <!-- A Thread pool service -->
+   <mbean code="org.jboss.util.threadpool.BasicThreadPool"
+      name="jboss.system:service=ThreadPool">
+      <attribute name="Name">JBoss System Threads</attribute>
+      <attribute name="ThreadGroupName">System Threads</attribute>
+      <!-- How long a thread will live without any tasks in MS -->
+      <attribute name="KeepAliveTime">60000</attribute>
+      <!-- The max number of threads in the pool -->
+      <attribute name="MaximumPoolSize">10</attribute>
+      <!-- The max number of tasks before the queue is full -->
+      <attribute name="MaximumQueueSize">1000</attribute>
+      <!-- The behavior of the pool when a task is added and the queue is full.
+      abort - a RuntimeException is thrown
+      run - the calling thread executes the task
+      wait - the calling thread blocks until the queue has room
+      discard - the task is silently discarded without being run
+      discardOldest - check to see if a task is about to complete and enque
+         the new task if possible, else run the task in the calling thread
+      -->
+      <attribute name="BlockingMode">run</attribute>
+   </mbean>
 
+
    <!-- ==================================================================== -->
+   <!-- Log4j Initialization                                                 -->
+   <!-- ==================================================================== -->
+
+   <mbean code="org.jboss.logging.Log4jService"
+      name="jboss.system:type=Log4jService,service=Logging"
+	  xmbean-dd="resource:xmdesc/Log4jService-xmbean.xml">
+      <attribute name="ConfigurationURL">resource:log4j.xml</attribute>
+      <!-- Set the org.apache.log4j.helpers.LogLog.setQuiteMode. As of log4j1.2.8
+      this needs to be set to avoid a possible deadlock on exception at the
+      appender level. See bug#696819.
+      -->
+      <attribute name="Log4jQuietMode">true</attribute>
+      <!-- How frequently in seconds the ConfigurationURL is checked for changes -->
+      <attribute name="RefreshPeriod">60</attribute>
+   </mbean>
+
+   <!-- ==================================================================== -->
+   <!-- JBoss RMI Classloader - only install when available                  -->
+   <!-- ==================================================================== -->
+   <mbean code="org.jboss.util.property.jmx.SystemPropertyClassValue"
+      name="jboss.rmi:type=RMIClassLoader">
+      <attribute name="Property">java.rmi.server.RMIClassLoaderSpi</attribute>
+      <attribute name="ClassName">org.jboss.system.JBossRMIClassLoader</attribute>
+   </mbean>
+
+
+   <!-- ==================================================================== -->
+   <!-- JNDI                                                                 -->
+   <!-- ==================================================================== -->
+
+   <mbean code="org.jboss.naming.NamingService"
+      name="jboss:service=Naming"
+      xmbean-dd="resource:xmdesc/NamingService-xmbean.xml">
+      <!-- The call by value mode. true if all lookups are unmarshalled using
+      the caller's TCL, false if in VM lookups return the value by reference.
+      -->
+      <attribute name="CallByValue">false</attribute>
+      <!-- The listening port for the bootstrap JNP service. Set this to -1
+        to run the NamingService without the JNP invoker listening port.
+      -->
+      <attribute name="Port">1099</attribute>
+      <!-- The bootstrap JNP server bind address. This also sets the default
+      RMI service bind address. Empty == all addresses
+       -->
+      <attribute name="BindAddress">${jboss.bind.address}</attribute>
+      <!-- The port of the RMI naming service, 0 == anonymous -->
+      <attribute name="RmiPort">1098</attribute>
+      <!-- The RMI service bind address. Empty == all addresses
+       -->
+      <attribute name="RmiBindAddress">${jboss.bind.address}</attribute>
+      <!-- The thread pool service used to control the bootstrap lookups -->
+      <depends optional-attribute-name="LookupPool"
+         proxy-type="attribute">jboss.system:service=ThreadPool</depends>
+   </mbean>
+
+   <mbean code="org.jboss.naming.JNDIView"
+   		name="jboss:service=JNDIView"
+   		xmbean-dd="resource:xmdesc/JNDIView-xmbean.xml">
+   </mbean>
+
+   <!-- ==================================================================== -->
    <!-- Security                                                             -->
    <!-- ==================================================================== -->
 
@@ -52,9 +116,28 @@
    <!-- JAAS security manager and realm mapping -->
    <mbean code="org.jboss.security.plugins.JaasSecurityManagerService"
       name="jboss.security:service=JaasSecurityManager">
-      <attribute name="SecurityManagerClassName">
-         org.jboss.security.plugins.JaasSecurityManager
-      </attribute>
+      <!-- A flag which indicates whether the SecurityAssociation server mode
+      is set on service creation. This is true by default since the
+      SecurityAssociation should be thread local for multi-threaded server
+      operation.
+      -->
+      <attribute name="ServerMode">true</attribute>
+      <attribute name="SecurityManagerClassName">org.jboss.security.plugins.JaasSecurityManager</attribute>
+      <attribute name="DefaultUnauthenticatedPrincipal">anonymous</attribute>
+      <!-- DefaultCacheTimeout: Specifies the default timed cache policy timeout
+      in seconds.
+      If you want to disable caching of security credentials, set this to 0 to
+      force authentication to occur every time. This has no affect if the
+      AuthenticationCacheJndiName has been changed from the default value.
+      -->
+      <attribute name="DefaultCacheTimeout">1800</attribute>
+      <!-- DefaultCacheResolution: Specifies the default timed cache policy
+      resolution in seconds. This controls the interval at which the cache
+      current timestamp is updated and should be less than the DefaultCacheTimeout
+      in order for the timeout to be meaningful. This has no affect if the
+      AuthenticationCacheJndiName has been changed from the default value.
+      -->
+      <attribute name="DefaultCacheResolution">60</attribute>
    </mbean>
 
    <!-- ==================================================================== -->
@@ -73,9 +156,57 @@
       name="jboss:service=TransactionManager"
       xmbean-dd="resource:xmdesc/TransactionManagerService-xmbean.xml">
       <attribute name="TransactionTimeout">300</attribute>
+      <!-- set to false to disable transaction demarcation over IIOP -->
+      <attribute name="GlobalIdsEnabled">true</attribute>
+      <depends optional-attribute-name="XidFactory">jboss:service=XidFactory</depends>
 
-      <depends optional-attribute-name="XidFactory">jboss:service=XidFactory</depends>
+      <!-- Transaction Integrity Checking -->
+      <!-- Force a rollback if another thread is associated with the transaction at commit -->
+      <!--depends optional-attribute-name="TransactionIntegrityFactory" 
+               proxy-type="org.jboss.tm.integrity.TransactionIntegrityFactory">
+         <mbean code="org.jboss.tm.integrity.FailIncompleteTransaction"
+                name="jboss:service=TransactionManager,plugin=TransactionIntegrity"/>
+      </depends-->
    </mbean>
+   <!--
+      | UserTransaction support.
+    -->
+   <mbean code="org.jboss.tm.usertx.server.ClientUserTransactionService"
+      name="jboss:service=ClientUserTransaction"
+      xmbean-dd="resource:xmdesc/ClientUserTransaction-xmbean.xml">
+      <depends>
+         <mbean code="org.jboss.invocation.jrmp.server.JRMPProxyFactory"
+            name="jboss:service=proxyFactory,target=ClientUserTransactionFactory">
+            <attribute name="InvokerName">jboss:service=invoker,type=jrmp</attribute>
+            <attribute name="TargetName">jboss:service=ClientUserTransaction</attribute>
+            <attribute name="JndiName">UserTransactionSessionFactory</attribute>
+            <attribute name="ExportedInterface">org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory</attribute>
+            <attribute name="ClientInterceptors">
+               <interceptors>
+                  <interceptor>org.jboss.proxy.ClientMethodInterceptor</interceptor>
+                  <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
+               </interceptors>
+            </attribute>
+            <depends>jboss:service=invoker,type=jrmp</depends>
+         </mbean>
+      </depends>
+      <depends optional-attribute-name="TxProxyName">
+         <mbean code="org.jboss.invocation.jrmp.server.JRMPProxyFactory"
+            name="jboss:service=proxyFactory,target=ClientUserTransaction">
+            <attribute name="InvokerName">jboss:service=invoker,type=jrmp</attribute>
+            <attribute name="TargetName">jboss:service=ClientUserTransaction</attribute>
+            <attribute name="JndiName"></attribute>
+            <attribute name="ExportedInterface">org.jboss.tm.usertx.interfaces.UserTransactionSession</attribute>
+            <attribute name="ClientInterceptors">
+               <interceptors>
+                  <interceptor>org.jboss.proxy.ClientMethodInterceptor</interceptor>
+                  <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
+               </interceptors>
+            </attribute>
+            <depends>jboss:service=invoker,type=jrmp</depends>
+         </mbean>
+      </depends>
+   </mbean>
 
    <!-- ==================================================================== -->
    <!-- Invokers to the JMX node                                             -->
@@ -101,65 +232,145 @@
       <depends>jboss:service=TransactionManager</depends>
    </mbean>
 
+   <mbean code="org.jboss.invocation.pooled.server.PooledInvoker"
+      name="jboss:service=invoker,type=pooled">
+      <attribute name="NumAcceptThreads">1</attribute>
+      <attribute name="MaxPoolSize">300</attribute>
+      <attribute name="ClientMaxPoolSize">300</attribute>
+      <attribute name="SocketTimeout">60000</attribute>
+      <attribute name="ServerBindAddress">${jboss.bind.address}</attribute>
+      <attribute name="ServerBindPort">4445</attribute>
+      <attribute name="ClientConnectAddress">${jboss.bind.address}</attribute>
+      <attribute name="ClientConnectPort">0</attribute>
+      <attribute name="ClientRetryCount">1</attribute>
+      <attribute name="EnableTcpNoDelay">false</attribute>
+
+      <!-- Customized socket factory attributes
+      <attribute name="ClientSocketFactoryName">custom.client.factory</attribute>
+      <attribute name="ServerSocketFactoryName">custom.server.factory</attribute>
+      <attribute name="SslDomain">java:/jaas/pooledInvoker</attribute>
+      -->
+      <depends optional-attribute-name="TransactionManagerService">jboss:service=TransactionManager</depends>
+   </mbean>
+
    <!-- ==================================================================== -->
+   <!-- Monitoring and Management                                            -->
+   <!-- ==================================================================== -->
+
+   <!-- Uncomment to enable JMX monitoring of the bean cache
+   <mbean code="org.jboss.monitor.BeanCacheMonitor"
+          name="jboss.monitor:name=BeanCacheMonitor"/>
+   -->
+
+   <!-- Uncomment to enable JMX monitoring of the entity bean locking
+   <mbean code="org.jboss.monitor.EntityLockMonitor"
+          name="jboss.monitor:name=EntityLockMonitor"/>
+   -->
+
+   <!-- ==================================================================== -->
    <!-- An MBean that is a registry for JDBC type-mapping metadata           -->
    <!-- ==================================================================== -->
 
    <mbean code="org.jboss.ejb.plugins.cmp.jdbc.metadata.MetaDataLibrary"
       name="jboss.jdbc:service=metadata"/>
 
-  <!-- ==================================================================== -->
-  <!-- Deployment Scanning                                                  -->
-  <!-- ==================================================================== -->
+   <!-- ==================================================================== -->
+   <!-- Deployment Scanning                                                  -->
+   <!-- ==================================================================== -->
 
-  <!-- An mbean for hot deployment/undeployment of archives.
-  -->
-  <mbean code="org.jboss.deployment.scanner.URLDeploymentScanner"
-	 name="jboss.deployment:type=DeploymentScanner,flavor=URL">
+   <!-- An mbean for hot deployment/undeployment of archives.
+   -->
+   <mbean code="org.jboss.deployment.scanner.URLDeploymentScanner"
+      name="jboss.deployment:type=DeploymentScanner,flavor=URL">
 
-    <depends optional-attribute-name="Deployer">jboss.system:service=MainDeployer</depends>
+      <!-- Uncomment (and comment/remove version below) to enable usage of the
+        DeploymentCache
+      <depends optional-attribute-name="Deployer">jboss.deployment:type=DeploymentCache</depends>
+      -->
+      <depends optional-attribute-name="Deployer">jboss.system:service=MainDeployer</depends>
 
-    <!-- The URLComparator can be used to specify a deployment ordering
-         for deployments found in a scanned directory.  The class specified
-         must be an implementation of java.util.Comparator, it must be able
-         to compare two URL objects, and it must have a no-arg constructor.
-         Two deployment comparators are shipped with JBoss:
-           - org.jboss.deployment.DeploymentSorter 
-             Sorts by file extension, as follows:
-               "sar", "service.xml", "rar", "jar", "war", "wsr", "ear", "zip", 
-               "*"
-           - org.jboss.deployment.scanner.PrefixDeploymentSorter
-             If the name portion of the url begins with 1 or more digits, those 
-             digits are converted to an int (ignoring leading zeroes), and 
-             files are deployed in that order.  Files that do not start with 
-             any digits will be deployed last, and they will be sorted by
-             extension as above with DeploymentSorter.
-    -->
-    <attribute name="URLComparator">org.jboss.deployment.DeploymentSorter</attribute>
-    
-    <!-- The Filter specifies a java.io.FileFilter for scanned
-         directories.  Any file not accepted by this filter will not be
-         deployed.  The org.jboss.deployment.scanner.DeploymentFilter 
-         rejects the following patterns:
-             "#*", "%*", ",*", ".*", "_$*", "*#", "*$", "*%", "*.BAK", 
-             "*.old", "*.orig", "*.rej", "*.bak", "*,v", "*~", ".make.state", 
-             ".nse_depinfo", "CVS", "CVS.admin", "RCS", "RCSLOG", "SCCS", 
-             "TAGS", "core", "tags"
-    -->
-    <attribute name="Filter">org.jboss.deployment.scanner.DeploymentFilter</attribute>
+      <!-- The URLComparator can be used to specify a deployment ordering
+           for deployments found in a scanned directory.  The class specified
+           must be an implementation of java.util.Comparator, it must be able
+           to compare two URL objects, and it must have a no-arg constructor.
+           Two deployment comparators are shipped with JBoss:
+             - org.jboss.deployment.DeploymentSorter
+               Sorts by file extension, as follows:
+                 "sar", "service.xml", "rar", "jar", "war", "wsr", "ear", "zip",
+                 "*"
+             - org.jboss.deployment.scanner.PrefixDeploymentSorter
+               If the name portion of the url begins with 1 or more digits, those
+               digits are converted to an int (ignoring leading zeroes), and
+               files are deployed in that order.  Files that do not start with
+               any digits will be deployed first, and they will be sorted by
+               extension as above with DeploymentSorter.
+      -->
+      <attribute name="URLComparator">org.jboss.deployment.DeploymentSorter</attribute>
+      
+      <!--
+      <attribute name="URLComparator">org.jboss.deployment.scanner.PrefixDeploymentSorter</attribute>
+      -->
 
-    <attribute name="ScanPeriod">5000</attribute>
+      <!-- The FilterInstance specifies a URLLister.URLFilter for scanned
+           directories. This DeploymentFilter is initialized with the given
+           prefixes, suffixes and matches that define which URLs should be
+           ignored.
+      -->
+      <attribute name="FilterInstance"
+         attributeClass="org.jboss.deployment.scanner.DeploymentFilter"
+         serialDataType="javaBean">
+         <!-- Files starting with theses strings are ignored -->
+         <property name="prefixes">#,%,\,,.,_$</property>
+         <!-- Files ending with theses strings are ignored -->
+         <property name="suffixes">#,$,%,~,\,v,.BAK,.bak,.old,.orig,.tmp,.rej,.sh</property>
+         <!-- Files matching with theses strings are ignored -->
+         <property name="matches">.make.state,.nse_depinfo,CVS,CVS.admin,RCS,RCSLOG,SCCS,TAGS,core,tags</property>
+      </attribute>
 
-    <!-- URLs are comma seperated and unprefixed arguments are considered
-       file URLs and resolve relative to server home(JBOSS_DIST/server/default)
-       unless the given path is absolute. Any referenced directories cannot
-       be unpackaged archives, use the parent directory of the unpacked
-       archive.
-     -->
-    <attribute name="URLs">
-       deploy/
-    </attribute>
-    
-  </mbean>
+      <!-- Frequency in milliseconds to rescan the URLs for changes -->
+      <attribute name="ScanPeriod">5000</attribute>
+      
+      <!-- A flag to disable the scans -->
+      <attribute name="ScanEnabled">true</attribute>
 
+      <!-- URLs are comma separated and resolve relative to the server home URL
+         unless the given path is absolute. If the URL ends in "/" it is
+         considered a collection and scanned, otherwise it is simply deployed;
+         this follows RFC2518 convention and allows discrimination between
+         collections and directories that are simply unpacked archives.
+
+         URLs may be local (file:) or remote (http:). Scanning is supported
+         for remote URLs but unpacked deployment units are not.
+
+         Example URLs:
+            deploy/
+                 scans ${jboss.server.url}/deploy/, which is local or remote
+                 depending on the URL used to boot the server
+            ${jboss.server.home}/deploy/
+                 scans ${jboss.server.home)/deploy, which is always local
+            file:/var/opt/myapp.ear
+                 deploy myapp.ear from a local location
+            file:/var/opt/apps/
+                 scans the specified directory
+            http://www.test.com/netboot/myapp.ear
+                 deploys myapp.ear from a remote location
+            http://www.test.com/netboot/apps/
+                 scans the specified WebDAV location
+       -->
+      <attribute name="URLs">
+         deploy/
+      </attribute>
+
+      <!-- Indicates if the scanner should recursively scan directories that
+      contain no "." in their names. This can be used to group applications
+      and services that must be deployed and that have the same
+      logical function in the same directory i.e.
+        deploy/JMX/
+        deploy/JMS/
+        ...
+      -->
+      <attribute name="RecursiveSearch">True</attribute>
+
+   </mbean>
+
 </server>




More information about the jboss-cvs-commits mailing list