##about
A simple standalone JMS producer tool that can be used for connectivity/configuration verification, replaying traffic, or poor man's load testing. For the message body, choose between
- a simple default test message
- a custom template, and a CSV with variables
- files in a configured directory
Unit testing is powered by ActiveMQ's embedded broker.
##usage
- clone the repository:
git clone [email protected]:mikerodonnell/jms_batch_publisher.git
- edit src/main/resources/connection.properties with your JMS broker connection information.
- if using files for the message body, place them in src/main/resources/message/. one message will be published for each file.
- if using a template for the message body, edit src/main/resources/template/template and src/main/resources/template/inputs.csv as desired. see example in src/main/resources/template/inputs.csv.
mvn clean install
mvn exec:java
- follow the console prompts to select message body and delay between each messages. if using default test messages, you'll be prompted for a message count.
##tools used
- Apache ActiveMQ
- Apache ActiveMQ Embedded Broker for in-memory embedded broker, allowing more complete testing than could be achieved via mocking
- Spring for dependency/properties injection and JMS connection factory
- JUnit
- Maven Exec plugin for easy usage through command line.
- Apache Commons CSV for CSV parsing
- Apache Commons Lang and Commons IO