...
The above would look in the Registry to find the foo DataSet instance which is used to create the messages.
Then you create a DataSet implementation, such as using the SimpleDataSet
Properties on SimpleDataSet
Property | Description |
---|---|
defaultBody | Specifies the default message body. For SimpleDataSet it is a constant payload; though if you want to create custom payloads per message create your own derivation of DataSetSupport |
reportGroup | Specifies the number of messages to be received before reporting progress. Useful for showing progress of a large load test |
size | Specifies how many messages to send/consume |
Load testing ActiveMQ with Camel
There is an example of load testing an ActiveMQ queue using Camel in the ActiveMQ source code repository. The code lives at this location
You can grab the code
Code Block |
---|
svn co https://svn.apache.org/repos/asf/activemq/trunk/activemq-camel-loadtest/
|
Then try running the test case
Code Block |
---|
cd activemq-camel-loadtest
mvn clean install
|
To see how the test is defined see the Spring XML file
Include Page | ||||
---|---|---|---|---|
|
...