Just been arse-raped by a lecturer, and now have two assignments due on monday where previously only one of them was.
One of these assignments involves a partial (yet functional) re-write of a program we write using sockets, into RMI.
Basically, I'm after every bit of info on getting an RMI program to work that you can possibly throw at me. I have no shortage of question points and will happily give away a lot of them for rapid responses to this.
I am just about to go finish coding my sockets implementation. After that I'm going to bed. Ideally, I'd like to get up in the morning with enough information sitting in this thread that I can sit down tomorrow and code the RMI up, without wasting half the day figuring out how to make it work.
Main points of interest: security. I know I need a txt file of some sort with the security policy. Security isn't a big deal, but I do need a policy of some sort for it to work at all. How do I go about setting up this? Basically I just want to make ports 5100 to 5105 open and accessible to all and sundry (this will all be running behind a phat uni firewall, and for no longer than 5 minutes at a time, so there's little risk). I doubt I'll need more than one open, but having 6 there gives me some maneuverability without needing to be editing it later. How do I set this file up? How do I make the RMI program recognise it as a security policy and adhere to it? RMI wasn't covered in much detail in the lectures. The sample assignment code doesn't contain a policy file (and thus doesn't work), and at the time we covered it (oh so briefly) in classes, there were other assignments to be thinking about.
My other main point of interest: something about stub files. What are these? Apparently I need to use rmic to compile an RMI program (or just to create the stub files? I know not). Assuming I have fully functionaly, syntactically, and logically correct code, how do I go about compiling it so it will run, connect, and operate? I am writing both client and server software (very simplistic implementations thereof though; 5 hours coding tops once I know how to make it compile and run properly).
Any other information/tips/anecdotes/whatever you can provide to someone who has a basic understanding of the principles of RMI coding but no actual experience doing it would be much appreciated and well rewarded.
300 points for now, to attract attention. Expect more.