I'm attempting to convert an Corba application to use
Applet -
Servlet Communication using RMI. I've found a few references on the web but they all seem to be outdated so I just want to check the information I've gathered with the group since I've never done RMI before.
I'm assuming there needs to be some sort of Naming Service that the applet can use to get an object reference to the servlet. And this is the RMI registry?
As far as I understand the basic sequence of events is to start the RMI registry, then run the Servlet from the command line which will bind itself to the RMI registry. The start the webserver which will enable all the servlets for use. Once the applet is run, it will use the webserver hostname and port number to get a reference to the RMI registry and then resolve the servlet object using it's name that it was bound with?
Once it has the proxy object reference to the servlet it can just call the methods defined in the RMI interface much like CORBA.
Is this correct and the current way to do things?
I've also looked into a few other means of applet-servlet communication but it's my understanding that they'll be more complex since I have about 20 IDL methods with fairly complex objects as method parameters and return values. Are any of these other methods in fact easier than RMI?
Thanks,
Jody