| Author |
RMI - Remote Method Invocation
|
Ray Dawson
Ranch Hand
Joined: Sep 16, 2011
Posts: 75
|
|
I know this will be really silly question to ask but I have to
I have trying to get this RMI thing to work but I have found that RMI have been changed significantly after Java 5, i.e we don't need to use rmic
Honestly, I have no clue what RMI is all about
So could you someone give me some good tutorials on RMI perhaps very basic ones!
I found a tutorial.
RemoteInterface.java
ServerImplements.java
Server.java
Client.java
Steps for executions
javac RemoteInterface.java
javac ServerImplements.java
rmic ServerImplements
javac Server.java
javac Client.java
start rmiregistry
start java server
java Client
I found this & I implemented the code as one, like
Server
And Client as
When I run this it gives me this error :
Why do I even need to create an extra class for ServerImplements.java.
I don't understand can't we just create our server & specify its location & client simply connects to it ??
And can't we simply run the server.java & then client.java instead of the long process ??
BTW, I'm running this on BlueJ
Sorry, I'm the biggest noob on this forum
|
 |
Javin Paul
Ranch Hand
Joined: Oct 15, 2010
Posts: 277
|
|
In real world you rarely coding RMI with hand there are much better alternatives like web services. even if you need than I would go and use spring framework which will enable RMI with just few configuration without all mess of Remote interface and registry etc.
|
http://javarevisited.blogspot.com - java classpath - Java67 - java hashmap - java logging tips java interview questions Java Enum Tutorial
|
 |
Ray Dawson
Ranch Hand
Joined: Sep 16, 2011
Posts: 75
|
|
I need help with RMI ASAP, I have to use RMI & I dont have any alternatives
|
 |
Javin Paul
Ranch Hand
Joined: Oct 15, 2010
Posts: 277
|
|
check this out if it helps http://download.oracle.com/javase/1.4.2/docs/guide/rmi/getstart.doc.html
|
 |
John Jai
Bartender
Joined: May 31, 2011
Posts: 1778
|
|
Ray Dawson wrote:I need help with RMI ASAP, I have to use RMI & I dont have any alternatives
Please Ease Up... Please quote the source where you took the programs.
|
 |
Ray Dawson
Ranch Hand
Joined: Sep 16, 2011
Posts: 75
|
|
John Jai wrote:
Ray Dawson wrote:I need help with RMI ASAP, I have to use RMI & I dont have any alternatives
Please Ease Up... Please quote the source where you took the programs.
http://www.roseindia.net/tutorials/rmi/RMI-Example-1.shtml
|
 |
John Jai
Bartender
Joined: May 31, 2011
Posts: 1778
|
|
The service name in the Client.java is different than hosted in the Server.java. It should be
|
 |
Campbell Ritchie
Sheriff
Joined: Oct 13, 2005
Posts: 32833
|
|
|
As with your other thread, I am moving it.
|
 |
 |
|
|
subject: RMI - Remote Method Invocation
|
|
|