RMI callbacks over the internet a fallacy?

admin

Administrator
Staff member
From all my searching on the java.sun.com site, I havebeen unable to find one example of anybodywho has successfully implemented a RMI callback overthe internet with a stock web browser.From the search of this forum, I can see that I'm notthe only one having a problem implementingRMI callbacks over the internet. The part that is scaringme is that I haven't found anybody that hassaid "Hay, it works!". What I hope to accomplish withthis thread is the fact that it either "works", "itworks - but..." or "Don't do RMI callbacks using a browserclients". Hopefully, it will show up in asearch by other people with the same problems. It wouldbe nice if some of this makes it into theFAQ.Of the people that have posted previously, they all seemto be having what appears to be the sameproblem I'm having, a security exception when the clienttries to register the callback object. Somepeople have suggested and tried to implement a securitymanager on the client side. However, fromjava/docs/api/java/rmi/RMISecurityManager.html , it statesthat "RMISecurityManager does not applyto applets, which run under the protection of their browsersecurity manager.", which makes sense.Other people are always quick to point out that you needa security policy file for the registry. Thisfile seems to benefit only locally executed appletviewersand local RMI objects possessed by remoteclients. (someone please confirm this for me) With abroad policy file, if your client is able to connectwithout an exception, your policy file is in place andworking.So, what could be causing this exception?I have created a simple RMI callback test page and haveplaced all the source code, compilationscripts and command lines on it. I have striped anythingthat could cause any ambiguity andimplemented a functionality that simply takes a numberand increments it. This is a classic casedescribed by other people where it works using a localappletviewer but not over the web. I will try tokeep the server side running but for the moment, youcan assume it throws no exceptions when is isrun or whenever you make a connection.<!-- m --><a class="postlink" href="http://24.1.12.134:5829/java/rmi/">http://24.1.12.134:5829/java/rmi/</a><!-- m --> or <!-- m --><a class="postlink" href="http://C515671-A.lakwod2.co.home.com:5829/java/rmi/(the">http://C515671-A.lakwod2.co.home.com:5829/java/rmi/(the</a><!-- m --> fullyqualified name)Anybody?Thank you in advance for your time.
 
Back
Top