Chapter 4. Running the Examples

Chapter 4. Running the Examples

In the directory docs/examples, you will find a set of examples demonstrating JBoss Messaging working in various examples. To run the example, navigate to the folder in a command line prompt, and type ant. Apache Ant and your JBoss installation path must pe present in your evironment path variable, in order to be able to run the example. Make sure you start the JBoss server before trying to run these examples.

The non clustered examples expect a JBoss AS instance to be running with all the default settings. The clustered examples expect two JBoss AS instances to running with ports settings as per ports-01 and ports-02. For each example, you can always override the default ports it will try to connect to by editing jndi.properties in the particular example directory.