Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

novice RMI question

 
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 ?
 
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.
 
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 .
 
Your mind is under my control .... your will is now mine .... read this tiny ad
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic