이 콘텐츠는 선택한 언어로 제공되지 않습니다.

Chapter 17. JMS Broker


Abstract

Red Hat JBoss Fuse supports the deployment of JMS brokers. By default, it deploys an Apache ActiveMQ JMS broker. It includes all of the required bundles to deploy additional Apache ActiveMQ instances by deploying a new broker configuration.

17.1. Working with the Default Broker

Abstract

Red Hat JBoss Fuse starts up with a message broker by default. You can use this broker as it is for your application, or you can update its configuration to suite the needs of your application.

Overview

When you deploy a Red Hat JBoss Fuse instance, whether as a standalone container or as a part of a fabric, the default behavior is for a Apache ActiveMQ instance to be started in the container. The default broker creates an Openwire port that listens on port 61616. The broker remains installed in the container and activates whenever you restart the container.

Broker configuration

The default broker's configuration is controlled by two files:
  • etc/activemq.xml—a standard Apache ActiveMQ configuration file that serves as a template for the default broker's configuration. It contains property place holders, specified using the syntax ${propName}, that allow you to set the values of the actual property using the OSGi Admin service.
  • etc/io.fabric8.mq.fabric.server-broker.cfg—the OSGi configuration file that specifies the values for the properties in the broker's template configuration file.
For details on how to edit the default broker's configuration see the JBoss A-MQ documentation.

Broker data

The default broker's data is stored in data/activemq. You can change this location using the config command to change the broker's data property as shown in Example 17.1, “Configuring the Default Broker's Data Directory”.

Example 17.1. Configuring the Default Broker's Data Directory

JBossFuse:karaf@root> config:edit io.fabric8.mq.fabric.server.3e3d0055-1c5f-40e3-987e-024c1fac1c3f
JBossFuse:karaf@root> config:propset data dataStore
JBossFuse:karaf@root> config:update
Copy to Clipboard Toggle word wrap

Disabling the default broker

If you do not want to use the default broker, you can disable it by removing its OSGi configuration file. There are two procedures to follow, depending on whether a Karaf container has been started:
If no Karaf container has been started:
  • Delete FUSE_HOME/etc/io.fabric8.mq.fabric.server-broker.cfg.
If you have already started a Karaf container, use the following instructions whilst JBoss Fuse is running.
  1. From the JBoss Fuse command console, list the JBoss Fuse brokers: activemq:list
    The result should look like this:
    brokerName = amq
    Copy to Clipboard Toggle word wrap
  2. List the configuration PID files: config:list | grep io.fabric8.mq.fabric
    The result will look like this:
    Pid:            io.fabric8.mq.fabric.server.cd4295e7-1db9-44b6-9118-69011a0f09a3
    FactoryPid:     io.fabric8.mq.fabric.server
       fabric.zookeeper.pid = io.fabric8.mq.fabric.server
       felix.fileinstall.filename = file:/home/username/product/fuse-630/jboss-fuse-6.3.0.redhat-187/etc/io.fabric8.mq.fabric.server-broker.cfg
       service.factoryPid = io.fabric8.mq.fabric.server
       service.pid = io.fabric8.mq.fabric.server.cd4295e7-1db9-44b6-9118-69011a0f09a3
    Pid:            io.fabric8.mq.fabric.standalone.server.4de976b1-2fae-4391-97d9-3a08876e39ab
    FactoryPid:     io.fabric8.mq.fabric.standalone.server
       felix.fileinstall.filename = file:/home/username/product/fuse-630/jboss-fuse-6.3.0.redhat-187/etc/io.fabric8.mq.fabric.server-broker.cfg
       mq.fabric.server.pid = io.fabric8.mq.fabric.server.cd4295e7-1db9-44b6-9118-69011a0f09a3
       service.factoryPid = io.fabric8.mq.fabric.standalone.server
       service.pid = io.fabric8.mq.fabric.standalone.server.4de976b1-2fae-4391-97d9-3a08876e39ab
    Copy to Clipboard Toggle word wrap
  3. Delete the configuration PID files labeled Pid: in the example above.
    config:delete io.fabric8.mq.fabric.server.cd4295e7-1db9-44b6-9118-69011a0f09a3
    config:delete io.fabric8.mq.fabric.standalone.server.4de976b1-2fae-4391-97d9-3a08876e39ab
    Copy to Clipboard Toggle word wrap
    Note that your files will have the same names as those shown above until the last numeric portion of the the file name, which is a system generated ID for the broker. Replace the filenames in the instructions with your actual filename.
  4. List the JBoss Fuse brokers again: activemq:list
    The deleted broker will not appear.
  5. To permanently delete the default broker:
    Stop the JBoss Fuse instance.
    Delete file FUSE_HOME/etc/io.fabric8.mq.fabric.server-broker.cfg.
    Restart the JBoss Fuse instance and run the activemq:list command. The deleted broker will not appear.
맨 위로 이동
Red Hat logoGithubredditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

Red Hat을 사용하는 고객은 신뢰할 수 있는 콘텐츠가 포함된 제품과 서비스를 통해 혁신하고 목표를 달성할 수 있습니다. 최신 업데이트를 확인하세요.

보다 포괄적 수용을 위한 오픈 소스 용어 교체

Red Hat은 코드, 문서, 웹 속성에서 문제가 있는 언어를 교체하기 위해 최선을 다하고 있습니다. 자세한 내용은 다음을 참조하세요.Red Hat 블로그.

Red Hat 소개

Red Hat은 기업이 핵심 데이터 센터에서 네트워크 에지에 이르기까지 플랫폼과 환경 전반에서 더 쉽게 작업할 수 있도록 강화된 솔루션을 제공합니다.

Theme

© 2025 Red Hat