Red Hat JBoss A-MQ 6.0

Similar documents
Red Hat CloudForms 4.0

Red Hat JBoss A-MQ 6.3

Red Hat Developer Studio 12.0

Red Hat JBoss Fuse 6.1

Red Hat CloudForms 4.5 Integration with AWS CloudFormation and OpenStack Heat

Red Hat JBoss Developer Studio 11.1

.NET Core 2.0 Release Notes for Containers

Red Hat JBoss Fuse 6.1

Red Hat OpenStack Platform 13

Red Hat 3scale 2.3 Accounts

Red Hat JBoss Fuse 6.3

Red Hat CloudForms 4.1

Red Hat CloudForms 4.0

Red Hat Satellite 6.3

Red Hat 3Scale 2.0 Terminology

Red Hat Application Migration Toolkit 4.0

Red Hat JBoss BRMS 6.0

Red Hat JBoss Enterprise Application Platform 7.1

Red Hat OpenStack Platform 13

Red Hat JBoss Data Virtualization 6.2 Using the Dashboard Builder. David Sage

Red Hat Process Automation Manager 7.0 Executing a business process in Business Central

Red Hat OpenStack Platform 13

Red Hat JBoss Developer Studio Integration Stack 10.0 Installation Guide

Red Hat Virtualization 4.2

Red Hat JBoss Data Virtualization 6.3 Getting Started Guide

Red Hat Application Migration Toolkit 4.2

Red Hat Virtualization 4.1 Hardware Considerations for Implementing SR-IOV

Red Hat AMQ 7.2 Introducing Red Hat AMQ 7

Red Hat JBoss Developer Studio Integration Stack 9.0 Installation Guide

Red Hat Virtualization 4.0

Red Hat Enterprise Linux OpenStack Platform 7 Fujitsu ETERNUS Back End Guide

Red Hat Enterprise Virtualization 3.6

Red Hat JBoss Enterprise Application Platform 7.2

Red Hat JBoss Data Grid 7.1 Feature Support Document

Red Hat OpenStack Platform 13

Red Hat OpenStack Platform 8 Configure firewall rules for Red Hat OpenStack Platform director

Red Hat OpenStack Platform 9 Introduction to the OpenStack Dashboard

Red Hat JBoss Fuse 6.1

Red Hat JBoss Enterprise Application Platform 7.0

Red Hat Fuse 7.2 Fuse Online Sample Integration Tutorials

Red Hat Mobile Application Platform Hosted 3

Red Hat JBoss Enterprise Application Platform 7.2

Red Hat Ceph Storage 2 Using Keystone to Authenticate Ceph Object Gateway Users

Red Hat Development Suite 1.1 Installation Guide

Red Hat Container Development Kit 3.0 Release Notes and Known Issues

Red Hat Enterprise Virtualization 3.6

Red Hat Process Automation Manager 7.0 Managing and monitoring business processes in Business Central

Red Hat Enterprise Virtualization 3.6

Red Hat Enterprise Virtualization 3.6 Introduction to the User Portal

Red Hat Fuse 7.1 Fuse Online Sample Integration Tutorials

Red Hat Cloud Infrastructure 1.1

Red Hat OpenStack Platform 12

Red Hat JBoss Fuse 7.0-TP

Red Hat Ceph Storage 3

Red Hat OpenStack Platform 10 CephFS Back End Guide for the Shared File System Service

Red Hat Decision Manager 7.0 Migrating from Red Hat JBoss BRMS 6.4 to Red Hat Decision Manager 7.0

Red Hat Ceph Storage 3

Red Hat CloudForms 4.6

Red Hat Process Automation Manager 7.0 Planning a Red Hat Process Automation Manager installation

Red Hat CloudForms 4.5 Introduction to the Self Service User Interface

Red Hat Mobile Application Platform Hosted 3

Red Hat CloudForms 4.0

Red Hat JBoss Developer Studio Integration Stack 8.0

Red Hat Developer Studio 12.9

JBoss Enterprise Application Platform 5

Red Hat CloudForms 4.6

Red Hat CloudForms 4.5

Red Hat Cloud Suite 1.1

Red Hat Decision Manager 7.0 Migrating from Red Hat JBoss BRMS 6.4 to Red Hat Decision Manager 7.0

