B4J Question Inter-process communication?

techknight

Well-Known Member
Licensed User
Longtime User
Is there a way that two or more Jars running on the same machine can communicate with each other and pass objects/send subroutine calls easily?

Or do you have to implement things like sockets/asyncstreams/MQTT and send objects across, etc.

Just curious if there is an easier approach to this than writing socket/asyncstreams code or otherwise

Thanks
 

William Lancee

Well-Known Member
Licensed User
Longtime User
You you mean a multiform App? That is easy and sharing public subs will work.

Two separate Apps running on Windows? No inter-app sub calls. But...
1. Use Shell with command line parameters to start one from the other.
2. Use a file that both can see/modify and do a simple polling/communication protocol.
(obviously the two Apps can't modify that file at "exactly" the same time)
 
Upvote 0
Top