Skip to main content
1-Visitor
October 24, 2016
Solved

How to restore offline messages

  • October 24, 2016
  • 1 reply
  • 1710 views

Hi guys,

I have EMS and luaScriptResource (which is fetching data from sensors) running on one machine and  Thingworx on another machine.I have configured the offline message store in config.json.

Now when I stop the Tomcat server the offline message get saved in offline_msgs.bin ​file and as soon as I start the Tomcat the server the file size becomes zero. How can I restore the messages/data from offline_msgs.bin ​file.

Correct me if I am wrong, offline_msgs.bin ​file store the data sent by sensor when the Thingworx is offline.

Suppose the TWX server is down for some time may be for 1 hr, can I restore all data send by sensor for that one hour?

Best answer by msarage

OK got the solution,

I was using stream to log the properties, but I was using timer event to log the properties into stream hence data was getting lost.

Instead of timer now add subscription to data change event of properties.

1 reply

msarage1-VisitorAuthorAnswer
1-Visitor
November 2, 2016

OK got the solution,

I was using stream to log the properties, but I was using timer event to log the properties into stream hence data was getting lost.

Instead of timer now add subscription to data change event of properties.