DomainParticipantFactory.TheParticipantFactory.get_default_participant_qos(participentQos); behave diffently on diffrent pltfrm

4 posts / 0 new
Last post
rohitrx4's picture
Offline
Last seen: 4 years 5 months ago
Joined: 02/15/2019
Posts: 10
DomainParticipantFactory.TheParticipantFactory.get_default_participant_qos(participentQos); behave diffently on diffrent pltfrm

Hello,


I am creating DefaultParticipantQOS in java its working well. Same code I called in .Net using JNI interportability ( there is no issue with JNI). But when i trace the default participant QOS bot output is diffrent 

for example: 
In Java Default QOS Trace 
DiscoveryQosPolicy[enabled_transports=[], multicast_receive_addresses=[builtin.udpv4://239.255.0.1], metatraffic_transport_priority=0, initial_peers=[builtin.udpv4://239.255.0.1, builtin.udpv4://127.0.0.1, builtin.shmem://],

in Dot Net with JNI 
DiscoveryQosPolicy[enabled_transports=[], multicast_receive_addresses=[]

In below link its mentioned DomainParticipantQos is platform Specific
https://community.rti.com/static/documentation/connext-dds/5.2.3/doc/api/connext_dds/api_dotnet/group__NDDSSystemPropertiesModule.html 

How can i run same code in Dot net.(Note: I didn't write code for .net to use DDS I siply preffered Java code in .NET using JNI.) Do I need to do a change in USER_QOS_PROFILE ??

I belive we should give some configuration for default QOS but dont know how to do which tags and property should i use with diffrent platform


 

fercs77's picture
Offline
Last seen: 2 years 2 months ago
Joined: 01/15/2011
Posts: 30

Hi,

Can you explain your note "Note: I didn't write code for .net to use DDS I siply preffered Java code in .NETusing JNI." Are you invoking the calls of the Connext DDS JNI library from .NET?

Regards,

Fernando

rohitrx4's picture
Offline
Last seen: 4 years 5 months ago
Joined: 02/15/2019
Posts: 10

Hi Fernando,

Yes,  I am invoking connext DDS through JNI. We have created wrapper for DDS which is implemented in java. This wrapper packed into jar file and this jar we are using in. Net.

When JNI invoke DomainParticipantFactory. CreateParticipant it throws an exception array is empty.

We observe that default participant qos is empty.

I am not sure it is happening because of user qos profile or not .

Thanks for reply! 

Rohit k

 

fercs77's picture
Offline
Last seen: 2 years 2 months ago
Joined: 01/15/2011
Posts: 30

Hi Rohit,

What API are you using in JNI to get the DefaultParticipantQOS?

- Fernando