B4J Question Two B4J apps data exchange (local)

peacemaker

Expert
Licensed User
Longtime User
Hi, All

How can 2 apps pass the data between, excepting just a file on a drive ?
It's for saving SSD flash from run-out by lots of RW-operations.
If important - let it be under Windows OS.

Any ideas ?
 

mcqueccu

Well-Known Member
Licensed User
Longtime User
Just pass the file (data) location to the two softwares.

For example if the file is located on C Drive => C:/sharedData/test.csv

Just use File.Readstring in both apps specifying the location and file name
 
Upvote 0

Mark Read

Well-Known Member
Licensed User
Longtime User
I am not sure if it is possible but there seems to be a lot of info in Google, have you thought about using UDP or MQTT?

Stackoverflow says that for UDP you need to bind the port. Erel has an example here.
 
Last edited:
Upvote 0

JakeBullet70

Well-Known Member
Licensed User
Longtime User
UDP is not guaranteed to arrive. Yes, it works 99% of the time but as one who has used it in a production setting I ended up sending each message 3 times. If you are on the same machine I would use memory mapped files.
 
Upvote 0

JakeBullet70

Well-Known Member
Licensed User
Longtime User
Upvote 0
Top