Skip to content

Commit bad0546

Browse files
author
Tim Clark
committed
Text completed with basic instructions for running examples
1 parent d685427 commit bad0546

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

README-EXAMPLES

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,28 @@ testing the RabbitMQ server.
55

66
The 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+
830
SIMPLE EXAMPLES
931

1032
SimpleProducer - Sends a message to an exchange.
@@ -18,8 +40,22 @@ HelloClient - Performs a simple RPC call over AMQP.
1840
HelloServer - Acts as an RPC server over AMQP.
1941
HelloJsonClient - Performs a simple JSON-RPC call over AMQP.
2042
HelloJsonServer - 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

2346
MORE 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

Comments
 (0)