[jboss-cvs] JBossAS SVN: r110290 - in branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources: examples and 2 other directories.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Jan 6 05:46:26 EST 2011


Author: ataylor
Date: 2011-01-06 05:46:25 -0500 (Thu, 06 Jan 2011)
New Revision: 110290

Added:
   branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/
   branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/symmetric-cluster-with-backups-colocated/
   branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/symmetric-cluster-with-backups-colocated/README.txt
   branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/symmetric-cluster-with-backups-colocated/hornetq-backup1/
   branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/symmetric-cluster-with-backups-colocated/hornetq/
   branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/symmetric-cluster-with-backups-colocated/hornetq/hornetq-configuration.xml
   branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/symmetric-cluster-with-backups-colocated/hornetq/hornetq-jboss-beans.xml
   branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/symmetric-cluster-with-backups-colocated/hornetq/hornetq-jms.xml
   branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/symmetric-cluster-with-backups-colocated/hornetq/jms-ds.xml
Removed:
   branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/hornetq-backup1/
Log:
hornetq example config

Added: branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/symmetric-cluster-with-backups-colocated/README.txt
===================================================================

Added: branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/symmetric-cluster-with-backups-colocated/hornetq/hornetq-configuration.xml
===================================================================
--- branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/symmetric-cluster-with-backups-colocated/hornetq/hornetq-configuration.xml	                        (rev 0)
+++ branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/symmetric-cluster-with-backups-colocated/hornetq/hornetq-configuration.xml	2011-01-06 10:46:25 UTC (rev 110290)
@@ -0,0 +1,113 @@
+<!--
+  ~ Copyright 2009 Red Hat, Inc.
+  ~  Red Hat licenses this file to you under the Apache License, version
+  ~  2.0 (the "License"); you may not use this file except in compliance
+  ~  with the License.  You may obtain a copy of the License at
+  ~     http://www.apache.org/licenses/LICENSE-2.0
+  ~  Unless required by applicable law or agreed to in writing, software
+  ~  distributed under the License is distributed on an "AS IS" BASIS,
+  ~  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+  ~  implied.  See the License for the specific language governing
+  ~  permissions and limitations under the License.
+  -->
+
+<configuration xmlns="urn:hornetq"
+               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+               xsi:schemaLocation="urn:hornetq /schema/hornetq-configuration.xsd">
+
+   <!--  Don't change this name.
+         This is used by the dependency framework on the deployers,
+         to make sure this deployment is done before any other deployment -->
+   <name>HornetQ.main.config</name>
+
+   <clustered>true</clustered>
+
+   <shared-store>true</shared-store>
+   
+   <log-delegate-factory-class-name>org.hornetq.integration.logging.Log4jLogDelegateFactory</log-delegate-factory-class-name>
+
+   <bindings-directory>${jboss.server.data.dir}/${hornetq.data.dir:hornetq}/bindings</bindings-directory>
+
+   <journal-directory>${jboss.server.data.dir}/${hornetq.data.dir:hornetq}/journal</journal-directory>
+   
+   <journal-min-files>10</journal-min-files>
+
+   <large-messages-directory>${jboss.server.data.dir}/${hornetq.data.dir:hornetq}/largemessages</large-messages-directory>
+
+   <paging-directory>${jboss.server.data.dir}/${hornetq.data.dir:hornetq}/paging</paging-directory>
+
+   <connectors>
+      <connector name="netty">
+         <factory-class>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</factory-class>
+         <param key="host"  value="${jboss.bind.address:localhost}"/>
+         <param key="port"  value="${hornetq.remoting.netty.port:5445}"/>
+      </connector>
+
+      <connector name="in-vm">
+         <factory-class>org.hornetq.core.remoting.impl.invm.InVMConnectorFactory</factory-class>
+         <param key="server-id" value="${hornetq.server-id:0}"/>
+      </connector>
+
+   </connectors>
+
+   <acceptors>
+      <acceptor name="netty">
+         <factory-class>org.hornetq.core.remoting.impl.netty.NettyAcceptorFactory</factory-class>
+         <param key="host"  value="${jboss.bind.address:localhost}"/>
+         <param key="port"  value="${hornetq.remoting.netty.port:5445}"/>
+      </acceptor>
+
+      <acceptor name="in-vm">
+        <factory-class>org.hornetq.core.remoting.impl.invm.InVMAcceptorFactory</factory-class>
+        <param key="server-id" value="0"/>
+      </acceptor>
+
+   </acceptors>
+
+   <broadcast-groups>
+      <broadcast-group name="bg-group1">
+         <group-address>231.7.7.7</group-address>
+         <group-port>9876</group-port>
+         <broadcast-period>5000</broadcast-period>
+         <connector-ref>netty</connector-ref>
+      </broadcast-group>
+   </broadcast-groups>
+
+   <discovery-groups>
+      <discovery-group name="dg-group1">
+         <group-address>231.7.7.7</group-address>
+         <group-port>9876</group-port>
+         <refresh-timeout>10000</refresh-timeout>
+      </discovery-group>
+   </discovery-groups>
+   
+   <cluster-connections>
+      <cluster-connection name="my-cluster">
+         <address>jms</address>	 
+         <connector-ref>netty</connector-ref>
+	      <discovery-group-ref discovery-group-name="dg-group1"/>
+      </cluster-connection>
+   </cluster-connections>
+   
+   <security-settings>
+      <security-setting match="#">
+         <permission type="createNonDurableQueue" roles="guest"/>
+         <permission type="deleteNonDurableQueue" roles="guest"/>
+         <permission type="consume" roles="guest"/>
+         <permission type="send" roles="guest"/>
+      </security-setting>
+   </security-settings>
+
+   <address-settings>
+      <!--default for catch all-->
+      <address-setting match="#">
+         <dead-letter-address>jms.queue.DLQ</dead-letter-address>
+         <expiry-address>jms.queue.ExpiryQueue</expiry-address>
+         <redelivery-delay>0</redelivery-delay>
+         <max-size-bytes>10485760</max-size-bytes>       
+         <message-counter-history-day-limit>10</message-counter-history-day-limit>
+         <address-full-policy>BLOCK</address-full-policy>
+      </address-setting>
+   </address-settings>
+
+</configuration>

