LibraryToggle FramesPrintFeedback

Verifying the Installation

Once the installer has completed running it is a good idea to run a simple test to ensure that Fuse MQ Enterprise was properly installed.

Fuse MQ Enterprise 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 Web console—that the broker processed the messages, then you can be confident that Fuse MQ Enterprise was installed successfully.

To verify that Fuse MQ Enterprise is properly installed:

  1. Log in as the user with ownership permissions for the Fuse MQ Enterprise installation.

  2. Open a command shell at InstallDir.

  3. Start the broker using the start command.

    Windowsbin\start.bat
    Unix./bin/start
  4. Run the producer client using java -jar lib/mq-client.jar producer.

    The producer will connect to the broker and produce 100 messages. Example 1 shows the producer's output.

    Example 1. Test Producer Output

    $ java -jar lib/mq-client.jar producer
    Using destination: queue://TEST, on broker: failover://tcp://localhost:61616
    [org.apache.activemq.transport.failover.FailoverTransport] : Successfully connected to tcp://localhost:61616
    [org.fusesource.mq.ProducerThread] : Sent 'test message: 0'
    [org.fusesource.mq.ProducerThread] : Sent 'test message: 1'
    [org.fusesource.mq.ProducerThread] : Sent 'test message: 2'
    [org.fusesource.mq.ProducerThread] : Sent 'test message: 3'
    [org.fusesource.mq.ProducerThread] : Sent 'test message: 4'
    ...
    [org.fusesource.mq.ProducerThread] : Sent 'test message: 99'
    [org.fusesource.mq.ProducerThread] : Producer thread finished
    Produced: 100
    $

  5. Run the consumer client using java -jar lib/mq-client.jar consumer.

    The consumer will connect to the broker and consume 100 messages. Example 2 shows the consumer's output.

    Example 2. Test Consumer Output

    $ java -jar lib/mq-client.jar consumer
    Using destination: queue://TEST, on broker: failover://tcp://localhost:61616
    [org.apache.activemq.transport.failover.FailoverTransport] : Successfully connected to tcp://localhost:61616
    Waiting for: 100 messages
    [org.fusesource.mq.ConsumerThread] : Received test message: 0
    [org.fusesource.mq.ConsumerThread] : Received test message: 1
    [org.fusesource.mq.ConsumerThread] : Received test message: 2
    [org.fusesource.mq.ConsumerThread] : Received test message: 3
    [org.fusesource.mq.ConsumerThread] : Received test message: 4
    ...
    [org.fusesource.mq.ConsumerThread] : Received test message: 99
    [org.fusesource.mq.ConsumerThread] : Consumer thread finished
    Consumed: 100 messages
    $

  6. In a Web browser, navigate to http://localhost:8181/activemqweb to open the Fuse MQ Enterprise Web console.

  7. Select Queues from the main menu.

    If Fuse MQ Enterprise was successfully installed, the console lists one queue named TEST with 100 messages enqueued and 100 messages dequeued.

Comments powered by Disqus