Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Production Management

Configure the ActiveMQ config file

  • Last UpdatedSep 06, 2023
  • 2 minute read

You can edit the configuration file settings to enable options in ActiveMQ. .

To add JMSXUserID to the message header

  1. Navigate to the C:\apache-activemq\conf directory.

  2. Locate the activemq.xml file and open in an editor.

  3. Add the following line inside the <broker> section:

    <!-- The <broker> element is used to configure the ActiveMQ broker -->

    <broker xmls="http://activemq.apache.org/schema/core"

    brokerName="localhost" dataDirectory="${activemq.data}"

    populateJMSXUserID=true">

    <!-- The <broker> element is used to configure the ActiveMQ broker-->

    <broker xmlns="http://activemq.apache.org/schema/core"

    brokerName="localhost" dataDirectory="${activemq.data}"

    populateJMSXUserID="true">


    <plugins>

    <loggingBrokerPlugin logConsumerEvents="true" logProducerEvents="true" />

    </plugins>

To enable additional ActiveMQ logging

  1. Navigate to the C:\apache-activemq\conf directory.

  2. Locate the activemq.xml file and open in an editor.

  3. Add the following lines inside the <broker> section:

    For more information on logging options, go to http://activemq.apache.org/logging-interceptor.html

    <destinationPolicy>

    <policyMap>

    <policyEntries>

    <!-- Set the following policy on all queues using the '>' wildcard -->

    <policyEntry queue=">">

    <deadLetterStrategy>

    <!--

    Use the suffix '.DLQ' for the destination name, and make

    the DLQ a queue rather than a topic

    -->

    <individualDeadLetterStrategy queuePrefix="" queueSuffix=".DLQ" useQueueForQueueMessages="true" />

    </deadLetterStrategy>

    </policyEntry>

    To enable automatic creation of dead letter queue for each queue

    1. Navigate to the C:\apache-activemq\conf directory.

    2. Locate the activemq.xml file and open in an editor.

    3. Add the following lines inside the <destinationPolicy> section:

      This setting specifies that each queue automatically creates a dead letter queue and specifies the prefix and suffix to append to the name of the dead letter queue.

      Value

      Description

      queueSuffix=".DLQ"

      Specifies suffix to append to name of dead letter queue, for example:

      Ampla.Commands.SubmitData.DLQ

      This value is required.

      queuePrefix="DLQ."

      Specifies prefix to append to name of dead letter queue, for example:

      DLQ.Ampla.Commands.SubmitData

      This value is optional; however, the default value is ActiveMQ.DLQ. Use an empty value to avoid the default prefix.

      useQueueForQueueMessages="true"

      Specifies to use a queue for the dead letter queue rather than a topic.

      TitleResults for “How to create a CRG?”Also Available in