• 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: 17309
11
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
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!