@@ -5,6 +5,28 @@ testing the RabbitMQ server.
55
66The source code for the examples can be found in the test/src/com/rabbitmq/examples directory of the source distribution.
77
8+ RUNNING EXAMPLES
9+
10+ The script runjava.sh or runjava.bat can be found in the top level directory of
11+ the binary distribution or in the scripts directory of the source distribution.
12+ This script can be used to run the examples, for example if you have a RabbitMQ
13+ broker running and you open two shell or console windows you can test basic
14+ connectivity like this:
15+
16+ shell-1$ ./runjava.sh com.rabbitmq.examples.SimpleConsumer
17+
18+ shell-2$ ./runjava.sh com.rabbitmq.examples.SimpleProducer
19+
20+ shell-1$ ./runjava.sh com.rabbitmq.examples.SimpleConsumer
21+ Message: the time is Fri Feb 26 08:28:58 GMT 2010
22+
23+ The more complex examples will require additional command line arguments and
24+ it is best to examine the source of the examples to determine what arguments
25+ are available.
26+
27+ All examples live in the com.rabbitmq.examples package so add that package name
28+ to the examples described below to produce the full classname that is required as the first argument to the runjava script.
29+
830SIMPLE EXAMPLES
931
1032SimpleProducer - Sends a message to an exchange.
@@ -18,8 +40,22 @@ HelloClient - Performs a simple RPC call over AMQP.
1840HelloServer - Acts as an RPC server over AMQP.
1941HelloJsonClient - Performs a simple JSON-RPC call over AMQP.
2042HelloJsonServer - Acts as a JSON-RPC server over AMQP.
21- LogTail - ??
43+ LogTail - Tails the server logs.
44+ SendString - Sends a user supplied message over AMQP.
2245
2346MORE COMPLEX EXAMPLES
2447
48+ Most of these examples are used in testing and tuning the RabbitMQ server.
49+
50+ BufferPerformanceMetrics - Tests buffer sizing.
51+ ChannelCreationPerformance - Test different Channel creation strategies.
52+ ConsumerMain - Measures performance of Consumers.
53+ ManyConnections - Tests many connections.
54+ MulticastMain - Measures performance of multiple consumers and producers.
55+ ProducerMain - Measures performance of Producers.
56+ SpammyTopicProducer - Sends lots of different topic messages over AMQP.
57+ StressPersister - Stress test for persister.
58+ TestMain - RabbitMQ server regression tests.
59+ TracerConcurrencyTest - Tests correct concurrency behaviour of RabbitMQ tracer.
60+
2561
0 commit comments