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

14.2. Adding a Transport Connector to a Fabric Broker


Note
The management console makes configuring fabric brokers easier. For more information see Using the Management Console.

Adding a transport connector definition

To add a transport connector definition:
  1. Create a configuration template.
  2. Locate the transportConnectors element.
  3. Add a transportConnector element as a child of the transportConnectors element.
  4. Add a name attribute to the new transportConnector element.
    The name attribute specifies a unique identifier for the transport connector. It is used in the connectors property to identify the transport to be activated.
  5. Add a uri attribute to the new transportConnector element.
    The uri attribute specifies the connection details used to instantiate the connector. Clients will use a similar URI to access the broker using this connector. For a complete list of the URIs see the Connection Reference.
  6. Save the changes to the configuration template.
  7. In the command console, use the fabric:import command to upload the your XML configuration template to the Fabric Ensemble.
    JBossAMQ:karaf> fabric:import -t /fabric/configs/versions/version/profiles/mq-base/configFile configFile
    version must match the version of the new profile.
  8. Use the fabric:mq-create command to create a new profile.
    JBossAMQ:karaf> fabric:mq-create --config configFile profileName
    This will create a new broker profile that inherits from the mq-base profile, but uses your XML configuration template.
Note
The newly added transport connector is not available until the profile containing it is modified to activate the connector.

Activating a connector

To activate a transport connector in a fabric broker:
  1. Connect to the broker using a command console.
  2. Verify the value of the connectors property for the desired profile using the fabric:profile-display command.
    JBossAMQ:karaf> fabric:profile-display profileName
  3. Change the value of the connectors property using the fabric:profile-edit command's -p option.
    JBossAMQ:karaf> fabric:profile-edit -p org.fusesource.mq.fabric.server-profileName/connectors="connector1 connector2..." profileName
    connector1 specifies the name of a transport to activate. The value corresponds the value of the transportConnector element's name attribute.
  4. Deploy the new profile to one or more brokers in the fabric to test the changes.
    JBossAMQ:karaf> fabric:container-add-profile broker profileName
Red Hat logoGithubRedditYoutubeTwitter

자세한 정보

평가판, 구매 및 판매

커뮤니티

Red Hat 문서 정보

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

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

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

Red Hat 소개

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

© 2024 Red Hat, Inc.