Added: branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/symmetric-cluster-with-backups-colocated/hornetq/hornetq-jboss-beans.xml
===================================================================
--- branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/symmetric-cluster-with-backups-colocated/hornetq/hornetq-jboss-beans.xml	                        (rev 0)
+++ branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/symmetric-cluster-with-backups-colocated/hornetq/hornetq-jboss-beans.xml	2011-01-06 10:46:25 UTC (rev 110290)
@@ -0,0 +1,62 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<deployment xmlns="urn:jboss:bean-deployer:2.0">
+
+   <!-- MBean server -->
+   <bean name="MBeanServer" class="javax.management.MBeanServer">
+      <constructor factoryClass="org.jboss.mx.util.MBeanServerLocator"
+                   factoryMethod="locateJBoss"/>
+   </bean>
+
+   <!-- The core configuration -->
+   <bean name="Configuration" class="org.hornetq.core.config.impl.FileConfiguration">
+      <property name="configurationUrl">${jboss.server.home.url}/deploy/hornetq/hornetq-configuration.xml</property>
+   </bean>
+
+	<!-- The security manager -->
+   <bean name="HornetQSecurityManager" class="org.hornetq.integration.jboss.security.JBossASSecurityManager">
+      <start ignored="true"/>
+      <stop ignored="true"/>
+      <depends>JBossSecurityJNDIContextEstablishment</depends>
+      <property name="allowClientLogin">false</property>
+      <property name="authoriseOnClientLogin">false</property>
+   </bean>
+
+	<!-- The core server -->
+   <bean name="HornetQServer" class="org.hornetq.core.server.impl.HornetQServerImpl">
+      <constructor>
+         <parameter>
+            <inject bean="Configuration"/>
+         </parameter>
+         <parameter>
+            <inject bean="MBeanServer"/>
+         </parameter>
+         <parameter>
+            <inject bean="HornetQSecurityManager"/>
+         </parameter>        
+      </constructor>
+      <start ignored="true"/>
+      <stop ignored="true"/>   
+   </bean>
+   
+   <!-- The JMS server -->
+   <bean name="JMSServerManager" class="org.hornetq.jms.server.impl.JMSServerManagerImpl">
+      <constructor>         
+         <parameter>
+            <inject bean="HornetQServer"/>
+         </parameter>         
+      </constructor>
+   </bean>
+
+   <!-- POJO which ensures HornetQ Resource Adapter is stopped before HornetQServer -->
+   <bean name="HornetQRAService" class="org.hornetq.ra.HornetQRAService">
+      <constructor>
+         <parameter>
+            <inject bean="MBeanServer"/>
+         </parameter>
+         <parameter>jboss.jca:name='jms-ra.rar',service=RARDeployment</parameter>
+      </constructor>
+      <depends>HornetQServer</depends>
+   </bean>
+
+</deployment>

