I am running two different java applications and both are running of different JVMs. Actually I need to pass some data between these applications, I am already using shared file approach here but looking for more better approach.
So what I am thinking is that if somehow we are able to run these apps under same JVM and then may we can pass data between these apps. I don't know how can we pass data between apps running under same JVM.
The technology of data transfer between 2 application is the RMI in Java, I think you should use that.
Here is an introduction for this: Introduction to Java RMI
You can implement your apps contact to each other through Socket.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With