The easiest is to use the PropertyQosPolicyHelper class (http://community.rti.com/rti-doc/500/ndds.5.0.0/doc/html/api_java/classcom_1_1rti_1_1dds_1_1infrastructure_1_1PropertyQosPolicyHelper.html)
There is an example of the use of this class from C++ in this forum thread: http://community.rti.com/content/forum-topic/configure-rti-connext-dds-not-use-multicast look under the heading "Method 2". The Java code is very similar.
Hello
The easiest is to use the PropertyQosPolicyHelper class (http://community.rti.com/rti-doc/500/ndds.5.0.0/doc/html/api_java/classcom_1_1rti_1_1dds_1_1infrastructure_1_1PropertyQosPolicyHelper.html)
There is an example of the use of this class from C++ in this forum thread: http://community.rti.com/content/forum-topic/configure-rti-connext-dds-not-use-multicast look under the heading "Method 2". The Java code is very similar.
Gerardo