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

novice RMI question

 
aleks nikolic
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi , I hope this question is understandable .
So far what I have learned about RMI is that you need a web server to pass back and forth the remote objects/stubs between client and server . How then is the assignment handed in ? Do we specify in docs that so and so class goes in web server folder ?

So far I have compiled and run an example RMI program from a book . What I did was plop the stubs etc. in my PWS (Personal Web Server ) folders under windows 2000 . Is this essentially how the markers are going to do it ? Or am I missing something here ?
 
Paul Smiley
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You don't need a web server - everything you need is in the JDK.
 
aleks nikolic
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmmm , I guess I need more research but I haven't come across an example yet . Either this is something already in the RMI API or I have to build a small server of some kind . OK .
 
Paul Smiley
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The server is the RMI registry - it tells your client where the server is.
 
Vladan Radovanovic
Ranch Hand
Posts: 216
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Take a look at the Sun's site. There are three RMI examples there that will help You learn RMI. Actually the simplest one is Calculator example in Developer connection.
Vladan
 
aleks nikolic
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"The server is the RMI registry - it tells your client where the server is."
Yes , but you still need to specify an url ?
 
aleks nikolic
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"RMI system uses a Web server to load class bytecodes,from server to client and from client to server ."
 
Paul Smiley
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Aleks,
Go to the Sun site and do the examples/tutorials. That'll explain more than we could in a few short sentences. But, no, you don't need a commercial web server(Peer, Netscape Enterprise, iPlanet, WebSphere etc.)
 
aleks nikolic
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok . Yes , it appears that for testing purposes on the same computer , you don't need a web server .

The problem is I don't like learning online , never was able to sit in front of the screen and read . Would rather have a book , but maybe it's time to change my ways .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic