[jboss-cvs] JBossAS SVN: r110337 - in branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples: cluster-with-dedicated-backup and 2 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Jan 12 11:40:05 EST 2011
Author: ataylor
Date: 2011-01-12 11:40:05 -0500 (Wed, 12 Jan 2011)
New Revision: 110337
Added:
branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/cluster-with-dedicated-backup/
branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/cluster-with-dedicated-backup/hornetq-backup1/
branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/cluster-with-dedicated-backup/hornetq-backup1/hornetq-configuration.xml
branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/cluster-with-dedicated-backup/hornetq-backup1/hornetq-jboss-beans.xml
branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/cluster-with-dedicated-backup/hornetq/
branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/cluster-with-dedicated-backup/hornetq/hornetq-configuration.xml
branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/cluster-with-dedicated-backup/hornetq/hornetq-jboss-beans.xml
branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/cluster-with-dedicated-backup/hornetq/hornetq-jms.xml
branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/cluster-with-dedicated-backup/hornetq/jms-ds.xml
Log:
added sample configuration
Copied: branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/cluster-with-dedicated-backup/hornetq/hornetq-configuration.xml (from rev 110305, 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/cluster-with-dedicated-backup/hornetq/hornetq-configuration.xml (rev 0)
+++ branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/cluster-with-dedicated-backup/hornetq/hornetq-configuration.xml 2011-01-12 16:40:05 UTC (rev 110337)
@@ -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>../${hornetq.data.dir:hornetq}/bindings</bindings-directory>
+
+ <journal-directory>../${hornetq.data.dir:hornetq}/journal</journal-directory>
+
+ <journal-min-files>10</journal-min-files>
+
+ <large-messages-directory>../${hornetq.data.dir:hornetq}/largemessages</large-messages-directory>
+
+ <paging-directory>../${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>
Copied: branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/cluster-with-dedicated-backup/hornetq/hornetq-jboss-beans.xml (from rev 110290, 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/cluster-with-dedicated-backup/hornetq/hornetq-jboss-beans.xml (rev 0)
+++ branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/cluster-with-dedicated-backup/hornetq/hornetq-jboss-beans.xml 2011-01-12 16:40:05 UTC (rev 110337)
@@ -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>
Copied: branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/cluster-with-dedicated-backup/hornetq/hornetq-jms.xml (from rev 110290, 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/cluster-with-dedicated-backup/hornetq/hornetq-jms.xml (rev 0)
+++ branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/cluster-with-dedicated-backup/hornetq/hornetq-jms.xml 2011-01-12 16:40:05 UTC (rev 110337)
@@ -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>
+
Copied: branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/cluster-with-dedicated-backup/hornetq/jms-ds.xml (from rev 110290, 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/cluster-with-dedicated-backup/hornetq/jms-ds.xml (rev 0)
+++ branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/cluster-with-dedicated-backup/hornetq/jms-ds.xml 2011-01-12 16:40:05 UTC (rev 110337)
@@ -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
Added: branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/cluster-with-dedicated-backup/hornetq-backup1/hornetq-configuration.xml
===================================================================
--- branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/cluster-with-dedicated-backup/hornetq-backup1/hornetq-configuration.xml (rev 0)
+++ branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/cluster-with-dedicated-backup/hornetq-backup1/hornetq-configuration.xml 2011-01-12 16:40:05 UTC (rev 110337)
@@ -0,0 +1,107 @@
+<!--
+ ~ 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">
+
+ <clustered>true</clustered>
+
+ <backup>true</backup>
+
+ <shared-store>true</shared-store>
+
+ <allow-failback>false</allow-failback>
+
+ <log-delegate-factory-class-name>org.hornetq.integration.logging.Log4jLogDelegateFactory</log-delegate-factory-class-name>
+
+ <bindings-directory>../${hornetq.backup1.data.dir:hornetq-backup1}/bindings</bindings-directory>
+
+ <journal-directory>../${hornetq.backup1.data.dir:hornetq-backup1}/journal</journal-directory>
+
+ <journal-min-files>10</journal-min-files>
+
+ <large-messages-directory>../${hornetq.backup1.data.dir:hornetq-backup1}/largemessages</large-messages-directory>
+
+ <paging-directory>../${hornetq.backup1.data.dir:hornetq-backup1}/paging</paging-directory>
+
+ <connectors>
+ <connector name="netty-connector">
+ <factory-class>org.hornetq.core.remoting.impl.netty.NettyConnectorFactory</factory-class>
+ <param key="host" value="${jboss.bind.address:localhost}"/>
+ <param key="port" value="${hornetq.backup1.remoting.netty.port:5446}"/>
+ </connector>
+
+ <!--invm connector added by the live server on this node, used by the bridges-->
+ <connector name="in-vm">
+ <factory-class>org.hornetq.core.remoting.impl.invm.InVMConnectorFactory</factory-class>
+ <param key="server-id" value="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.backup1.remoting.netty.port:5446}"/>
+ </acceptor>
+ </acceptors>
+
+ <broadcast-groups>
+ <broadcast-group name="bg-group1">
+ <group-address>231.7.7.7</group-address>
+ <group-port>9876</group-port>
+ <broadcast-period>1000</broadcast-period>
+ <connector-ref>netty-connector</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>60000</refresh-timeout>
+ </discovery-group>
+ </discovery-groups>
+
+ <cluster-connections>
+ <cluster-connection name="my-cluster">
+ <address>jms</address>
+ <connector-ref>netty-connector</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/cluster-with-dedicated-backup/hornetq-backup1/hornetq-jboss-beans.xml
===================================================================
--- branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/cluster-with-dedicated-backup/hornetq-backup1/hornetq-jboss-beans.xml (rev 0)
+++ branches/JBPAPP_5_1_0_Final_HornetQ_2_2/hornetq-int/src/resources/examples/cluster-with-dedicated-backup/hornetq-backup1/hornetq-jboss-beans.xml 2011-01-12 16:40:05 UTC (rev 110337)
@@ -0,0 +1,65 @@
+<?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-backup1/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>
More information about the jboss-cvs-commits
mailing list