http://www.ddj.com/java/212001090?pgno=3
Second problem i faced had to do with classpath so i specified classpath with commad line compilation option of java.
javac -classpath .
Third problem was java security exception or something so i created a policy.all file and granted all the permission in that file.
on command prompt i gave this option
java -Djava.security.policy=policy.all
fourth problem was some Remoteexception in server thread: nested exception is:
java.rmi.UnmarshalException: error unmarshalling arguments
something to do with java.rmi.server.codebase parameter but i am not able to resolve as of now.
Lets see if it gets fixed
Somehow it got fixed ...
I simply just tried first to run client side class then server side binding..
Apart from that i was suspecting some code sharing concept as well where both VMs using the same codebase so we need to put this codebase in some webserver from where it can be downloaded on the fly. For this i moved client code and classes to different location then server code and classes.
Links i followed for learning this simple exercise were:
http://www.comp.hkbu.edu.hk/~jng/comp3320/rmi.html
http://www.javacoffeebreak.com/articles/javarmi/javarmi.html
and few more google results for RMI search...
now i am moving onto next exercise ... let see how it goes...
No comments:
Post a Comment