Red Hat AMQ 6
As of February 2025, Red Hat is no longer supporting Red Hat AMQ 6. If you are using AMQ 6, please upgrade: Migrating to AMQ 7.このコンテンツは選択した言語では利用できません。
Chapter 4. Verifying the Installation
Abstract
Once the installer has completed running it is a good idea to run a simple test to ensure that Red Hat AMQ was properly installed.
4.1. Verify the Installation リンクのコピーリンクがクリップボードにコピーされました!
リンクのコピーリンクがクリップボードにコピーされました!
AMQ ships with a simple client utility that can be used to verify that the software was successfully installed. You use it to create a message producer and a message consumer that connect to the broker. If they run successfully, and you see—by checking the Fuse Management Console—that the broker processed the messages, then you can be confident that AMQ was installed successfully.
To verify that AMQ is properly installed:
- Log in as the user with ownership permissions for the AMQ installation.
- Open a command shell at
InstallDir
. - Start the broker using the start command.
Expand 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"
./bin/client "activemq:producer --user Username --password Password"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Windows
.\bin\client.bat "activemq:producer --user Username --password Password"
.\bin\client.bat "activemq:producer --user Username --password Password"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
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
Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteThe producer command will only send messages to a broker with default port configuration. So, if you set up more than one AMQ 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
./bin/client activemq:dstat
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Windows
.\bin\client.bat activemq:dstat
.\bin\client.bat activemq:dstat
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
- Run the consumer client with the following command:
- Linux/UNIX
./bin/client "activemq:consumer --user Username --password Password"
./bin/client "activemq:consumer --user Username --password Password"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Windows
.\bin\client.bat "activemq:consumer --user Username --password Password"
.\bin\client.bat "activemq:consumer --user Username --password Password"
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
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
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - To check that the messages have been dequeued, enter the following command:
- Linux/UNIX
./bin/client activemq:dstat
./bin/client activemq:dstat
Copy to Clipboard Copied! Toggle word wrap Toggle overflow - Windows
.\bin\client.bat activemq:dstat
.\bin\client.bat activemq:dstat
Copy to Clipboard Copied! Toggle word wrap Toggle overflow