org.omg.dds:java5-psm dependency is the programming interface that should be used when developing applications on top of jDDS.
<dependency>
<groupId>org.omg.dds</groupId>
<artifactId>java5-psm</artifactId>
<version>1.0</version>
</dependency>By using following dependency, one gets java5-psm dependency as a transitive dependency to your project.
<dependency>
<groupId>net.sf.jdds</groupId>
<artifactId>jdds</artifactId>
<versio>0.5.3</version>
<dependency>Java 5 PSM is bootstrapped to use a specific DDS implementation by instantiating a ServiceEnvironment class. This class must be registered to JVM by setting a system property org.omg.dds.serviceClassName to value net.sf.jdds.core.ServiceEnvironment After registration, basic flow of control to get things started is to get an instance of DomainParticipantFactory, which can be accomplished like this:
ServiceEnvironment env = ServiceEnvironment.createInstance(net.sf.jdds.ServiceEnvironment.class.getClassLoader()); DomainParticipantFactory factory = DomainParticipantFactory.getInstance(env);
There are few examples provided in test-sources.jar, which is downloadable from maven.org.