I have a Java application I’ve been working on for a year or two now. I would like to create a very simple set (with potential to add complexity later) of interfaces that I can use to control my Java app from another JVM (e.g. MATLAB).
I am assuming RMI is the best way to do this, but I’m not sure, as I know next to nothing about it.
What is the best way to learn RMI quickly?
Let’s say I want to use an interface like this:
interface Application {
public void setLoggingEnabled(boolean enable);
public boolean isLoggingEnabled();
}
How could I implement a bridge between the two JVMs with this interface using RMI? What do I have to know about blocking / threading / synchronization to make this work?
Good links to start with :
RMI Guide :
http://download.oracle.com/javase/6/docs/technotes/guides/rmi/index.html
http://download.oracle.com/javase/1.4.2/docs/guide/rmi/
RMI Tutorial:
http://download.oracle.com/javase/tutorial/rmi/index.html