Added: branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/symmetric-cluster-with-backups-colocated/hornetq/hornetq-jms.xml
===================================================================
--- branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/symmetric-cluster-with-backups-colocated/hornetq/hornetq-jms.xml	                        (rev 0)
+++ branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/symmetric-cluster-with-backups-colocated/hornetq/hornetq-jms.xml	2011-01-06 10:46:25 UTC (rev 110290)
@@ -0,0 +1,48 @@
+<configuration xmlns="urn:hornetq"
+            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+            xsi:schemaLocation="urn:hornetq /schema/hornetq-jms.xsd">
+
+   <connection-factory name="NettyConnectionFactory">
+      <xa>true</xa>
+      <connectors>
+         <connector-ref connector-name="netty"/>
+      </connectors>
+      <entries>
+         <entry name="/ConnectionFactory"/>
+         <entry name="/XAConnectionFactory"/>
+      </entries>
+
+      <ha>true</ha>
+      <!-- Pause 1 second between connect attempts -->
+      <retry-interval>1000</retry-interval>
+
+      <!-- Multiply subsequent reconnect pauses by this multiplier. This can be used to
+      implement an exponential back-off. For our purposes we just set to 1.0 so each reconnect
+      pause is the same length -->
+      <retry-interval-multiplier>1.0</retry-interval-multiplier>
+
+      <!-- Try reconnecting an unlimited number of times (-1 means "unlimited") -->
+      <reconnect-attempts>-1</reconnect-attempts>
+   </connection-factory>
+   
+   <connection-factory name="InVMConnectionFactory">
+      <xa>true</xa>
+      <connectors>
+         <connector-ref connector-name="in-vm"/>
+      </connectors>
+      <entries>
+         <entry name="java:/ConnectionFactory"/>
+         <entry name="java:/XAConnectionFactory"/>
+      </entries>
+   </connection-factory>
+
+   <queue name="DLQ">
+      <entry name="/queue/DLQ"/>
+   </queue>
+   
+   <queue name="ExpiryQueue">
+      <entry name="/queue/ExpiryQueue"/>
+   </queue>
+
+</configuration>
+

Added: branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/symmetric-cluster-with-backups-colocated/hornetq/jms-ds.xml
===================================================================
--- branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/symmetric-cluster-with-backups-colocated/hornetq/jms-ds.xml	                        (rev 0)
+++ branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/symmetric-cluster-with-backups-colocated/hornetq/jms-ds.xml	2011-01-06 10:46:25 UTC (rev 110290)
@@ -0,0 +1,26 @@
+<connection-factories>
+   <!--
+    JMS Stuff
+   -->
+
+   <mbean code="org.jboss.jms.jndi.JMSProviderLoader" name="hornetq:service=JMSProviderLoader,name=JMSProvider">
+      <attribute name="ProviderName">DefaultJMSProvider</attribute>
+      <attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute>
+      <attribute name="FactoryRef">java:/XAConnectionFactory</attribute>
+      <attribute name="QueueFactoryRef">java:/XAConnectionFactory</attribute>
+      <attribute name="TopicFactoryRef">java:/XAConnectionFactory</attribute>
+   </mbean>
+   <!--
+    JMS XA Resource adapter, use this to get transacted JMS in beans
+   -->
+   <tx-connection-factory>
+      <jndi-name>JmsXA</jndi-name>
+      <xa-transaction/>
+      <rar-name>jms-ra.rar</rar-name>
+      <connection-definition>org.hornetq.ra.HornetQRAConnectionFactory</connection-definition>
+      <config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Topic</config-property>
+      <config-property name="JmsProviderAdapterJNDI" type="java.lang.String">java:/DefaultJMSProvider</config-property>
+      <max-pool-size>20</max-pool-size>
+      <security-domain-and-application>JmsXARealm</security-domain-and-application>
+   </tx-connection-factory>
+</connection-factories>
\ No newline at end of file

Copied: branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/symmetric-cluster-with-backups-colocated/hornetq-backup1 (from rev 110289, branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/hornetq-backup1)



More information about the jboss-cvs-commits mailing list