Skip to content

jsherman1/broker-stats-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Overview

This is an example of how use the Java JMS api with ActiveMQ.

Prereqs

  • Install Java SDK
  • Install Maven
  • Broker needs to be configured with the broker stats plugin:

For more information on the Broker Statistics plugin see the Broker Statistics Plugin Doc

Building

Run:

mvn install

Running the Examples

To get Broker stats run:

java -cp target/broker-stats-0.1-SNAPSHOT.jar example.BrokerStats

To get stats on a specific destination run:

java -cp target/broker-stats-0.1-SNAPSHOT.jar example.DestinationStats

You can control to which server the examples try to connect to by setting the following environment variables:

  • ACTIVEMQ_HOST
  • ACTIVEMQ_PORT
  • ACTIVEMQ_USER
  • ACTIVEMQ_PASSWORD

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages