Ensure that your environment has:
- a C++ compiler
- GNU Make
- Optional Java SDK 1.5 through 1.8 for Java JNI binding support
See Building for a complete list of dependencies and supported platforms.
- Download and extract the latest tar.gz file from the download site
- Enter the OpenDDS-<version> directory
./configure(To enable Java bindings, use
See Support if you encounter problems with configuration or building.
cd DevGuideExamples/DCPS/Messengerfor C++ example or
cd java/tests/messengerfor Java example
The Messenger Example starts an InfoRepo, publisher, and subscriber. The InfoRepo allows the publisher and subscriber to find each other. Once the publisher finds the subscriber, it sends 10 messages to the subscriber and waits 30 seconds for the subscriber to acknowledge the messages.
Note: The setenv.sh script sets various environment variables needed for running OpenDDS tests. Be sure to source setenv.sh if you start a new terminal session.