ADLINK-IST/opensplice

java QosProvider examples

Opened this issue · 1 comments

i have found a "java5" example, but not "java". is there a sample somewhere?
(also, what is the reason / differences between "java" and "java5". as I have inherited a lot of code using the "java" interface.

thanks,
Bud Davis

Dear Bud,

Thank you for showing interest in Opensplice DDS.

Regarding your query about QosProvider API in Java; You can use it in the similar way as you use in Java 5.

You can take reference for how to use QoS API in plain java from below link:
https://github.com/ADLINK-IST/opensplice/blob/master/docs/qosprovider/java/code/QosProviderJava.java

Regarding your query about difference between Opensplice DDS Java and Java 5 APIs:

Java 5 Language PSM for DDS is the latest DDS DCPS API for the Java Language. It is more user friendly and simpler to use. The advantage of using Java5 APIs are below:

  1. Takes advantage of Java Generics to simplify the API and facilitate tasks such as type registration.

  2. Provides a DDS API that exploits Iterators and containers

  3. Uses exceptions rather than return codes.

  4. The Java 5 PSM restructures the DDS classes as a set of packages the maximize the coherence and minimize the dependencies across packages
    Domain Module – org.omg.dds.domain
    Topic Module - org.omg.dds.topic
    Publication Module - org.omg.dds.pub
    Subscription Module - org.omg.dds.sub
    Core/Common Module - org.omg.dds.core

  5. Better separation of include files can speed up compilation times of applications that are publish or subscribe based only.

  6. Factory pattern for all DDS Entities

  7. Other types (QoS Policies, WaitSet, StatusCondition, GuardCondition, QoSProvider and Duration) are initiated by means of new

  8. A ServiceEnvironment object represents an instantiation of a Service implementation within a JVM ...

Apart from the above many others features are available in Java5 which make it more user friendly.

With Best Regards,

Vivek K Pandey
Solutions Architect
ADLINK Technology