Installation Guide
Installing Red Hat JBoss A-MQ
Copyright © 2011-2017 Red Hat, Inc. and/or its affiliates.
Abstract
Chapter 1. Installation Prerequisites
Abstract
1.1. Supported Platforms
1.2. Java Runtime
1.3. Supported Standards and Protocols
1.4. Hardware requirements
- 300 MB of free disk space
- 2GB of RAM
Chapter 2. Installing
Abstract
Getting the archive
- Select A-MQ, listed under Integration Platforms, in the sidebar menu.
- Select 6.3 from the Version drop-down list on the Software Downloads page.
- Click the Download button next to the Red Hat JBoss A-MQ distribution file you want to download.
Unpacking the archive
.zip file. Using a suitable archive tool, such as Zip or Gunzip, unpack Red Hat JBoss A-MQ into a directory to which you have full access.
C:\Documents and Settings\Greco Roman\Desktop\amq.
#, %, ^, ".
Chapter 3. Adding a Remote Console User
Abstract
3.1. Add a User
InstallDir/etc/users.properties.
- Open
InstallDir/etc/users.propertiesin your favorite text editor. - Locate the line
#admin=admin,admin,manager,viewer,Operator, Maintainer, Deployer, Auditor, Administrator, SuperUser.This line specifies a useradminwith the passwordadminand comma-separated list of roles. - Uncomment the line by removing the leading
#. - Change the first
adminto the desired user name. - Change the second
adminto the desired password. - Leave the role list,
admin,manager,viewer,Operator, Maintainer, Deployer, Auditor, Administrator, SuperUser, as is. - Save the changes.
Chapter 4. Verifying the Installation
Abstract
4.1. Verify the Installation
- Log in as the user with ownership permissions for the JBoss A-MQ installation.
- Open a command shell at
InstallDir. - Start the broker using the start command.
Windows bin\start.bat Unix ./bin/start - Run the producer client with the following command:
- Linux/UNIX
./bin/client "activemq:producer --user Username --password Password"
- Windows
.\bin\client.bat "activemq:producer --user Username --password Password"
The producer will connect to the broker and produce 1000 messages. Example 4.1, “Test Producer Output” shows the producer's output.Example 4.1. Test Producer Output
$ ./bin/client "activemq:producer --user Username --password Password" client: JAVA_HOME not set; results may vary Logging in as admin 1073 [sshd-SshClient[6575deb1]-nio2-thread-3] WARN org.apache.sshd.client.keyverifier.AcceptAllServerKeyVerifier - Server at [/0.0.0.0:8101, DSA, af:77:de:7f:c9:32:f0:b0:ed:12:0e:cd:56:35:fe:78] presented unverified {} key: {} $NoteThe producer command will only send messages to a broker with default port configuration. So, if you set up more than one JBoss A-MQ instance on the same machine, the producer will only send messages to the instance that uses the default ports. - To check that the messages have been enqueued, enter the following command:
- Linux/UNIX
./bin/client activemq:dstat
- Windows
.\bin\client.bat activemq:dstat
- Run the consumer client with the following command:
- Linux/UNIX
./bin/client "activemq:consumer --user Username --password Password"
- Windows
.\bin\client.bat "activemq:consumer --user Username --password Password"
The consumer will connect to the broker and consume 1000 messages. Example 4.2, “Test Consumer Output” shows the consumer's output.Example 4.2. Test Consumer Output
$ ./bin/client "activemq:consumer --user Username --password Password" client: JAVA_HOME not set; results may vary Logging in as admin 235 [sshd-SshClient[1d6f6a81]-nio2-thread-1] WARN org.apache.sshd.client.keyverifier.AcceptAllServerKeyVerifier - Server at [/0.0.0.0:8101, DSA, af:77:de:7f:c9:32:f0:b0:ed:12:0e:cd:56:35:fe:78] presented unverified {} key: {} $ - To check that the messages have been dequeued, enter the following command:
- Linux/UNIX
./bin/client activemq:dstat
- Windows
.\bin\client.bat activemq:dstat
Chapter 5. Offline Mode
Abstract
5.1. Supported Functionality
- Runtime dependencies—the dependencies required to run the JBoss A-MQ container, in its default configuration.
- Build-time dependencies—the dependencies required to build a custom application (which might include third-party libraries).
- Running the JBoss A-MQ container in its default configuration—is supported in offline mode. The default configuration of the JBoss A-MQ container is specified by the
featuresBootproperty in theetc/org.apache.karaf.features.cfgfile. The requisite dependencies are all provided in thesystem/sub-directory of the installation. - Installing additional features—is, in general, not supported in offline mode. In principle, you can use the
features:installcommand to install any of the features from the standard feature repositories (as specified by thefeaturesRepositoriesproperty in theetc/org.apache.karaf.features.cfgfile), but the majority of these features must be downloaded from the Internet and are thus not supported in offline mode. - Deploying custom applications—is, in general, not supported in offline mode. There may be some cases where an application with a minimal set of build-time dependencies is deployable offline, but in general, custom applications would have third-party dependencies that require an Internet connection (so that JAR files can be downloaded by Apache Maven).
Chapter 6. Installing the Messaging Client Packages
Abstract
6.1. Installing Clients on Red Hat Enterprise Linux
Required subscriptions
- Red Hat JBoss A-MQ 6.3
- RHEL 5, 6, or 7
Qpid JMS AMQP 1.0 Java client
# yum install qpid-jms-client qpid-jms-client-docs qpid-jms-client-examples qpid-jms-client-maven-repo
Qpid C++ client
# yum install qpid-cpp-client qpid-cpp-client-devel
Python language bindings for Qpid Proton
# yum install python-qpid-proton python-qpid-proton-doc
Compiling the Qpid C++ client from sources on RHEL 6
nss-devel). In order to compile from sources, it is recommended that you install the Qpid C++ client through the Server channel instead.
6.2. Installing Clients on All Other Platforms
Downloading the client packages
- Navigate to the Red Hat Software Downloads page on the Red Hat Customer Portal.
- Select A-MQ under Integration Platforms in the sidebar menu (or using the drop-down menu for the Product field).
- Choose 6.3 from the Version drop-down list on the Software Downloads page.
- Click Download next to the client package that you want to download.
Appendix A. Installing the Apache ActiveMQ Standard Distribution
Abstract
extras directory.
A.1. Apache ActiveMQ Distribution
extras directory.
apache-activemq-5.11.0.redhat-630<build#>-bin.zip archive file is provided.
C:\Documents and Settings\Greco Roman\Desktop\fusesrc.
Appendix B. Red Hat JBoss A-MQ Maven Repositories
Abstract
settings.xml file, where required artifacts are located.
B.1. Maven Repositories
- JBoss A-MQ repositoryProvides access to the artifacts in the Red Hat Maven repository. This repository is required:
https://maven.repository.redhat.com/ga - JBoss A-MQ early access repositoryProvides access to the artifacts in the Red Hat Maven repository for early access releases. This repository is optional:
https://maven.repository.redhat.com/earlyaccess/all
Legal Notice
Trademark Disclaimer