Red Hat Decision Manager 7.0

Red Hat JBoss Middleware for OpenShift 3

Red Hat Development Suite 2.1

Red Hat JBoss Developer Studio 9.1

Red Hat OpenShift Application Runtimes 1

Red Hat JBoss Data Grid 6.4

Red Hat OpenStack Platform 13

Red Hat OpenStack Platform 10

Red Hat JBoss Fuse 6.3

Red Hat Network Satellite 5.4

Red Hat Decision Manager 7.0 Designing a decision service using guided rules

Red Hat OpenStack Platform 11 Monitoring Tools Configuration Guide

Red Hat CloudForms 4.6

Red Hat Development Suite 2.2

Red Hat JBoss BRMS 6.1

Red Hat JBoss BRMS 6.4

Red Hat OpenStack Platform 14

Red Hat Developer Tools

Red Hat JBoss Developer Studio 9.0

Red Hat JBoss Fuse 6.0

Red Hat Single Sign-On 7.1 Getting Started Guide

Red Hat Fuse 7.0 Installing on JBoss EAP

Red Hat Developer Studio 12.0

Red Hat JBoss Data Virtualization 6.4 Quick Starts Guide

Red Hat Developer Tools 2.1

Red Hat Single Sign-On 7.2

Red Hat Virtualization 4.1 Product Guide

Red Hat Enterprise Linux 5 Global Network Block Device

Red Hat JBoss BPM Suite 6.4

Red Hat JBoss Fuse 6.0

Red Hat Security Data API 1.0

Transcription:

Red Hat JBoss A-MQ 6.0 Broker Administration Tutorials Simple recipes for managing a message broker Last Updated: 2017-10-13

Red Hat JBoss A-MQ 6.0 Broker Administration Tutorials Simple recipes for managing a message broker JBoss A-MQ Docs Team Content Services fuse-docs-support@redhat.com

Legal Notice Copyright 2014 Red Hat. The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version. Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law. Red Hat, Red Hat Enterprise Linux, the Shadowman logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries. Linux is the registered trademark of Linus Torvalds in the United States and other countries. Java is a registered trademark of Oracle and/or its affiliates. XFS is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries. MySQL is a registered trademark of MySQL AB in the United States, the European Union and other countries. Node.js is an official trademark of Joyent. Red Hat Software Collections is not formally related to or endorsed by the official Joyent Node.js open source or commercial project. The OpenStack Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community. All other trademarks are the property of their respective owners. Abstract This set of tutorials walks you through some basic management tasks.

Table of Contents Table of Contents. CHAPTER.......... 1... STARTING........... A.. BROKER................................................................................... 3. 3 3 PROCEDURE FOR WINDOWS 3 PROCEDURE FOR UNIX/LINUX/OSX 3. CHAPTER.......... 2.. INSTALLING.............. A.. BROKER......... AS.... A.. WINDOWS........... SERVICE...................................................... 4. 4 4 PROCEDURE 4 FURTHER STEPS 6. CHAPTER.......... 3... SHUTTING............ DOWN....... A.. BROKER........................................................................... 7. 7 7 PROCEDURE FOR WINDOWS 7 PROCEDURE FOR UNIX/LINUX/OSX 7 1

Red Hat JBoss A-MQ 6.0 Broker Administration Tutorials 2

CHAPTER 1. STARTING A BROKER CHAPTER 1. STARTING A BROKER Abstract In this tutorial you will launch a Red Hat JBoss A-MQ instance from the command line. In this tutorial you will: add the Red Hat JBoss A-MQ command line tools to your system path start a JBoss A-MQ instance This tutorial requires that you have JBoss A-MQ installed. PROCEDURE FOR WINDOWS To start a broker on Windows: 1. Open a command prompt at the instance's root folder. 2. Add the JBoss A-MQ command line tools your path by entering c:\ set PATH=%PATH%;InstallDir\bin 3. Start the broker instance by entering c:\ start PROCEDURE FOR UNIX/LINUX/OSX To start a broker: 1. Open a command prompt at the instance's root folder. 2. Add the JBoss A-MQ command line tools your path by entering % set PATH=$PATH;InstallDir/bin 3. Start the broker instance by entering start 3

