Java

3 posts / 0 new
Last post
Offline
Last seen: 1 month 1 hour ago
Joined: 04/18/2022
Posts: 3
Java Serialization of DynamicData to XML

Hi Everyone,

I'm extremely new to RTI DDS and have a very limited requirement in scope for a Java application. I want to be able to generically subscribe to all Topics, consume all topic messages and persist them as XML and in Binary.

I have looked through the forum and have made quite a lot of progress following the MonitorData example which subscribes to all the topics on the DCPSPublication topic. I am now recieving the messages as DynamicData in my listener. I have a few issues that I am struggling with here

Organization:
3 posts / 0 new
Last post
Offline
Last seen: 5 months 3 weeks ago
Joined: 11/01/2021
Posts: 2
Does it possible to subscribe the defective topic?

Hello,

I want to subscribe a topic like

2 posts / 0 new
Last post
Offline
Last seen: 1 year 3 months ago
Joined: 02/04/2021
Posts: 1
Sequences in IDL

Given the following example of a typedef sequence in IDL:  (this is not actual IDL, just an example)

module data {

typedef sequence <MyData, 10> MyDataSequence;

struct MyStruct {

MyDataSequence  field;

};

};

module message {

valuetype ThisMessage {

public MyDataSequence data;

};

};

Organization:
2 posts / 0 new
Last post
jakehenry41kc's picture
Offline
Last seen: 1 year 6 months ago
Joined: 10/17/2017
Posts: 5
Routing Service Library Create Entity

Hello,

I am trying to use the java api for the rti routing service. I have successfully got the route running with the initial configuration file, but I need more information on how to use the createEntity and deleteEntity methods.

The following is my initial XML file which loads successfully and routing begins:

 

Organization:
5 posts / 0 new
Last post
jakehenry41kc's picture
Offline
Last seen: 1 year 6 months ago
Joined: 10/17/2017
Posts: 5
Distributed Logger Application Based File Logging

Language: Java

RTI Version: 5.3.1.22

 

Hi,

I am launching 3 routing service instances via the RTIRoutingService.bat files which launch rtiroutingservice.exe programs.

Due to the inability to configure the routing service to log directly to a file I am forced to use the RTI Distributed Logger to receive log messages.

Organization:
1 post / 0 new
Offline
Last seen: 2 years 8 months ago
Joined: 08/22/2019
Posts: 4
DataReaderListener not called

Hi,

I have successfully set up a publisher in a Java application, and its data is received by another participant. Registering the same participant that is publishing the data as a subscriber seems to be successful, too, but it seems my DataReaderListener is never called when something is published on the topic. Here's the code that is setting up the subscriber:

5 posts / 0 new
Last post
Offline
Last seen: 2 years 8 months ago
Joined: 08/22/2019
Posts: 4
Compilation failure with Java classes generated by rtiddsgen

Hello,

I'm using rtiddsgen (from the 6.0.0 distribution) to generate Java classes from an IDL file.

rtiddsgen -d output -inputidl ida.idl -language Java -package dds.xyz -ppDisable -update typefiles

The Java classes are generated successfully, but some of them cannot be compiled. The errors reported by the Java compiler mainly have to do with converting to either a Sequence or a List. Here are a couple of examples:

2 posts / 0 new
Last post
jakehenry41kc's picture
Offline
Last seen: 1 year 6 months ago
Joined: 10/17/2017
Posts: 5
32 bit vs 64 bit .dlls in Java

Hello,

Organization:
6 posts / 0 new
Last post
Offline
Last seen: 4 years 2 weeks ago
Joined: 12/03/2017
Posts: 6
Need your advice

Hello,

I'm working on master thesis project where I need to apply DDS with existing CPS system for smart buildings. CSP system's source code written with modeling language called ThingML. After compiling program runs as Java application.

Simple version of this CPS receive temperature from one or more thermometers. After that CPS sends signal to turn on/off heater switcher.

So my question is how/where to start?

4 posts / 0 new
Last post
Offline
Last seen: 4 years 2 months ago
Joined: 07/12/2012
Posts: 51
Copy of samples from sequence in Java API

This question has to do with general programming and concurrency, but since the Java API is an exception

from the other languages in the RTI API, it is a valid question for this  forum I think. According to a post (https://community.rti.com/examples/using-sequences), the Java API does not support deep copy of objects from

sequences. For example the C++ API support copy of object without using Loanable sequences.

Organization:
Keywords:
Subscribe to RSS - Java