Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 2. Installation
This chapter guides you through the steps to install AMQ JMS Pool in your environment.
2.1. Using the Red Hat Maven repository Link kopierenLink in die Zwischenablage kopiert!
The library uses Apache Maven as its build tool. You can configure your Maven environment to download the library from the Red Hat Maven repository.
Procedure
Add the Red Hat repository to your Maven settings or POM file. For example configuration files, see Section B.1, “Using the online repository”.
<repository> <id>red-hat-ga</id> <url>https://maven.repository.redhat.com/ga</url> </repository>
<repository> <id>red-hat-ga</id> <url>https://maven.repository.redhat.com/ga</url> </repository>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Add the library dependency to your POM file.
<dependency> <groupId>org.messaginghub</groupId> <artifactId>pooled-jms</artifactId> <version>1.1.0.redhat-00002</version> </dependency>
<dependency> <groupId>org.messaginghub</groupId> <artifactId>pooled-jms</artifactId> <version>1.1.0.redhat-00002</version> </dependency>Copy to Clipboard Copied! Toggle word wrap Toggle overflow
The library is now available in your Maven project.
2.2. Installing a local Maven repository Link kopierenLink in die Zwischenablage kopiert!
As an alternative to the online repository, AMQ JMS Pool can be installed to your local filesystem as a file-based Maven repository.
Procedure
- Use your subscription to download the AMQ JMS Pool Maven Repository zip file.
Extract the file contents into a directory of your choosing.
On Linux or UNIX, use the
unzipcommand to extract the file contents.unzip jboss-amq-pooled-jms-1.1.0.redhat-00002-maven-repository.zip
unzip jboss-amq-pooled-jms-1.1.0.redhat-00002-maven-repository.zipCopy to Clipboard Copied! Toggle word wrap Toggle overflow On Windows, right-click on the zip file and select Extract All.
-
Configure Maven to use the repository in the
maven-repositorydirectory inside the extracted install directory. For more information, see Section B.2, “Using a local repository”.
2.3. Installing the zip file Link kopierenLink in die Zwischenablage kopiert!
The AMQ JMS Pool zip file contains the examples and a distribution of the client libraries for those not using Maven. If you are using Maven and do not require the examples, you do not need to install the zip file.
Procedure
- Use your subscription to download the AMQ JMS Pool zip file.
Extract the file contents into a directory of your choosing.
On Linux or UNIX, use the
unzipcommand to extract the file contents.unzip packaged-pooled-jms-1.1.0.redhat-00002-bin.zip
unzip packaged-pooled-jms-1.1.0.redhat-00002-bin.zipCopy to Clipboard Copied! Toggle word wrap Toggle overflow On Windows, right-click on the zip file and select Extract All.
When you extract the contents of the zip file, a directory named
packaged-pooled-jms-1.1.0.redhat-00002is created. This is the top-level directory of the installation and is referred to as<install-dir>throughout this document.-
(Optional) If you are not using Maven, add the jar files in the
<install-dir>/libdirectory to your Java classpath.