EXAMPLE 1

4. A Simple TCP Message Server

The steps provided in the previous section enables us to setup the ActiveMQ message broker and get it running. To test the message broker, we have the following simple example.

4.1 Running the Example

The files are required for this example can be found in %ACTIVEMQ_HOME%\example. They are: ConsumerTool.java, ProducerTool.java, and ToolSupport.java. These applications can be run as a standalone java application from with the IDE like Eclipse or JBuilder.

 

Classpath is here.