# Publish and Subscribe Messaging Example

In this section, you will execute a message producer client and two message consumer clients that demonstrate the publish/subscribe messaging model described in Publish and Subscribe. This example is not intended to be comprehensive or representative of a robust application.

To execute the client samples, you must give them commands from within the sample directory that contains the compiled samples. For this exercise, open three separate command line windows and navigate to the EMS_HOME/samples/java directory in each window.

For more information on the samples, refer to the `readme` file within the sample directory. For more information on compiling the samples, refer to Compiling the Sample Java Clients.

Copyright © Cloud Software Group, Inc. All rights reserved.