Chapter 2. Installation
This chapter guides you through the steps to install AMQ JMS in your environment.
2.1. Prerequisites Copy linkLink copied to clipboard!
To begin installation, use your subscription to access AMQ distribution files and repositories.
To compile the examples or your own application, make sure you have Apache Maven installed.
2.2. Installing on Red Hat Enterprise Linux Copy linkLink copied to clipboard!
- Open a browser and log in to the Red Hat Customer Portal Product Downloads page at access.redhat.com/downloads.
- Locate the Red Hat AMQ Clients entry in the JBOSS INTEGRATION AND AUTOMATION category.
- Click Red Hat AMQ Clients. The Software Downloads page opens.
- Download the AMQ JMS Client zip file.
Use the
unzip
command to extract the file contents into a directory of your choosing.unzip apache-qpid-jms-<version>.zip
$ unzip apache-qpid-jms-<version>.zip
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Configure Maven to discover the client.
2.3. Installing on Microsoft Windows Copy linkLink copied to clipboard!
- Open a browser and log in to the Red Hat Customer Portal Product Downloads page at access.redhat.com/downloads.
- Locate the Red Hat AMQ Clients entry in the JBOSS INTEGRATION AND AUTOMATION category.
- Click Red Hat AMQ Clients. The Software Downloads page opens.
- Download the AMQ JMS Client zip file.
- Extract the file contents into a directory of your choosing by right-clicking on the zip file and selecting Extract All.
- Configure Maven to discover the client.
2.4. Configuring Maven Copy linkLink copied to clipboard!
The client uses Apache Maven as its build tool.
To build and run the client examples, or to use the client in dependent Maven application builds, you must first configure Maven to discover a repository for the client. To do so, you must update or create the Maven settings.xml
file. It is typically located at one of the following locations.
Operating System | Location of File |
---|---|
Linux |
|
Windows |
|
The client can be accessed by configuring Maven in one of two ways depending on your needs:
Using the JBoss Enterprise Maven Repository
The AMQ JMS Client 2.3 can be used from the JBoss Enterprise Maven Repository.
The contents of a
settings.xml
configured to use the repository would resemble the following example.Copy to Clipboard Copied! Toggle word wrap Toggle overflow Using a File-based Maven Repository
Alternatively, you can download the AMQ JMS Client 2.3 Maven Repository zip file from the Red Hat Customer Portal, extract it, and configure Maven to utilize this locally instead.
The contents of a
settings.xml
configured to use the file-based repository should resemble the following example. Remember to update the URL to the actual path of the extracted repository.Copy to Clipboard Copied! Toggle word wrap Toggle overflow