WildFly ActiveMQ-Based Messaging Subsystem Configuration: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
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=
=Schemas=

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>