WildFly ActiveMQ-Based Messaging Subsystem Configuration: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Internal=
=Internal=


* [[WildFly Messaging Subsystem#Subjects|WildFly Messaging Subsystem]]
* [[WildFly ActiveMQ-Based Messaging Subsystem#Subjects|WildFly ActiveMQ-Based Messaging Subsystem]]


=Overview=
=Overview=
Line 11: Line 11:
* [[WildFly ActiveMQ Destination Configuration|Destination Configuration]]
* [[WildFly ActiveMQ Destination Configuration|Destination Configuration]]
* [[WildFly ActiveMQ ConnectionFactory Configuration|ConnectionFactory Configuration]]
* [[WildFly ActiveMQ ConnectionFactory Configuration|ConnectionFactory Configuration]]
* [[WildFly ActiveMQ Security Configuration|Security Configuration]]
=Schemas=
* messaging-activemq:1.0 (pulled from source repository) [[jboss-as-messaging-activemq_1_0.xsd]]


=Configuration=
=Configuration=
Line 20: Line 25:
     <server name="default">
     <server name="default">
         <cluster password="${jboss.messaging.cluster.password:CHANGE ME!!}"/>
         <cluster password="${jboss.messaging.cluster.password:CHANGE ME!!}"/>
            <security-setting name="#">
                <role name="guest" delete-non-durable-queue="true" create-non-durable-queue="true" consume="true" send="true"/>
            </security-setting>


                    <security-setting name="#">
            <address-setting name="#" redistribution-delay="1000" message-counter-history-day-limit="10" page-size-bytes="2097152" max-size-bytes="10485760" expiry-address="jms.queue.ExpiryQueue" dead-letter-address="jms.queue.DLQ"/>
                        <role name="guest" delete-non-durable-queue="true" create-non-durable-queue="true" consume="true" send="true"/>
                    </security-setting>
 
                    <address-setting name="#" redistribution-delay="1000" message-counter-history-day-limit="10" page-size-bytes="2097152" max-size-bytes="10485760" expiry-address="jms.queue.ExpiryQueue" dead-letter-address="jms.queue.DLQ"/>


                    <http-connector name="http-connector" endpoint="http-acceptor" socket-binding="http"/>
            <http-connector name="http-connector" endpoint="http-acceptor" socket-binding="http"/>


                    <http-connector name="http-connector-throughput" endpoint="http-acceptor-throughput" socket-binding="http">
            <http-connector name="http-connector-throughput" endpoint="http-acceptor-throughput" socket-binding="http">
                        <param name="batch-delay" value="50"/>
                <param name="batch-delay" value="50"/>
                    </http-connector>
            </http-connector>


                    <in-vm-connector name="in-vm" server-id="0"/>
            <in-vm-connector name="in-vm" server-id="0"/>


                    <http-acceptor name="http-acceptor" http-listener="default"/>
            <http-acceptor name="http-acceptor" http-listener="default"/>


                    <http-acceptor name="http-acceptor-throughput" http-listener="default">
            <http-acceptor name="http-acceptor-throughput" http-listener="default">
                        <param name="batch-delay" value="50"/>
                <param name="batch-delay" value="50"/>
                        <param name="direct-deliver" value="false"/>
                <param name="direct-deliver" value="false"/>
                    </http-acceptor>
            </http-acceptor>


                    <in-vm-acceptor name="in-vm" server-id="0"/>
            <in-vm-acceptor name="in-vm" server-id="0"/>


                    <broadcast-group name="bg-group1" connectors="http-connector" jgroups-channel="activemq-cluster"/>
            <broadcast-group name="bg-group1" connectors="http-connector" jgroups-channel="activemq-cluster"/>


                    <discovery-group name="dg-group1" jgroups-channel="activemq-cluster"/>
            <discovery-group name="dg-group1" jgroups-channel="activemq-cluster"/>


                    <cluster-connection name="my-cluster" discovery-group="dg-group1" connector-name="http-connector" address="jms"/>
            <cluster-connection name="my-cluster" discovery-group="dg-group1" connector-name="http-connector" address="jms"/>


                    <jms-queue name="ExpiryQueue" entries="java:/jms/queue/ExpiryQueue"/>
            <jms-queue name="ExpiryQueue" entries="java:/jms/queue/ExpiryQueue"/>


                    <jms-queue name="DLQ" entries="java:/jms/queue/DLQ"/>
            <jms-queue name="DLQ" entries="java:/jms/queue/DLQ"/>


                    <connection-factory name="InVmConnectionFactory" entries="java:/ConnectionFactory" connectors="in-vm"/>
            <connection-factory name="InVmConnectionFactory" entries="java:/ConnectionFactory" connectors="in-vm"/>


                    <connection-factory name="RemoteConnectionFactory" reconnect-attempts="-1" block-on-acknowledge="true" ha="true" entries="java:jboss/exported/jms/RemoteConnectionFactory" connectors="http-connector"/>
            <connection-factory name="RemoteConnectionFactory" reconnect-attempts="-1" block-on-acknowledge="true" ha="true" entries="java:jboss/exported/jms/RemoteConnectionFactory" connectors="http-connector"/>


                    <pooled-connection-factory name="activemq-ra" transaction="xa" entries="java:/JmsXA java:jboss/DefaultJMSConnectionFactory" connectors="in-vm"/>
            <pooled-connection-factory name="activemq-ra" transaction="xa" entries="java:/JmsXA java:jboss/DefaultJMSConnectionFactory" connectors="in-vm"/>
                      
                      
                </server>
        </server>
            </subsystem>
    </subsystem>
 
</pre>
</pre>


=<cluster>=
==<cluster>==

Latest revision as of 04:06, 5 April 2017

Internal

Overview

Applies to EAP 7.* and newer.

Subjects

Schemas

Configuration

Default configuration:

<subsystem xmlns="urn:jboss:domain:messaging-activemq:1.0">
    <server name="default">
        <cluster password="${jboss.messaging.cluster.password:CHANGE ME!!}"/>
            <security-setting name="#">
                <role name="guest" delete-non-durable-queue="true" create-non-durable-queue="true" consume="true" send="true"/>
            </security-setting>

            <address-setting name="#" redistribution-delay="1000" message-counter-history-day-limit="10" page-size-bytes="2097152" max-size-bytes="10485760" expiry-address="jms.queue.ExpiryQueue" dead-letter-address="jms.queue.DLQ"/>

            <http-connector name="http-connector" endpoint="http-acceptor" socket-binding="http"/>

            <http-connector name="http-connector-throughput" endpoint="http-acceptor-throughput" socket-binding="http">
                <param name="batch-delay" value="50"/>
            </http-connector>

            <in-vm-connector name="in-vm" server-id="0"/>

            <http-acceptor name="http-acceptor" http-listener="default"/>

            <http-acceptor name="http-acceptor-throughput" http-listener="default">
                <param name="batch-delay" value="50"/>
                <param name="direct-deliver" value="false"/>
            </http-acceptor>

            <in-vm-acceptor name="in-vm" server-id="0"/>

            <broadcast-group name="bg-group1" connectors="http-connector" jgroups-channel="activemq-cluster"/>

            <discovery-group name="dg-group1" jgroups-channel="activemq-cluster"/>

            <cluster-connection name="my-cluster" discovery-group="dg-group1" connector-name="http-connector" address="jms"/>

            <jms-queue name="ExpiryQueue" entries="java:/jms/queue/ExpiryQueue"/>

            <jms-queue name="DLQ" entries="java:/jms/queue/DLQ"/>

            <connection-factory name="InVmConnectionFactory" entries="java:/ConnectionFactory" connectors="in-vm"/>

            <connection-factory name="RemoteConnectionFactory" reconnect-attempts="-1" block-on-acknowledge="true" ha="true" entries="java:jboss/exported/jms/RemoteConnectionFactory" connectors="http-connector"/>

            <pooled-connection-factory name="activemq-ra" transaction="xa" entries="java:/JmsXA java:jboss/DefaultJMSConnectionFactory" connectors="in-vm"/>
                    
        </server>
    </subsystem>

<cluster>