How to Subscribe data which published before closing application

3 posts / 0 new
Last post
rohitrx4's picture
Offline
Last seen: 5 years 1 month ago
Joined: 02/15/2019
Posts: 10
How to Subscribe data which published before closing application

I have Two Application and both application publish and subscribe the data

One Application1 published data (Example Student(1,ABC),Student (2,EFG)) and

Second application subscribe it Student1 and student2 sample after that Application2 published data(Teacher(1,AAA), Teacher(2,BBB)) 

So Now in Application2 having (Student1,Student2 and Teacher1 Teacher2 )subscribed data.

Now I closed Application2 and Run again.

After second application run I am unable to subscribe the previous data which I published (Teacher1 Teacher2). I can able to subscribe only Student1 Student2. which published by Application1 (Application1 is continuesly running only Application 2 is restarted.)

Is both Publiser (Application1 and Application2 ) create separeate memory ?
Is this issue occur because of DDSInterface which i am using instead of DDSQueryInterface ?

Can you suggest me what mistake i am doing.
How can I get publieshed data after restart the same application.

 


 

Offline
Last seen: 10 months 2 weeks ago
Joined: 02/11/2016
Posts: 144

Hello,

with rti connext dds each application manages a view of the data in its memory.

since the application that published the teachers (app2) was closed, its data is no longer available for future applications.

if you with to persist data even in the case of applications crashing, you will need some solution which persists data to storage (such as “rti persistence service”)

good luck,

roy.

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

How To republish data from Persistance services.?

I am able to see some database file is generated by Persistance services but when i re start application this data is not published or unable to subscribe.