Hello,
I'm trying to load my QoS profiles from a file located inside my project's .jar file (a java resource). I know it's possible to do it manually from within my code but I wanted to know if it's possible to use the NDDS_QOS_PROFILES environment variable to somehow point to a java resource. I've seen a brief mention of URL groups in the Connext User Manual but it didn't help me much.
I'd really appreciate your advice,
Thanks,
Maor
Hello Maor,
Unfortunately, there is no API that will load the XML profile directly from a .jar file. This means that you need to load the XML from the .jar, and convert it into a string profile in your code, and add that string profile to the DomainParticipantFactory's QoS.
The best way to do this is:
factory.get_qos(factoryQos);
factoryQos.profile.string_profile.add(line);
factory.set_qos(factoryQos);
Thank you!
Rose