4.4 Known Issues
4.4.1 LBED not able to automatically load USER_QOS_PROFILES.xml if utilized API uses QosProvider and the file is not placed in default locations
If you are using an API that utilizes a QosProvider for loading XML QoS profiles (e.g., for Modern C++ or C#), the LBED plugin won’t be able to automatically load the XML file with the endpoint configurations if both of the following are true:
- You defined the LBED information in USER_QOS_PROFILES.xml, which is neither located in the working directory nor referenced in the NDDS_QOS_PROFILES environment variable.
- The content of USER_QOS_PROFILES.xml is not specified in the <NDDSHOME>/resource/xml/NDDS_QOS_PROFILES.xml file.
See How to Load XML-Specified QoS Settings, in the RTI Connext Core Libraries User's Manual for more information on where Connext looks for XML QoS profiles. The LBED plugin won’t be able to automatically load the XML file with the endpoint configurations if the XML content is not in the expected locations. This is because the LBED plugin relies on the singleton DomainParticipantFactory for loading the profiles, but the DomainParticipantFactory is not used in APIs that use a QosProvider.
As a workaround to make LBED load the file, set the config_file property in your USER_QOS_PROFILES.xml file with the path to itself. For example, if the USER_QOS_PROFILE.xml file is located in /foo/bar/, the <domain_participant_qos> of your participant enabling LBED should look like this:
<!-- USER_QOS_PROFILES.xml -->
<qos_profile name="...">
<domain_participant_qos>
<discovery_config>
<builtin_discovery_plugins>DPSE</builtin_discovery_plugins>
</discovery_config>
<property>
<value>
<element>
<name>dds.discovery.endpoint.lbediscovery.config_file</name>
<value>/foo/bar/USER_QOS_PROFILES.xml</value>
</element>
...
</value>
</property>
...
</domain_participant_qos>
...
</qos_profile>