[jboss-cvs] JBoss Messaging SVN: r3279 - branches/Branch_MC_Integration_New/src/etc/server/default/deploy.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Oct 31 15:40:30 EDT 2007


Author: ataylor
Date: 2007-10-31 15:40:29 -0400 (Wed, 31 Oct 2007)
New Revision: 3279

Added:
   branches/Branch_MC_Integration_New/src/etc/server/default/deploy/jboss-beans.xml
Log:
initial config file

Added: branches/Branch_MC_Integration_New/src/etc/server/default/deploy/jboss-beans.xml
===================================================================
--- branches/Branch_MC_Integration_New/src/etc/server/default/deploy/jboss-beans.xml	                        (rev 0)
+++ branches/Branch_MC_Integration_New/src/etc/server/default/deploy/jboss-beans.xml	2007-10-31 19:40:29 UTC (rev 3279)
@@ -0,0 +1,330 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+   <bean name="ServiceLocator" class="org.jboss.jms.server.microcontainer.ServiceLocator">
+      <demand>jboss.jca:name=DefaultDS,service=DataSourceBinding</demand>
+      <depends>jboss:service=TransactionManager</depends>
+      <!-- <depends>jboss.jca:service=DataSourceBinding,name=DefaultDS</depends>-->
+   </bean>
+
+   <bean name="ServerPeer" class="org.jboss.jms.server.ServerPeer">
+      <depends>Remoting</depends>
+      <!-- The unique id of the server peer - in a cluster each node MUST have a unique value - must be an integer -->
+      <property name="serverPeerID">0</property>
+      <!-- The default JNDI context to use for queues when they are deployed without specifying one -->
+      <property name="defaultQueueJNDIContext">/queue</property>
+      <!-- The default JNDI context to use for topics when they are deployed without specifying one -->
+      <property name="defaultTopicJNDIContext">/topic</property>
+      <!-- The JAAS security domain to use for JBoss Messaging -->
+      <property name="securityDomain">java:/jaas/messaging</property>
+      <!-- The default security configuration to apply to destinations - this can be overridden on a per destination basis -->
+      <property name="defaultSecurityConfig">
+         <set class="java.util.HashSet" elementClass="org.jboss.jms.server.security.Role">
+            <inject bean="DefaultRole"/>
+         </set>
+      </property>
+      <!-- The default Dead Letter Queue (DLQ) to use for destinations. This can be overridden on a per destinatin basis -->
+      <property name="defaultDLQ">DLQ</property>
+
+      <!-- The default maximum number of times to attempt delivery of a message before sending to the DLQ (if configured).
+This can be overridden on a per destinatin basis -->
+      <property name="defaultMaxDeliveryAttempts">10</property>
+      <!-- The default Expiry Queue to use for destinations. This can be overridden on a per destinatin basis -->
+      <property name="defaultExpiryQueue">ExpiryQueue</property>
+      <!-- The default redelivery delay to impose. This can be overridden on a per destination basis -->
+      <property name="defaultRedeliveryDelay">0</property>
+      <!-- The periodicity of the message counter manager enquiring on queues for statistics -->
+      <property name="messageCounterSamplePeriod">5000</property>
+      <!-- The maximum amount of time for a client to wait for failover to start on the server side after
+  it has detected failure -->
+      <property name="failoverStartTimeout">60000</property>
+      <!-- The maximum amount of time for a client to wait for failover to complete on the server side after
+  it has detected failure -->
+      <property name="failoverCompleteTimeout">300000</property>
+      <!-- The maximum number of days results to maintain in the message counter history -->
+      <property name="defaultMessageCounterHistoryDayLimit">-1</property>
+      <!-- The name of the connection factory to use for creating connections between nodes to pull messages -->
+      <property name="clusterPullConnectionFactoryName">
+         jboss.messaging.connectionfactory:service=ClusterPullConnectionFactory
+      </property>
+      <!-- Use XA when pulling persistent messages from a remote node to this one. -->
+      <property name="useXAForMessagePull">true</property>
+      <!-- When redistributing messages in the cluster. Do we need to preserve the order of messages received
+by a particular consumer from a particular producer? -->
+      <property name="defaultPreserveOrdering">false</property>
+      <!-- Max. time to hold previously delivered messages back waiting for clients to reconnect after failover -->
+      <property name="recoverDeliveriesTimeout">300000</property>
+      <!-- The password used by the message sucker connections to create connections.
+           THIS SHOULD ALWAYS BE CHANGED AT INSTALL TIME TO SECURE SYSTEM
+      <property name="SuckerPassword"></property>
+      -->
+      <property name="persistenceManager">
+         <inject bean="PersistenceManager"/>
+      </property>
+      <property name="postOffice">
+         <inject bean="PostOffice"/>
+      </property>
+      <property name="clusterNotifier">
+         <inject bean="ClusterNotifier"/>
+      </property>
+      <property name="jmsUserManager">
+         <inject bean="JMSUserManager"/>
+      </property>
+   </bean>
+
+   <bean name="DefaultRole" class="org.jboss.jms.server.security.Role">
+      <property name="name">guest</property>
+      <property name="read">true</property>
+      <property name="write">true</property>
+      <property name="create">true</property>
+   </bean>
+
+   <bean name="PersistenceManager" class="org.jboss.messaging.core.impl.JDBCPersistenceManager">
+      <property name="tm">
+         <inject bean="ServiceLocator" property="transactionManager"/>
+      </property>
+      <property name="ds">
+         <inject bean="ServiceLocator" property="dataSource"/>
+      </property>
+      <property name="createTablesOnStartup">true</property>
+      <property name="maxParams">500</property>
+      <property name="reaperPeriod">5000</property>
+   </bean>
+
+   <bean name="JMSUserManager" class="org.jboss.jms.server.plugin.JDBCJMSUserManager">
+      <property name="createTablesOnStartup">true</property>
+      <property name="ds">
+         <inject bean="ServiceLocator" property="dataSource"/>
+      </property>
+      <property name="tm">
+         <inject bean="ServiceLocator" property="transactionManager"/>
+      </property>
+      <property name="sqlProperties">
+         <map class="java.util.Properties" keyClass="java.lang.String" valueClass="java.lang.String">
+            <entry>
+               <key>POPULATE.TABLES.1</key>
+               <value>INSERT INTO JBM_USER (USER_ID,PASSWD,CLIENTID) VALUES ('dilbert','dogbert','dilbert-id')
+               </value>
+            </entry>
+         </map>
+      </property>
+   </bean>
+
+   <bean name="PostOffice" class="org.jboss.messaging.core.impl.postoffice.MessagingPostOffice">
+      <property name="nodeID">0</property>
+      <property name="officeName">JMS post office</property>
+      <property name="tm">
+         <inject bean="ServiceLocator" property="transactionManager"/>
+      </property>
+      <property name="ds">
+         <inject bean="ServiceLocator" property="dataSource"/>
+      </property>
+      <property name="pm">
+         <inject bean="PersistenceManager"/>
+      </property>
+      <property name="clusterNotifier">
+         <inject bean="ClusterNotifier"/>
+      </property>
+      <property name="createTablesOnStartup">true</property>
+      <property name="sqlProperties">
+         <map class="java.util.Properties" keyClass="java.lang.String" valueClass="java.lang.String">
+            <entry>
+               <key>CREATE_POSTOFFICE_TABLE</key>
+               <value>CREATE TABLE JBM_POSTOFFICE (POSTOFFICE_NAME VARCHAR(255), NODE_ID INTEGER, QUEUE_NAME
+                  VARCHAR(255), COND VARCHAR(1023), SELECTOR VARCHAR(1023), CHANNEL_ID BIGINT, CLUSTERED CHAR(1),
+                  ALL_NODES CHAR(1), PRIMARY KEY(POSTOFFICE_NAME, NODE_ID, QUEUE_NAME)) ENGINE = INNODB
+               </value>
+            </entry>
+            <entry>
+               <key>INSERT_BINDING</key>
+               <value>INSERT INTO JBM_POSTOFFICE (POSTOFFICE_NAME, NODE_ID, QUEUE_NAME, COND, SELECTOR, CHANNEL_ID,
+                  CLUSTERED, ALL_NODES) VALUES (?, ?, ?, ?, ?, ?, ?, ?)
+               </value>
+            </entry>
+            <entry>
+               <key>DELETE_BINDING</key>
+               <value>DELETE FROM JBM_POSTOFFICE WHERE POSTOFFICE_NAME=? AND NODE_ID=? AND QUEUE_NAME=?</value>
+            </entry>
+            <entry>
+               <key>LOAD_BINDINGS</key>
+               <value>SELECT QUEUE_NAME, COND, SELECTOR, CHANNEL_ID, CLUSTERED, ALL_NODES FROM JBM_POSTOFFICE WHERE
+                  POSTOFFICE_NAME=? AND NODE_ID=?
+               </value>
+            </entry>
+         </map>
+      </property>
+       <property name="clustered">true</property>
+
+      <!-- All the remaining properties only have to be specified if the post office is clustered.
+           You can safely comment them out if your post office is non clustered -->
+
+      <!-- The JGroups group name that the post office will use -->
+
+      <property name="groupName">MessagingPostOffice</property>
+
+      <!-- Max time to wait for state to arrive when the post office joins the cluster -->
+
+      <property name="stateTimeout">5000</property>
+
+      <!-- Max time to wait for a synchronous call to node members using the MessageDispatcher -->
+
+      <property name="castTimeout">50000</property>
+
+      <property name="controlChannelConfig">controlchannel-config.xml</property>
+      <property name="dataChannelConfig">datachannel-config.xml</property>
+
+      <property name="channelFactory"><inject bean="JChannelFactory"/></property>
+      <property name="controlChannelName">udp-sync</property>
+      <property name="dataChannelName">udp</property>
+      <property name="channelPartitionName">${jboss.partition.name:DefaultPartition}-JMS</property>
+   </bean>
+
+
+
+   <bean class="org.jboss.jms.server.connectionfactory.ConnectionFactory"
+         name="ConnectionFactory">
+      <property name="name">ConnectionFactory</property>
+      <property name="serverPeer">
+         <inject bean="ServerPeer"/>
+      </property>
+      <property name="connector">
+         <inject bean="Remoting"/>
+      </property>
+      <property name="JNDIBindings">
+         <list elementClass="java.lang.String">
+            <value>/ConnectionFactory</value>
+            <value>/XAConnectionFactory</value>
+            <value>java:/ConnectionFactory</value>
+            <value>java:/XAConnectionFactory</value>
+         </list>
+      </property>
+   </bean>
+
+   <bean class="org.jboss.jms.server.connectionfactory.ConnectionFactory"
+         name="ClusteredConnectionFactory">
+      <property name="name">ClusteredConnectionFactory</property>
+      <property name="connector">
+         <inject bean="Remoting"/>
+      </property>
+      <property name="serverPeer">
+         <inject bean="ServerPeer"/>
+      </property>
+      <property name="JNDIBindings">
+         <list elementClass="java.lang.String">
+            <value>/ClusteredConnectionFactory</value>
+            <value>/ClusteredXAConnectionFactory</value>
+            <value>java:/ClusteredConnectionFactory</value>
+            <value>java:/ClusteredXAConnectionFactory</value>
+         </list>
+      </property>
+      <property name="supportsFailover">true</property>
+      <property name="supportsLoadBalancing">true</property>
+   </bean>
+   <!--cant use the LTDS as its dependant on the jboss-jca service running does this matter-->
+   <!--<bean name="DataSource" class="org.jboss.resource.adapter.jdbc.local.LocalTxDataSource">
+        <property name="jndiName">MessagingDS</property>
+       <property name="driverClass">com.mysql.jdbc.Driver</property>
+       <property name="connectionURL">jdbc:mysql://localhost:3306/messaging</property>
+       <property name="userName">andy</property>
+        <property name="transactionManager"><inject bean="ServiceLocator" property="transactionManager"/> </property>
+   </bean>-->
+   <!--<bean name="DataSource" class="com.mysql.jdbc.jdbc2.optional.MysqlDataSource">
+       <property name="url">jdbc:mysql://localhost:3306/messaging</property>
+       <property name="user">andy</property>
+   </bean>-->
+
+   <bean name="Remoting" class="org.jboss.jms.server.microcontainer.factory.Connector">
+      <constructor>
+         <parameter>
+            <inject bean="InvokerLocator" property="locatorURI"/>
+         </parameter>
+         <!--<parameter>
+            <inject bean="RemotingConfig"/>
+         </parameter>-->
+      </constructor>
+      <property name="invocationHandler">
+         <inject bean="InvocationHandler"/>
+      </property>
+   </bean>
+
+   <bean name="InvokerLocator" class="org.jboss.remoting.InvokerLocator">
+      <constructor>
+         <parameter>bisocket</parameter>
+         <parameter>localhost</parameter>
+         <parameter>5400</parameter>
+         <parameter>
+            <null/>
+         </parameter>
+         <parameter class="java.util.Map">
+            <inject bean="RemotingConfig"/>
+         </parameter>
+         <!--<parameter>bisocket://localhost:5400/?marshaller=org.jboss.jms.wireformat.JMSWireFormat&amp;unmarshaller=org.jboss.jms.wireformat.JMSWireFormat&amp;dataType=jms
+         </parameter>-->
+      </constructor>
+   </bean>
+
+   <bean name="InvocationHandler" class="org.jboss.jms.server.remoting.JMSServerInvocationHandler"/>
+
+   <bean name="RemotingConfig" class="java.util.HashMap">
+      <constructor>
+         <parameter class="java.util.Map">
+            <map keyClass="java.lang.String" valueClass="java.lang.String">
+               <entry>
+                  <key>marshaller</key>
+                  <value>org.jboss.jms.wireformat.JMSWireFormat</value>
+               </entry>
+               <entry>
+                  <key>unmarshaller</key>
+                  <value>org.jboss.jms.wireformat.JMSWireFormat</value>
+               </entry>
+               <entry>
+                  <key>dataType</key>
+                  <value>jms</value>
+               </entry>
+               <entry>
+                  <key>socket.check_connection</key>
+                  <value>false</value>
+               </entry>
+               <entry>
+                  <key>timeout</key>
+                  <value>0</value>
+               </entry>
+               <entry>
+                  <key>leasePeriod</key>
+                  <value>10000</value>
+               </entry>
+               <entry>
+                  <key>clientSocketClass</key>
+                  <value>org.jboss.jms.client.remoting.ClientSocketWrapper</value>
+               </entry>
+               <entry>
+                  <key>serverSocketClass</key>
+                  <value>org.jboss.jms.server.remoting.ServerSocketWrapper</value>
+               </entry>
+               <entry>
+                  <key>numberOfRetries</key>
+                  <value>1</value>
+               </entry>
+               <entry>
+                  <key>numberOfCallRetries</key>
+                  <value>1</value>
+               </entry>
+               <entry>
+                  <key>clientMaxPoolSize</key>
+                  <value>50</value>
+               </entry>
+            </map>
+         </parameter>
+      </constructor>
+   </bean>
+   <bean name="DestinationDeployer" class="org.jboss.jms.server.microcontainer.DestinationDeployer">
+      <property name="serverPeer">
+         <inject bean="ServerPeer"/>
+      </property>
+   </bean>
+
+   <bean name="ClusterNotifier" class="org.jboss.messaging.core.impl.DefaultClusterNotifier"/>
+   <bean name="topic" class="org.jboss.jms.server.destination.ManagedTopic"/>
+
+</deployment>
\ No newline at end of file




More information about the jboss-cvs-commits mailing list