Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to implement RMI in a tidy way?

 
keisin syu
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello!
I'm a new one in SCJD who just starting study the tutorial of RMI. and I'm doubting about that if there are any tidy way to using RMI?
in tutorial, we must do many jobes to make our RMI example run. If I use the same solution in my assignment, I think it is really too bad.
well, could we have a tidy way to use RMI, like a just double-click the jar file..
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving this discussion to the Developer Certification forum.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, here is one difference between the tutorial and what is used in the SCJD. In the tutorial they talk about dynamic downloading. This requires a Web Server, which you will not have for the SCJD.
Using RMI invloves the RMI Registry , which is where you will bind a Remote Object that also extends UnicastRemoteObject. You use rmic to compile and create the stubs, and the client uses a Lookup to access the bound object. Not too difficult there. and pretty tidy in my eyes.
When you run the client or the remote it will be with a jar. like "java -jar client.jar" or "java -jar server.jar"
Pretty tidy there too.
Mark
 
Eric Blische
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply Mark,
I am in the same boat, wading through a river of RMI material thinking "how the heck will I package this up ?"
Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic