После выполнения настроек(или можно заранее), если топик chlog-delayed не создался автоматически, выполнить скрипт для создания
host=tcp://`hostname`:61616 topics="chlog-delayed" /opt/artemis/bin/artemis address create \ --multicast \ --no-anycast \ --name jms.topic.chlog-delayed \ --url $host |
Или полный скрипт (в случае, если очередь или топик уже есть - выведется предупреждение и то что было не изменится)
# <jms-queue entries="java:/jms/cm/am/queue/to-am" name="to-am"/> # <jms-queue durable="false" entries="java:/jms/cm/am/queue/am-to-any" name="am-to-any"/> # <jms-topic entries="topic/ConfigurationUpdateTopic" name="ConfigurationUpdateTopic"/> # <jms-topic entries="topic/ClusterNotificationTopic" name="ClusterNotificationTopic"/> # <jms-topic entries="java:/jms/cm/am/topic/am-to-many" name="am-to-many"/> # <jms-topic entries="java:/jms/cm/topic/chlog" name="chlog"/> host=tcp://`hostname`:61616 topics="ConfigurationUpdateTopic ClusterNotificationTopic am-to-many chlog chlog-delayed" durable_queues="to-am" queues="am-to-any cmjBusinessQueue" for t in $topics; do /opt/artemis/bin/artemis address create \ --multicast \ --no-anycast \ --name jms.topic.$t \ --url $host done for q in $durable_queues; do /opt/artemis/bin/artemis queue create \ --anycast \ --durable \ --purge-on-no-consumers \ --auto-create-address \ --address jms.queue.$q \ --name jms.queue.$q \ --url $host done # --preserve-on-no-consumers \ for q in $queues; do /opt/artemis/bin/artemis queue create \ --anycast \ --no-durable \ --purge-on-no-consumers \ --auto-create-address \ --address jms.queue.$q \ --name jms.queue.$q \ --url $host done |