Red Hat JBoss A-MQ 6.0 Broker Administration Tutorials CHAPTER 2. INSTALLING A BROKER AS A WINDOWS SERVICE Abstract In this tutorial you will install a Red Hat JBoss A-MQ instance as a Windows service. In this tutorial you will: generate the service wrapper configure the Java Wrapper Service for your system install a broker instance as a Windows service configure the broker's service to start up automatically This tutorial requires that you have Red Hat JBoss A-MQ installed on a Windows computer to which you have administrative privileges. PROCEDURE To install JBoss A-MQ as a Windows service: 1. Start JBoss A-MQ in console mode using the amq command. 2. Once the console is started and the command prompt appears, enter features:install wrapper. The features:install command will locate the required libraries to provision the wrapper feature and deploy it into the run time. 3. Generate the wrapper by entering wrapper:install -n JBossMQ -d JBossMQ -D "JBossMQ Broker". You should see the output shown in Example 2.1, Wrapper Install Output. Example 2.1. Wrapper Install Output Creating file: InstallDir\bin\FuseMQ-wrapper.exe Creating file: InstallDir\bin\JBossMQ-service.bat Creating file: InstallDir\etc\JBossMQ-wrapper.conf Creating file: InstallDir\lib\libwrapper.so Creating file: InstallDir\lib\karafwrapper.jar Creating file: InstallDir\lib\karaf-wrapper-main.jar Setup complete. You may wish to tweak the JVM properties in the wrapper config ration file: InstallDir\etc\JBossMQ-wrapper.conf before installing and starting the service. To install the service, run: C:> InstallDir\bin\JBossMQ-service.bat install Once installed, to start the service run: C:> net start "JBossMQ" Once 4

CHAPTER 2. INSTALLING A BROKER AS A WINDOWS SERVICE running, to stop the service run: C:> net stop "JBossMQ" Once stopped, to remove the installed the service run: C:> InstallDir\bin\karaf-service.bat remove 4. Open InstallDir\etc\JBossMQ-wrapper.conf in a text editor. The ServiceName-wrapper.conf file configures the Java Wrapper Service that JBoss A- MQ uses to create a Windows service. 5. Change the line containing set.default.karaf_home= to set.default.karaf_home=installdir This tells the wrapper where the JBoss A-MQ installation is located so it can find the required libraries. 6. Change the line containing set.default.karaf_base to set.default.karaf_base=installdir This tells the wrapper where to find the configuration and data files for the broker instance being used for the service. 7. Change the line containing set.default.karaf_data to set.default.karaf_base=installdir\data This tells the wrapper where to find the configuration and data files for the broker instance being used for the service. 8. Save the file. 9. Open a command prompt. 10. Change to the InstallDir directory. 11. Install the broker as a Windows service by running bin\jbossmq-service.bat install. 12. From the Windows Start menu select Start Control Panel Administrative Tools Services. The Services window opens. 13. Double click JBossMQ from the list of services. The JBossMQ Properties window opens. 14. Specify that the service will start up when you login by selecting Automatic from the Startup Type drop-down list. 15. Click OK. 16. Open the context menu for the JBossMQ entry in the service list. 5

Red Hat JBoss A-MQ 6.0 Broker Administration Tutorials 17. Select Start to start the broker. FURTHER STEPS You can stop the broker service by selecting Stop in the Service window's context menu. To uninstall the broker as a Windows service use InstallDir\bin\JBossMQ-service.bat removes. 6

CHAPTER 3. SHUTTING DOWN A BROKER CHAPTER 3. SHUTTING DOWN A BROKER Abstract This tutorial demonstrates how to shutdown a locally running message broker. In this tutorial you will: add the Red Hat JBoss A-MQ command line tools to your system path stop a locally running JBoss A-MQ instance To complete this tutorial you will need to have a broker instance running locally. PROCEDURE FOR WINDOWS To shutdown a broker on Windows: 1. Add the JBoss A-MQ command line tools your path by entering c:\ set PATH=%PATH%;InstallDir\bin 2. Shutdown the broker instance by entering c:\ stop PROCEDURE FOR UNIX/LINUX/OSX To start a broker: 1. Add the JBoss A-MQ command line tools your path by entering % set PATH=$PATH;InstallDir/bin 2. Shutdown the broker by entering % stop 7