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:
Log in as the user with ownership permissions for the Fuse MQ Enterprise installation.
Open a command shell at
.InstallDirStart the broker using the start command.
Windows bin\start.bat Unix ./bin/start 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 producerUsing 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$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 consumerUsing 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$In a Web browser, navigate to
http://localhost:8181/activemqwebto open the Fuse MQ Enterprise Web console.Select from the main menu.
If Fuse MQ Enterprise was successfully installed, the console lists one queue named
TESTwith 100 messages enqueued and 100 messages dequeued.







